【问题标题】:install sqlite3 dev and other packages in centoscentos中安装sqlite3 dev等包
【发布时间】:2017-07-28 21:43:05
【问题描述】:

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

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

对于我在网上可以找到的,libsqlite3-dev 在 centos 中对应的包是sqlite-dev

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

No package sqlite-devel available

我不知道这是否与 cpanel 有关,是否安装中缺少存储库,并且由于我对 yum 的经验远不如 apt,所以我在这里很迷茫。

我搜索了yum search sqlite 的包裹,我得到的只是这个:

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

补充一点,这台服务器不是我管理或拥有的,所以我不太了解它。

我所知道的是我有几个 centos + cpanel 服务器,我刚刚在另一个服务器上做了一个yum search sqlite-devel,它显示了基础 repo 中的包。

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

还有其他提示吗?

【问题讨论】:

  • 如果你也发布你的 repo 的内容会很有用。
  • @ZumodeVidrio 详细信息已添加,谢谢。
  • /etc/yum.conf/etc/yum.repos.d/CentOS-Base.repo 中是否有任何exclude 指令?

标签: linux sqlite centos yum


【解决方案1】:

回复较晚,但也许这可能会帮助其他最终偶然发现此问题并寻找相同答案的人。

可以在 epel repo 中找到 sqlite3 开发包。 EPEL

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

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

可以为您要安装的其他库执行类似的列表/grep,尽管名称很可能只是略有不同(为清楚起见,列表已编辑)。

$ yum list | grep boost
boost-devel.x86_64 1.53.0-26.el7 base

【讨论】:

  • 在我的系统上,它被称为 "sqlite-devel.x86_64" 。描述说它是 sqlite3 的驱动程序。
  • 您可以将过滤参数传递给yum list,如:yum list '*sqlite*'
  • @MikePone:你不需要 '.x86_64' - yum 安装任何与你的系统相关的东西。所以只需yum install sqlite-devel
猜你喜欢
  • 2012-08-24
  • 2014-06-25
  • 2019-11-17
  • 1970-01-01
  • 2013-06-15
  • 2017-05-27
  • 2018-09-09
  • 1970-01-01
  • 2018-01-19
相关资源
最近更新 更多