From simon.urbanek at r-project.org  Wed Oct  6 13:45:10 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 6 Oct 2010 07:45:10 -0400
Subject: [Rd] How do I put ldpaths in a specific place?
In-Reply-To: <C8D14B66.C9AF%tsakai@gallo.ucsf.edu>
References: <C8D14B66.C9AF%tsakai@gallo.ucsf.edu>
Message-ID: <FBB26112-A52A-4EB0-89CC-D5CC952E1FA8@r-project.org>


On Oct 6, 2010, at 12:38 AM, Tena Sakai wrote:

> Hi Everybody,
> 
> I made R (v. 2.11.1) from source with the following config option:
>    ./configure --prefix=/mnt/ami-centos5.5-64bit-base \
>                        --exec-prefix=/mnt/ami-centos5.5-64bit-base \
>                        --with-tcltk
> 
> All seemed to go well, but when I tested it with:
>    /usr/sbin/chroot /mnt/ami-centos5.5-64bit-base R
> It told me:
>  /bin/R: line 217: /mnt/ami-centos5.5-64bit-base/lib64/R/etc/ldpaths: No such file or directory
> 
> Question:
> How can I direct ldpaths file into this directory?
> 

That's a quite irrelevant question if your underlying goal is to run R - ldpaths is your least problem - even if you fixed that nothing would work as your R.home is entirely wrong.

Note that by using chroot you're making the entire configuration under which you compiled R invalid.

If your chroot jailed configuration is identical to that of your main system, you should configure R against your full system and use DESTDIR on make install to place the installation in the jail. (Note that --prefix is something entirely different!)

If it's not then you are entirely on your own as you will have to use the above approach but then also make sure any dependent tools and libraries used by R are also present in the chroot jail.

Cheers,
Simon



[Rd] How do I put ldpaths in a specific place?
Simon Urbanek