问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

为什么在ubuntu中安装数据库的时候回出现以下的情况 :

发布网友 发布时间:2022-05-05 22:49

我来回答

3个回答

懂视网 时间:2022-05-06 03:10

在搭建Postgresql测试环境,在安装过程中遇到一个问题,在执行 configure过程中报以下错误,configure: error: readline library

过程中报以下错误,configure: error: readline library not found,同事说已经在系统中安装
readline 包了,让我帮他看下。

1 环境信息
OS: CentOS release 5.2(Final)
PG: postgresql-9.0.0]

2 根据提示,,我测试了下 configre命令,果然报这个错
[root@HK81-107postgresql-9.0.0]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support...yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if gcc supports -Wdeclaration-after-statement...yes
checking if gcc supports -Wendif-labels... yes
checking if gcc supports -fno-strict-aliasing... yes
checking if gcc supports -fwrapv... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for grep that handles long lines and -e.../bin/grep
checking for egrep... /bin/grep -E
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for ar... ar
checking for tar... /bin/tar
checking whether ln -s works... yes
checking for gawk... gawk
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for bison... no
configure: WARNING:
*** Without Bison you will not be able to build PostgreSQL from CVSnor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using theofficial distribution of
*** PostgreSQL then you do not need to worry about this, becausethe Bison
*** output is pre-generated.)
checking for flex... no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVSnor
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using theofficial distribution of
*** PostgreSQL then you do not need to worry about this because theFlex
*** output is pre-generated.)
checking for perl... /usr/bin/perl
configure: using perl 5.8.8
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... nonerequired
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... nonerequired
checking for library containing gethostbyname_r... nonerequired
checking for library containing shmget... none required
checking for -lreadline... no
checking for -ledit... no
configure: error: readline library notfound
If you have readline already installed, see config.log for detailson the
failure. It is possible the compiler isnt lookingin the proper directory.
Use --without-readline to disable readlinesupport.

根据提示,应该是没有安装 readline包。

3 检查系统是否安装 readline 包
[root@HK81-107postgresql-9.0.0]# rpm -qa | grep readline
readline-5.1-3.el5

说明系统已经安装了 readline包。

4 通过 yum 搜索相关的readline 包
[root@HK81-107postgresql-9.0.0]# yum search readline
lftp.i386 : A sophisticated file transfer program
lftp.i386 : A sophisticated file transfer program
php-readline.i386 : Standard PHP module provides readline librarysupport
lftp.i386 : A sophisticated file transfer program
readline.i386 : A library for editing typed commandlines.
compat-readline43.i386 : The readline 4.3 library for compatibilitywith older software.
readline-devel.i386 : Files needed to develop programs which usethe readline library.
readline.i386 : A library for editing typed command lines.

根据提示,有一个包引起了我的注意 "readline-devel",猜想可能与这个包有关。

5 安装 readline-devel 包
[root@HK81-107postgresql-9.0.0]# yum -y install -y readline-devel
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.i386 0:5.1-3.el5 set tobe updated
--> Processing Dependency: libtermcap-devel forpackage: readline-devel
--> Running transaction check
---> Package libtermcap-devel.i386 0:2.0.8-46.1 setto be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
readline-devel i386 5.1-3.el5 base 146 k
Installing for dependencies:
libtermcap-devel i386 2.0.8-46.1 base 56 k

Transaction Summary
=============================================================================
Install 2Package(s)
Update 0Package(s)
Remove 0Package(s)

Total download size: 201 k
Downloading Packages:
(1/2): libtermcap-devel-2 100%|=========================| 56kB 00:00
(2/2): readline-devel-5.1 100% |=========================| 146kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:libtermcap-devel ######################### [1/2]
Installing:readline-devel ######################### [2/2]

Installed: readline-devel.i386 0:5.1-3.el5
Dependency Installed: libtermcap-devel.i386 0:2.0.8-46.1
Complete!

6 再次执行 configure 成功。

7 关于 readline 的解释,来自官网
--without-readline
Prevents use of the Readline library (and libedit as well). Thisoption disables command-line
editing and history in psql, so it is notrecommended.

说明: 根据步骤2 执行 configure时报错提示,可以加上 "--without-readline" 从而避开这个ERROR,
但Postgresql官方不推荐这么做,所以还是安装吧。

热心网友 时间:2022-05-06 00:18

需要格式化ubuntu分区后才可以可以安装XP!

XP原版手动光盘可以删除分区。

热心网友 时间:2022-05-06 01:36

下个gnu make
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
如何在手机百度上删除对话记录? 结核病是什么样的疾病? 曹丕17岁得了肺痨,明知自己命不长久,还要强争王位,是不是很自私呢?_百... 古代小说常出现的病名 急求一篇"生活小窍门"(500字)的作文 至今最有什么小妙招 健康的戒烟方法 笔记本电池锁死是什么原因引起的? 黑龙江债权转让合同纠纷该怎样取证 安徽债权转让合同纠纷应该怎么样取证 公务员档案可以借出吗,法律有相关规定吗? 报考国家公务员人事档案在自己手里存放怎么办? 关于国共战争的对联 考上公务员;人事档案与党员档案一般是哪里保管的呀?还有党组织关系是转到哪?谢了. H开头的女装,记得是H...G...的全拼。标志好像是白底浅灰色的2个大写字母E,2个E的位置很怪,是什么品牌 急!~公务员政审,人事档案的问题。 考公检法系统的公务员需要符合什么条件 公务员辞职后档案之类的如何处理? 深圳南山区海雅百货有H开头女装叫什么品牌? 报考公检法公务员有什么限制条件 应届毕业生考公务员,基本算考上了,人事档案现在在自己手里,应该存放在哪 毛主席六二年的诗词? 合肥乐普生 二楼女装品牌里面有一个品牌 是H开头的,服装偏日系少女系的?叫什么牌子?? 辞退和开除公职的公务员,个人档案应当怎样处理 七律到韶山里农奴戟是什么意思 考法院公务员需要什么条件 为有牺牲多壮志,敢教日月换新天。什么意思 考上公务员后如何提取自己的档案 中环百联有一家H开头的女装品牌店,是什么牌子? 红旗卷起农奴戟, 黑手高悬霸主鞭运用了什么 修辞方法 公务员档案在哪存放?是本单位还是人事局? 深圳户口能以回农村老家盖房吗 新录用公务员被取消录用后人事档案关系如何转移? 全日制大专入户深圳,父亲在深圳有自建房,但父亲户口是外地农村户口,能挂户口到这个自建房吗 公务员政审要调档,可人事档案在我自己手里,该怎么办? 自建房没有土地证和房产证 农村建设的漂亮别墅,为何20万一套也没有多少人买呢? 10年前我村已经停止审批建房,邻居要建房都是违建的,至今都有违建者 深圳市村委收自建房管理费合法吗? 深圳有那家设计公司设计农村4层自建房图纸的 农村自建房装修,需提取住房公积金,需要哪些手续? 农村别墅自建房需要请设计师设计吗 农村自建房地基下回角放青石在风水上有啥说次? 带木或金适合起名字的字 五行缺木的男人起名是带有木的字还是带有金的字好? 缺木和金吗,那名字里要带木和金才平衡吗 起名名字里带五行木和金的名字,最好四个字的 取名 带“金”和“木”的 我的儿子2012年6月21号早上8点30分出世,姓刘,请高人起名,希望能带有《木和金》在里面 各位老师你们好,我想给我的女儿起个名字。我姓蒋,女儿是20081月出生属猪,名字里面要带木和金