Обсуждение: PGPOOL-II
Hi ! I am compiling the pgpool-II and the following error below happens: configure: error: libpq is not installed or libpq is old I ran the following command : ./configure --prefix=/opt/PostgreSQL/pgpoolII --with-pgsql=/opt/PostgreSQL/8.4 --with-pgsql-libdir=/opt/PostgreSQL/8.4/lib --with-pgsql-includedir=/opt/PostgreSQL/8.4/include I've installed postgresql 8.4.4. This may be due to lack of a library of Linux? Tk´s ! []´s victor hugo log below ======= 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 for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... (cached) ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking for -Wall option... yes checking for -Wmissing-prototypes option... yes checking for -Wmissing-declarations option... yes checking for main in -lm... 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 -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 main in -lcrypt... yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/types.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking for an ANSI C-conforming const... yes checking for pid_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether long int is 64 bits... yes checking for unsigned long... yes checking size of unsigned long... 8 checking for void *... yes checking size of void *... 8 checking for size_t... yes checking size of size_t... 8 checking whether to build with float4 passed by value... yes checking whether to build with float8 passed by value... yes checking for struct sockaddr_storage... yes checking for struct sockaddr_storage.ss_family... yes checking for struct sockaddr_storage.__ss_family... no checking for struct sockaddr_storage.ss_len... no checking for struct sockaddr_storage.__ss_len... no checking for struct sockaddr.sa_len... no checking for union semun... no checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for wait3 that fills in rusage... yes checking types of arguments for accept()... int, int, struct sockaddr *, socklen_t * checking for setsid... yes checking for select... yes checking for socket... yes checking for sigprocmask... yes checking for strdup... yes checking for strerror... yes checking for strftime... yes checking for strtok... yes checking for asprintf... yes checking for gai_strerror... yes checking for hstrerror... yes checking for pstat... no checking for setproctitle... no checking for pg_config... pg_config checking for PQexecPrepared in -lpq... no configure: error: libpq is not installed or libpq is old -- []´s Victor Hugo
> I've installed postgresql 8.4.4. Hi, Usually you need a ...-dev package if you want to compile anything against it. But i can't find a postgresql-8.4-dev in my ubuntu lucid (10.04). That might mean that you have to compile postgres also, or find a repository for the -dev package. hth WBL -- "Patriotism is the conviction that your country is superior to all others because you were born in it." -- George Bernard Shaw
On Fri, Oct 1, 2010 at 1:48 PM, Willy-Bas Loos <willybas@gmail.com> wrote: >> I've installed postgresql 8.4.4. > Hi, > > Usually you need a ...-dev package if you want to compile anything against it. > But i can't find a postgresql-8.4-dev in my ubuntu lucid (10.04). > That might mean that you have to compile postgres also, or find a > repository for the -dev package. > > hth > > WBL postgresql-server-dev-8.4?
2010/9/30 Victor Hugo <vh.clemente@gmail.com>: > Hi ! > > I am compiling the pgpool-II and the following error below happens: > configure: error: libpq is not installed or libpq is old > I ran the following command : ./configure > --prefix=/opt/PostgreSQL/pgpoolII --with-pgsql=/opt/PostgreSQL/8.4 > --with-pgsql-libdir=/opt/PostgreSQL/8.4/lib > --with-pgsql-includedir=/opt/PostgreSQL/8.4/include > If you have compiled postgres, you must declare in --with-pgsql the 'prefix', you don't need to arg pgsql-libdir and includedir if you're using the other one (if you compiled). -- Emanuel Calvo Franco Independient DBA www.emanuelcalvofranco.com.ar
> postgresql-server-dev-8.4? ah, the other way around :P i would think libpqxx3-dev or libpqxx-dev, which is probably a meta-package (independent of version nr) it seems from the error that you don't need the server files, only libpg, which is a client library -- "Patriotism is the conviction that your country is superior to all others because you were born in it." -- George Bernard Shaw