Skip to content

Installing multiple architectures for a package

5 messages · Steven McKinney, Simon Urbanek, David Winsemius

#
Hi all,

I have set up both 32-bit and 64-bit versions of 
R.app and can run them happily at the same time.
(I'll refer to them as R32.app and R64.app)

However, if I install a package using the R32.app
package installer, then install the same package
from R64.app, the 32 bit version is removed.

Is there a way to install from R64.app so that
the *package*/libs/ppc64 directory is added to the
already existing *package*/libs/ and
the appropriate 64 bit file versions are installed
into *package*/libs/ppc64 without deleting the
whole library directory?  (At present each
R32.app or R64.app install deletes the whole
package's library directory so I only end up
with one architecture installed.)

I've reviewed the install.packages() help and
am not seeing a way to accomplish this via
the command line.  Did I miss something?
Is there a way to add an architecture to a 
package's already existing libs/ directory?


Steven McKinney

Statistician
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre

email: smckinney +at+ bccrc +dot+ ca

tel: 604-675-8000 x7561

BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C. 
V5Z 1L3
Canada
#
On Nov 26, 2008, at 11:06 PM, Steven McKinney wrote:

            
This is not about 32-bit vs. 64-bit --- this is about which build of R  
you use. The Tiger build supports only 32-bit, the Leopard build  
supports both 32 and 64-bit. It is irrelevant which architecture you  
use (32 ot 64-bit). You have to use the packages binaries for the  
correct build, but that should happen automatically.
Yes, if you install from sources use
R CMD INSTALL --libs-only

See R for Mac FAQ "5.4 Building universal packages"

However, you should only need that in rare cases (for packages with  
Makefile or configure script). Make sure you know what you're doing  
(please read the whole package installation FAQ section).

Cheers,
Simon
#
Hi Simon,
My apologies for 32-bit 64-bit nomenclature mangling.  

I have Leopard on my Mac (sessionInfo below), and 16GB RAM, 
and mountains of data to process.  So having 64-bit capability 
allows me to get lots of processing done that would otherwise 
be painful.

I use a lot of Bioconductor packages, but they are not
providing ppc64 architecture with their binaries.

In a recent email (Nov 6, 2008 - inserted at end of this
email) you kindly offered to compile BioC packages
so that ppc64 architecture would be available.  Will
you be able to offer this?  If so, where will those
binary packages containing ppc64 architecture be
found - at your website or Bioconductor?

If not, then I need to figure all this out.
It is very convenient to install the bulk of
packages via the R.app package installer, but
then I have to do the ppc64 architecture additionally.
Since I use many Bioconductor packages, this is not
rare, unfortunately, since they do not offer ppc64
binaries.  Not all CRAN binaries include ppc64 either.

It appears that if I install binaries from R32.app,
then I have to add the ppc64 versions via command line
R --arch=ppc64 CMD INSTALL --libs-only packagename.tar.gz

Would it be possible to add a --libs-only option
to the R.app package installer to help automate this?

Thanks for your guidance

Steve M
R version 2.8.0 Patched (2008-11-06 r46845) 
powerpc-apple-darwin9.5.0 

locale:
en_CA.UTF-8/en_CA.UTF-8/C/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
 [1] splines   grid      tools     stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] oligo_1.6.0              affxparser_1.14.0        VanillaICE_1.4.0         SNPchip_1.6.0           
 [5] oligoClasses_1.4.0       beadarraySNP_1.8.0       quantsmooth_1.8.0        lodplot_1.1             
 [9] quantreg_4.23            SparseM_0.78             beadarray_1.10.0         sma_0.5.15              
[13] hwriter_0.93             geneplotter_1.20.0       lattice_0.17-15          limma_2.16.3            
[17] illuminaHumanv3.db_1.1.2 lumi_1.8.3               RSQLite_0.7-1            DBI_0.2-4               
[21] preprocessCore_1.4.0     mgcv_1.4-1               affy_1.20.0              annotate_1.20.1         
[25] xtable_1.5-4             AnnotationDbi_1.4.1      Biobase_2.2.1           

loaded via a namespace (and not attached):
[1] KernSmooth_2.22-22 RColorBrewer_1.0-2 affyio_1.10.1
#
On Nov 27, 2008, at 12:22 AM, Steven McKinney wrote:

            
Have you tried installing what you need? I was asked offlist whether  
there would be any point in installing the 64 bit version by someone  
who was using selected portions of the bioconductor suite. The entire  
biocLite superpackage installed from binaries under my 64bit GUI  
installation without complaint and ran a brief test suite. I still am  
not having that same error free installation with Harrell's Design and  
Hmisc combo however.

If someone on the list has had a go at figuring out what is stopping  
the Design and Hmisc packages from compiling, I would be interested.
#
Hi David,

What platform are you running on?
 
Yes, I figured out how to get it all done
yesterday, and now have a great R installation
with ppc and ppc64 architectures running well.
I spent the day cranking through HMM modeling
of bunches of Illumina chip data, which I just
could not do with limited memory or 32 bit 
software.

There's no need to install 64 bit stuff if
you don't have much memory or large data sets.

I'm not seeing ppc64 architecture when I
install bioconductor packages.  When you say
the biocLite stuff installed, are you saying
you have 64 bit architecture versions available?
I only see i386 and ppc architectures install
when I install from Bioconductor binaries.

Hmisc and Design are working fine for me, so
it can be done.  What error messages are you
seeing when you try to install from source?

Best

Steve M


-----Original Message-----
From: David Winsemius [mailto:dwinsemius at comcast.net]
Sent: Thu 11/27/2008 6:19 AM
To: Steven McKinney
Cc: Simon Urbanek; R-SIG-Mac at stat.math.ethz.ch
Subject: Re: [R-SIG-Mac] Installing multiple architectures for a package
On Nov 27, 2008, at 12:22 AM, Steven McKinney wrote:

            
Have you tried installing what you need? I was asked offlist whether  
there would be any point in installing the 64 bit version by someone  
who was using selected portions of the bioconductor suite. The entire  
biocLite superpackage installed from binaries under my 64bit GUI  
installation without complaint and ran a brief test suite. I still am  
not having that same error free installation with Harrell's Design and  
Hmisc combo however.

If someone on the list has had a go at figuring out what is stopping  
the Design and Hmisc packages from compiling, I would be interested.