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

Tena Sakai tsakai at gallo.ucsf.edu
Wed Oct 6 23:19:16 CEST 2010

Thank you Simon,

I ran:
  make install DESTDIR=/mnt/ami-centos5.5-64bit-base

Now I can execute this R which is in
/mnt/ami-centos5.5-64bit-base/usr/local/bin two ways:

  cd /mnt/ami-centos5.5-64bit-base/usr/local/bin
  chroot /mnt/ami-centos5.5-64bit-base R

Many thanks for your help.


Tena Sakai
tsakai at gallo.ucsf.edu

On 10/6/10 4:45 AM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote:

> 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

More information about the R-devel mailing list