centos中安装sqlite3 dev等包 [英] install sqlite3 dev and other packages in centos
问题描述
我正在尝试在带有 cpanel 的 centos 机器上安装 sqlite dev 和其他库,以便能够编译应用程序.我对debian比centos更熟悉,我知道我需要的库是:
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
,它显示了基础 repo 中的包.
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.
可以在 epel repo 中找到 sqlite3 开发包.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 list |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 list |grep 提升
boost-devel.x86_64 1.53.0-26.el7 基础
这篇关于centos中安装sqlite3 dev等包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!