Опубликовано 16 марта, 200719 г. comment_3682874 root@Router:/billing/postgresql/postgresql-8.2.3# ./configure --prefix=/opt/postgresql --with-perl --with-maxbackends=1024 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... yes 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 LDAP 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 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 nor *** 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 Perl archlibexp... /usr/lib/perl/5.8 checking for Perl privlibexp... /usr/share/perl/5.8 checking for Perl useshrplib... true checking for flags to link embedded Perl... -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt 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... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing shmget... none required checking for -lreadline... no checking for -ledit... 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. root@Router:/billing/postgresql/postgresql-8.2.3# make all install You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] Error 1 Жалоба
Опубликовано 16 марта, 200719 г. comment_3682938 Все написано, что непонятно? Или с английским плохо совсем? Жалоба
Опубликовано 16 марта, 200719 г. comment_3682968 readline ставьте, или ./configure --without-readline делайте, если поддержка readline не нужна. А уж после успешного прохождения ./configure делайте make Жалоба
Опубликовано 16 марта, 200719 г. comment_3683018 Может, я чего не понимаю, но почему нельзя поставить бинарный пакет? К тому же у Вас, если мне не изменяет память установлено что-то дебианоподобное. Жалоба
Опубликовано 16 марта, 200719 г. Автор comment_3683092 у меня убунту. но мне нужно установить 1. в директорию /opt/postgresql 2. чтобы было не 32 одновременных конекта а 1024 Жалоба
Опубликовано 16 марта, 200719 г. comment_3683167 QUOTE (ko-antoha @ Mar 16 2007, 12:36) у меня убунту. но мне нужно установить 1. в директорию /opt/postgresql 2. чтобы было не 32 одновременных конекта а 1024 ./configure --prefix=/opt/postgresql --without-readline make make install Жалоба
Опубликовано 16 марта, 200719 г. comment_3683181 Для Ubuntu можно сделать так (с PostgreSQL не пробовал): 1. Добавить в /etc/apt/sources.list: deb-src http://debian.nsu.ru/debian sid main non-free contrib это нужно для того, чтобы apt-get знал, что есть исходники (на debian.nsu.ru нет deb-src для Ubuntu). 2. `sudo apt-get build-dep postgresql` 3. Собрать PostgreSQL любым удобным способом (я бы это делал при помощи apt-source и dpkg-buildpackage). Жалоба
root@Router:/billing/postgresql/postgresql-8.2.3# ./configure --prefix=/opt/postgresql --with-perl --with-maxbackends=1024
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... yes
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 LDAP 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 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 nor
*** 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 Perl archlibexp... /usr/lib/perl/5.8
checking for Perl privlibexp... /usr/share/perl/5.8
checking for Perl useshrplib... true
checking for flags to link embedded Perl... -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
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... none required
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for library containing shmget... none required
checking for -lreadline... no
checking for -ledit... 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.
root@Router:/billing/postgresql/postgresql-8.2.3# make all install
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.
make: *** [all] Error 1