[R] RPostgreSQL Loading Issues

Joe Conway mail at joeconway.com
Tue Aug 30 22:08:16 CEST 2011


On 08/30/2011 10:53 AM, Rich Shepard wrote:
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object
> '/home/rshepard/R/i486-slackware-linux-gnu-library/2.13/RPostgreSQL/libs/RPostgreSQL.so':
> 
>   libR.so: cannot open shared object file: No such file or directory
> Error: package/namespace load failed for 'RPostgreSQL'
> 
>   The shared library, of course, is present:
> 
> [rshepard at salmo
> ~/R/i486-slackware-linux-gnu-library/2.13/RPostgreSQL/libs]$ ll
> -rwxr-xr-x 1 rshepard users 44385 2011-08-03 20:13 RPostgreSQL.so*
> 
>   Can someone explain to me what's going on and how I fix it?

Just a guess, but possibly because libpq.so (the postgres client
library) is not being found.

1) Do you have libpq.so installed on your system?
2) If so, where?
3) If it is not in a standard system location (e.g. /usr/lib), try
adding an entry either to /etc/ld.so.conf or a file with the appropriate
entry in /etc/ld.so.conf.d/ and then run ldconfig

HTH,

Joe


-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support



More information about the R-help mailing list