Hi
Just signed up to the Shiny Server beta. I tried to install the package RPostgreSQL to connect to my postgresql database, but unfortunately if fails the basic sanity test (which I think checks to see if PostgreSQL is installed on the Ubuntu host. This is the error message in RStudio Server
In file included from RS-PQescape.c:7:0:
RS-PostgreSQL.h:23:26: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [RS-PQescape.o] Error 1
ERROR: compilation failed for package ‘RPostgreSQL’
* removing ‘/home/onsideanalysis/R/library/RPostgreSQL’
Warning in install.packages :
installation of package ‘RPostgreSQL’ had non-zero exit status
I tried then doing a local install of postgresql which seems to work well, and then building RPostgreSQL against this local install. I seemed to get further (everything seemed to compile) but when the package tested if it could be loaded it failed again
installing to /home/onsideanalysis/R/library/RPostgreSQL/libs
** R
** inst
** preparing package for lazy loading
Creating a generic function for ‘format’ from package ‘base’ in package ‘RPostgreSQL’
Creating a generic function for ‘print’ from package ‘base’ in package ‘RPostgreSQL’
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/onsideanalysis/R/library/RPostgreSQL/libs/RPostgreSQL.so':
libpq.so.5: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/onsideanalysis/R/library/RPostgreSQL’
Warning in install.packages :
installation of package ‘RPostgreSQL’ had non-zero exit status
Is there any chance postgresql could be installed on the host machine to avoid having to compile against local. I'm pretty sure that would fix it.
Many thanks
Dave
This e-mail and any files transmitted with it are confidential and may be legally privileged. If you receive it in error or are not the intended recipient you must not copy, distribute or take any action in reliance upon it. Instead, please notify us immediately by telephoning +44 (0) 1483 277275 and delete the material from your systems. Onside Analysis is a business carried on by Onside Analysis Limited, a company registered with the Registrar of Companies for England and Wales with number 7707216. Registered office: 28 Southway, Carshalton, Surrey, SM5 4HW, UK.