On 09/10/2015 07:35 AM, Nelson Jaiva wrote:
> mkdir postgresql
> ./configure --prefix=/home/hpc/pr48co/gu28luf2/postgresql
> make
> make install
>
> Now, the header '/libpq-fe.h' is in ~/postgresql/include/, but cannot be
> found during the installation of RPostgreSQL. I tried to add the include
> directory to the search path:
>
> export PATH=$PATH:~/postgresql/include
PATH is for executables, not includes. Looks like C_INCLUDE_PATH might
work -- see:
http://www.network-theory.co.uk/docs/gccintro/gccintro_23.html
You might need to set LD_LIBRARY_PATH too.
> but that did not work either. It seems that somewhere a reference to
> libpq-fe.h is missing, but I do not know how do fix it. Maybe the
> reference should be in pg_config? If yes, how would it look like?
pg_config can get those locations for you, e.g. something like:
export C_INCLUDE_PATH=$(pg_config --includedir):${C_INCLUDE_PATH}
export LD_LIBRARY_PATH=$(pg_config --libdir):${LD_LIBRARY_PATH}
HTH,
Joe
--
Crunchy Data -
http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development