[root@host postgresql-9.1.9]# ./configure --prefix=/opt/pgsql9.1.9 --with-pgport=1921 --with-wal-blocksize=16 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking which template touse... linux checking whether to build with64-bitinteger date/time support... yes checking whether NLS is wanted... no checking fordefaultport number... 1921 checking forblock size... 8kB checking for segment size... 1GB checking for WAL block size... 16kB checking for WAL segment size... 16MB checking for gcc... no checking for cc... no configure: error: in `/opt/soft_bak/postgresql-9.1.9': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [root@host postgresql-9.1.9]# gcc -version -bash: gcc: command not found
解决方法 安装gcc包,如下:
1 2 3 4 5 6 7
[root@host172-16-3-215 ~]# yum install gcc [root@host172-16-3-215 ~]# gcc --version gcc (GCC) 4.1.220080704 (Red Hat 4.1.2-54) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
问题2:readline 没安装
1 2 3 4 5 6 7 8 9 10
[root@host postgresql-9.1.9]# ./configure --prefix=/opt/pgsql9.1.9 --with-pgport=1921 --with-wal-blocksize=16 ....省略部分 .... checking for library containing gethostbyname_r... none required checking for library containing shmget... none required checking for library containing 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 todisable readline support.
解决方法 安装 readline 包,如下:
1
root@host ~]# yum install readline-devel.x86_64
备注:安装 readline 组件开发包。
问题3:zlib 没安装
1 2 3 4 5 6 7 8 9
[root@host postgresql-9.1.9]# ./configure --prefix=/opt/pgsql9.1.9 --with-pgport=1921 --with-wal-blocksize=16 ....省略部分 .... checking for library containing fdatasync... none required checking for library containing gethostbyname_r... none required checking for library containing shmget... none required checking for library containing readline... -lreadline -ltermcap checking for inflate in -lz... no configure: error: zlib library not found