Postgres installed but my C programs won't compile

From: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
To: "pgsql-questions(at)postgresql(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Postgres installed but my C programs won't compile
Date: 1998-11-19 22:11:28
Message-ID: 36549790.8A37F70F@nsi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Anyone know what to do?

Thanks.
-Tony

Browse pgsql-sql by date

  From Date Subject
Next Message Hitesh Kumar Gulati 1998-11-19 22:32:50 Problem
Previous Message Bruno Feurer 1998-11-19 11:19:46 Merging databases