Received: from mail.enterprise.net (root@mail.enterprise.net [194.72.192.18]) by hub.org (8.9.1/8.9.1) with ESMTP id CAA03788 for ; Fri, 20 Nov 1998 02:29:20 -0500 (EST) (envelope-from olly@lfix.co.uk) Received: from linda.lfix.co.uk (root@ppp157.enterprise.net [194.72.195.157]) by mail.enterprise.net (8.8.5/8.8.5) with ESMTP id HAA09621; Fri, 20 Nov 1998 07:29:14 GMT Received: from linda.lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.9.1a/8.9.1/Debian/GNU) with ESMTP id HAA16476; Fri, 20 Nov 1998 07:28:59 GMT Message-Id: <199811200728.HAA16476@linda.lfix.co.uk> X-Mailer: exmh version 2.0.2 2/24/98 (debian) To: "G. Anthony Reina" cc: "pgsql-questions@postgresql.org" Subject: Re: [SQL] Postgres installed but my C programs won't compile In-Reply-To: Message from "G. Anthony Reina" of "Thu, 19 Nov 1998 14:11:28 PST." <36549790.8A37F70F@nsi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Nov 1998 07:28:58 +0000 From: "Oliver Elphick" "G. Anthony Reina" wrote: >I had no trouble installing Postgres 6.4 on my RedHat 5.1 Linux machine. >However, the C programs I had previously written to access the SQL >database were not returning the correct values. I tried to make some >changes and re-compile the program but got the following error when I >tried to run the re-compiled program: > >[reina ~/c_programs]$ cc process_kinematics.c -o PROCESS_KINEMATICS $SQL >matrix_tools.c gcvspl.o -lm >[reina ~/c_programs]$ PROCESS_KINEMATICS >PROCESS_KINEMATICS: error in loading shared libraries >libpq.so.2.0: cannot open shared object file: No such file or directory > >It looks as though SQL can't find my shared libraries for Postgres >anymore. Does anybody know why? > >I tried copying my 6.3.2 version back into the proper directories and >the program will compile and re-run correctly. The library version number changed at 6.4. If your 6.3.2 was from an rpm and you have compiled this one for yourself, it is possible that the libraries have ended up in different places. On Debian, packages put libraries in /usr/lib, for example, whereas, by default, PostgreSQL install puts them in /usr/local/lib. Try adding -l/usr/local/lib to the compile line. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 ======================================== "If my people, which are called by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land." II Chronicles 7:14