From pleydell at supagro.inra.fr  Wed Aug 26 12:47:29 2009
From: pleydell at supagro.inra.fr (pleydell at supagro.inra.fr)
Date: Wed, 26 Aug 2009 12:47:29 +0200
Subject: [Rd] Cannot make 3 different R installations for 3
	different	valgrind-instrumentation levels
In-Reply-To: <D30ADD33-3339-409D-B2E2-9090B4E14CD8@r-project.org>
References: <20090825183131.19kjcomatupco0wg@web.supagro.inra.fr>
	<D30ADD33-3339-409D-B2E2-9090B4E14CD8@r-project.org>
Message-ID: <20090826124729.ad1ilt691u880w0w@web.supagro.inra.fr>

> 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



[Rd] Cannot make 3 different R installations for 3 different valgrind-instrumentation levels
pleydell at supagro.inra.fr