REmbeddedPostgres question Re: [R] How to change the default library directory?

Bai Yan baiyan at
Mon Mar 3 06:38:03 CET 2003


I just figured out this problem by setting up the R_LIBS environment.
But a new question came up when I tried to install the REmbeddedPostgres
package. It seems this package must be installed in /usr/lib/R but cannot
be install into a user-specified library directory. Anybody here had such

The error message is:

%%R CMD INSTALL -c -l $R_LIBS REmbeddedPostgres_0.2.tar.gz
* Installing *source* package 'REmbeddedPostgres' ...
creating cache ./config.cache
checking for crypt in -lcrypt... yes
You need to compile the R shared library ''
in the R distribution (/usr/lib/R)
ERROR: configuration failed for package 'REmbeddedPostgres'



Yan Bai

On Sun, 2 Mar 2003, Bai Yan wrote:

> I installed SJava package at $R_HOME/lib/R/library/
> When I conduct library(SJava), I always need to explicitly specify the
> library path, how could I change the default library path?
> I have included the SJava path in the LD_LIBRARY_PATH variable as:
> R_HOME/lib/R/library:R_HOME/lib/R/library/SJava/libs:/usr/java/j2sdk1.4.0_01/jr$
> The result in R is as:
> ----------------------------------------------------
> > library(SJava)
> Error in library(SJava) : There is no package called `SJava'
> > library(SJava,
> lib.loc="/disk/hopper/projects/class/cse514/R/lib/R/library")
> Warning message:
> The Java machine is no longer initialized automatically. You must
> explicitly load it in: firstlib(which.lib.loc, package)
> >
> ----------------------------------------------------
> Another question is about firstlib, what should I do to initialize the
> Java machine here?
> Your helps are really appreciated!!!
> Yan Bai
> ______________________________________________
> R-help at mailing list

More information about the R-help mailing list