在centos中安装sqlite3 dev和其他软件包 [英] install sqlite3 dev and other packages in centos

查看:261
本文介绍了在centos中安装sqlite3 dev和其他软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在带有cpanel的centos机器中安装sqlite dev和其他库,以便能够编译应用程序.我比denos更熟悉debian,而且我知道我需要的库是:

I am trying to install sqlite dev and other libraries in a centos machine with cpanel, to be able to compile an application. I am more acquainted with debian than centos, and I know the libraries I need are:

libsqlite3-dev
libkrb5-dev
libssl-dev
libcurl3-dev
libboost-all-dev

对于我可以在网上找到的内容, libsqlite3-dev 的相应软件包以centos为 sqlite-dev .

For what I could find online, the corresponding package in centos for libsqlite3-dev is sqlite-dev.

但是,当我运行 yum install sqlite-devel 时,会收到以下消息:

However, when I run yum install sqlite-devel I get the following message:

No package sqlite-devel available

我不知道这是否与cpanel有关,如果安装中缺少存储库,并且由于我对yum的经验远不如对apt的经验,我在这里很失落.

I don't know if this is related to cpanel, if repositories are missing from the installation, and since my experience with yum is far lesser than with apt, I am quite lost here.

我已经搜索了包 yum search sqlite ,而我得到的就是这个:

I have searched for the package yum search sqlite and all I get is this:

cpanel-perl-522-DBD-SQLite.x86_64 : CPAN module - Self Contained SQLite RDBMS in a DBI Driver
cpanel-perl-522-DBD-SQLite2.x86_64 : CPAN module - Self Contained RDBMS in a DBI Driver (sqlite 2.x)
ea-apr-util-sqlite.x86_64 : APR utility library SQLite DBD driver
freeradius-sqlite.x86_64 : SQLite support for freeradius
golang-googlecode-sqlite-devel.x86_64 : Trivial sqlite3 binding for Go
perl-DBD-SQLite.x86_64 : SQLite DBI Driver
cpanel-perl-522-CPAN-SQLite.x86_64 : CPAN module - maintain and search a minimal CPAN database
sqlite.x86_64 : Library that implements an embeddable SQL database engine

这也是 yum repolist

Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 208.100.0.204
 * base: repo.us.bigstepcloud.com
 * epel: mirror.steadfast.net
 * extras: mirror.eboundhost.com
 * updates: centos.firehosted.com
repo id                                                                                            repo name                                                                                                                         status
EA4/7/x86_64                                                                                       EA4 ( EasyApache 4 )                                                                                                                  23703
base/7/x86_64                                                                                      CentOS-7 - Base                                                                                                                     9319+44
epel/x86_64                                                                                        Extra Packages for Enterprise Linux 7 - x86_64                                                                                    10524+779
extras/7/x86_64                                                                                    CentOS-7 - Extras                                                                                                                       266
updates/7/x86_64                                                                                   CentOS-7 - Updates                                                                                                                     1086
repolist: 44898

另外,该服务器不是我管理或拥有的,所以我对它不了解太多.

As an additional detail, this server is not managed or owned by me, so I don't know much information about it.

我知道我有几台centos + cpanel服务器,而我只是在另一台服务器中做了 yum search sqlite-devel ,它在基本仓库中显示了该软件包.

What I know is that I have several centos + cpanel servers, and I just did a yum search sqlite-devel in another one, and it shows the package in the base repo.

我还注意到有问题的服务器没有更新.这可能是原因吗?

I have also noticed that the offending server is not updated. Can this be a reason?

还有其他提示吗?

推荐答案

最近的回答,但这也许可以帮助最终发现该问题的其他人寻找相同的答案.

Late response, but perhaps this might help others who eventually stumble on this question looking for the same answer.

sqlite3开发包可以在epel仓库中找到. EPEL

The sqlite3 development package can be found in the epel repo. EPEL

易于在CentOS上安装-> yum install epel-release

Easy to install on CentOS -> yum install epel-release

$ yum列表|grep sqlite
libsqlite3x-devel.x86_64 20071018-20.el7 @epel

对于您要安装的其他库,可以执行类似的列表/grep,尽管名称很可能只是稍有不同(为清晰起见,对列表进行了编辑).

Similar list/grep can be done for the other libraries you are looking to install, although the names are most likely just slightly different (list edited for clarity).

$ yum列表|grep boost
boost-devel.x86_64 1.53.0-26.el7基本

这篇关于在centos中安装sqlite3 dev和其他软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆