[问题] 求教 Postgresql8.1 源码安装问题

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
kingxkm
帖子: 7
注册时间: 2006-06-07 13:36
送出感谢: 0
接收感谢: 0

[问题] 求教 Postgresql8.1 源码安装问题

#1

帖子 kingxkm » 2007-01-06 5:53

大家好,
我在ub6.1里想安装Postgresql8.1,用apt-get 安装方便是方便,不过感觉他的命令呀,目录呀太分散了,所以我下载了源码包,可是在configure时出错,我看了源码目录里的 INSTALL ,用的是gmake,可是我无法在我的系统里找到gmake,而且也无法安装 gmake,
我尝试用

代码: 全选

 ./configure CC=/usr/bin/gcc --prefix=/usr/local/postgresql8.1 
或者

代码: 全选

./configure --prefix=/usr/local/postgresql8.1
均失败,如下提示:

代码: 全选

root@mydc:~/postgresql-8.1.4# ./configure --prefix=/usr/local/postgresql8.1
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... no
checking whether NLS is wanted... no
checking for default port number... 5432
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 ANSI C... 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
configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... no
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 Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for egrep... grep -E
configure: using CPPFLAGS=-D_GNU_SOURCE 
configure: using LDFLAGS= 
checking for gawk... no
checking for mawk... mawk
checking for flex... no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVS or
*** change any of the scanner definition files.  You can obtain Flex from
*** a GNU mirror site.  (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)
checking whether ln -s works... yes
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 lorder... lorder
checking for tar... /bin/tar
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for bison... no
configure: WARNING:
*** Without Bison you will not be able to build PostgreSQL from CVS or
*** change any of the parser definition files.  You can obtain Bison from
*** a GNU mirror site.  (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Bison
*** output is pre-generated.)  To use a different yacc program (possible,
*** but not recommended), set the environment variable YACC before running
*** 'configure'.
checking for perl... /usr/bin/perl
checking for main in -lbsd... no
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for library containing getopt_long... none required
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for shmget in -lcygipc... no
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.

头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 karron » 2007-01-06 8:57

有打包的版本你不用.自己编译个啥阿.这种大型软件.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
vividness
帖子: 28
注册时间: 2006-11-27 23:46
送出感谢: 0
接收感谢: 0

#3

帖子 vividness » 2007-01-24 17:47

configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
你的系统没有readline包造成的,你可以采用下面的方面编译,去掉readline支持
$ sudo ./configure --prefix=/usr/local/postgresql8.1 --without-readline
cetingraul
帖子: 7
注册时间: 2007-01-27 16:19
送出感谢: 0
接收感谢: 0

#4

帖子 cetingraul » 2007-07-10 11:18

我安装时也出现同样问题了,我去掉readline后又出现:
Use --without-zlib to disable zlib support.
没有这个包,怎样获取这些包啊,或者说同时去掉这两个包可以吗?怎么做?
viewtopic.php?t=63704
麻烦帮忙看一下
cxczqfrx
帖子: 107
注册时间: 2007-07-11 11:10
送出感谢: 0
接收感谢: 0

#5

帖子 cxczqfrx » 2007-07-13 16:13

这些问题是依赖性问题,建议你把ununtu的基本开发包装上去,自己编译,很多都需要开发工具支持的
头像
arust
帖子: 28
注册时间: 2007-07-25 17:15
来自: 潇湘
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 arust » 2007-07-25 17:20

karron 写了:有打包的版本你不用.自己编译个啥阿.这种大型软件.
编译安装也才半个小时左右,但是很值得花这么点时间
sandsman
帖子: 2
注册时间: 2005-10-10 17:03
送出感谢: 0
接收感谢: 0

#7

帖子 sandsman » 2007-09-04 10:27

安装libreadline5-dev包可以解决找不到readline的问题:
sudo apt-get install libreadline5-dev

安装zlib1g-dev包可以解决找不到zlib的问题:
sudo apt-get install zlib1g-dev
domando
帖子: 1
注册时间: 2007-09-07 20:06
送出感谢: 0
接收感谢: 0

#8

帖子 domando » 2007-11-25 23:41

安装libreadline5-dev包可以解决找不到readline的问题:
sudo apt-get install libreadline5-dev

安装zlib1g-dev包可以解决找不到zlib的问题:
sudo apt-get install zlib1g-dev

=================================================
楼上正解!!!!!
多谢!!
回复

回到 “数据库管理”