From: William Tihen Date: 2002-01-18T23:11:35+09:00 Subject: Database Extensions Hello, Trying to install Postgresql extenions on a RH7.2 machine. I tried as normal user, this didn't work, so I tried as root, this came closer, but it couldn't find the library it was looking for -- of course the README said this is for postgres version 6.4 and I have 7.1 -- is this why the library is missing or is it because I need the developer libraries of postgresql -- or most likely -- am I overlooking something. Advise would be appreciated. Below is a transcript. Thanks. Bill Tihen [bill@lotus postgres]$ rpm -q postgresql postgresql-7.1.3-2 [bill@lotus postgres]$ rpm -q ruby ruby-1.6.4-2 [bill@lotus Ruby]$ tar xfz postgres-0.5.4.tar.gz [bill@lotus Ruby]$ cd postgres [bill@lotus postgres]$ ruby extconf.rb checking for cygwin32_socket() in -lwsock32... /usr/lib/ruby/1.6/mkmf.rb:79:in `open': Permission denied - "conftest.c" (Errno::EACCES) from /usr/lib/ruby/1.6/mkmf.rb:79:in `try_link0' from /usr/lib/ruby/1.6/mkmf.rb:99:in `try_link' from /usr/lib/ruby/1.6/mkmf.rb:197:in `have_library' from extconf.rb:11 Tried as root (got further) [root@lotus postgres]# ruby extconf.rb checking for cygwin32_socket() in -lwsock32... no checking for socket() in -lsocket... no checking for gethostbyname() in -linet... no checking for gethostbyname() in -lnsl... yes checking for sys/un.h... yes checking for socket()... yes checking for hsterror()... no checking for gethostname()... yes checking for PQsetdbLogin() in -lpq... yes creating Makefile [root@lotus postgres]# make gcc -fPIC -O2 -march=i386 -mcpu=i686 -fPIC -I/usr/lib/ruby/1.6/i386-linux-gnu -I/usr/include -DHAVE_SYS_UN_H -DHAVE_SOCKET -DHAVE_GETHOSTNAME -c -o postgres.o postgres.c postgres.c:16:22: libpq-fe.h: No such file or directory make: *** [postgres.o] Error 1