[Rd] Cannot make 3 different R installations for 3 different valgrind-instrumentation levels

pleydell at supagro.inra.fr pleydell at supagro.inra.fr
Wed Aug 26 12:47:29 CEST 2009


> You're confusing rhome and arch - the above makes no sense. Let rhome 
>  alone and you should be fine. (And make sure you're not building in  
> the source tree - you should be using something like mkdir obj_vg0 && 
>  cd obj_vg0 && ../R-2.9.1/configure ...)

Thanks Simon. I'd already tried various variations with rhome and arch, but I
think my biggest error was that I was always compiling from within the source
tree. However, the following script still doesn't quite do the job

cd /usr/local/lib
mkdir R-2.9.2_vg0
mkdir R-2.9.2_vg1
mkdir R-2.9.2_vg2
cd /usr/local/lib/R-2.9.2_vg2
sudo /usr/local/src/R-2.9.2/configure --enable-memory-profiling
--with-valgrind-instrumentation=2 r_arch=vg2
sudo make
sudo make install
cd /usr/local/lib/R-2.9.2_vg1
sudo /usr/local/src/R-2.9.2/configure --enable-memory-profiling
--with-valgrind-instrumentation=1 r_arch=vg1
sudo make
sudo make install
cd /usr/local/lib/R-2.9.2_vg0
sudo /usr/local/src/R-2.9.2/configure --enable-memory-profiling
--with-valgrind-instrumentation=0 r_arch=vg0
sudo make
sudo make latex
sudo make dvi
sudo make pdf
sudo make info
sudo make help
sudo make html
sudo make uninstall
sudo make install

Now the command "R --arch=vg0" executes fine, but...

david at david > R --arch=vg1
/usr/local/bin/R: line 230: /usr/local/lib/R/bin/exec/vg1/R: No such file or
directory
/usr/local/bin/R: line 230: exec: /usr/local/lib/R/bin/exec/vg1/R: cannot
execute: No such file or directory

david at david > R --arch=vg2
/usr/local/bin/R: line 230: /usr/local/lib/R/bin/exec/vg2/R: No such file or
directory
/usr/local/bin/R: line 230: exec: /usr/local/lib/R/bin/exec/vg2/R: cannot
execute: No such file or directory

is suspect installing to seperate _vg0, _vg1 and _vg2 directories could be the
problem. I'll retry and post the results.

David



More information about the R-devel mailing list