Dear R-Devel, I'm using Ubuntu on an x86_64 machine and would like to have both the 32-bit and 64-bit versions of R built from source. By default, following the usual build procedures yields 64 bit R. Looking at [these](http://cran.r-project.org/doc/manuals/R-admin.html#Sub_002darchitectures), I thought I could build 32-bit R by executing r_arch=32 ./configure and building R like usual (make). However, after seeing this error message, /usr/bin/install: cannot create regular file `../../include/32/Rconfig.h': No such file or directory I realize I am misunderstanding the instructions. Could someone please clarify how I could go about compiling both 32-bit and 64-bit versions of R on my Linux machine? Thank you! -- Vinh
The architecture is called i386. Try r_arch=i386 ./configure That should work. Cheers Joris On Wed, Aug 10, 2011 at 1:40 AM, Vinh Nguyen <vqnguyen at uci.edu> wrote:> Dear R-Devel, > > I'm using Ubuntu on an x86_64 machine and would like to have both the > 32-bit and 64-bit versions of R built from source. ?By default, > following the usual build procedures yields 64 bit R. ?Looking at > [these](http://cran.r-project.org/doc/manuals/R-admin.html#Sub_002darchitectures), > I thought I could build 32-bit R by executing > > r_arch=32 ./configure > > and building R like usual (make). ?However, after seeing this error message, > > /usr/bin/install: cannot create regular file > `../../include/32/Rconfig.h': No such file or directory > > I realize I am misunderstanding the instructions. ?Could someone > please clarify how I could go about compiling both 32-bit and 64-bit > versions of R on my Linux machine? ?Thank you! > > -- Vinh > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Joris Meys Statistical consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control tel : +32 9 264 59 87 Joris.Meys at Ugent.be ------------------------------- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
Hi Vinh, On 9 August 2011 at 16:40, Vinh Nguyen wrote: | Dear R-Devel, | | I'm using Ubuntu on an x86_64 machine and would like to have both the | 32-bit and 64-bit versions of R built from source. By default, | following the usual build procedures yields 64 bit R. Looking at | [these](http://cran.r-project.org/doc/manuals/R-admin.html#Sub_002darchitectures), | I thought I could build 32-bit R by executing | | r_arch=32 ./configure | | and building R like usual (make). However, after seeing this error message, | | /usr/bin/install: cannot create regular file | `../../include/32/Rconfig.h': No such file or directory | | I realize I am misunderstanding the instructions. Could someone | please clarify how I could go about compiling both 32-bit and 64-bit | versions of R on my Linux machine? Thank you! I do not think that multiarch build (ie 32 and 64 at the same time) are fully supported yet on Ubuntu or Debian. It is coming, but just like a number of other things, not exactly overnight. It is a release goal. In the meantime, you can always use virtualization. I have a Debian 32-bit system and an Ubuntu 32-bit system in KVM virtualization on my Ubuntu 64-bit server. That works well. Kvm, or Xen, or Virtualbox, or Vmware, ... all offer fairly decent virtualization. Debian/Ubuntu specific questions are even more welcome on r-sig-debian. Dirk -- Two new Rcpp classes scheduled for New York and San Francisco, details at http://dirk.eddelbuettel.com/blog/2011/08/04#rcpp_classes_2011-09_and_2011-10
Apparently Analagous Threads
- advice on writing/maintaining an R package with a version control system
- Package repository on Linux machine and upgrading R
- proportion of treatment effect by a surrogate (fitting multivariate survival model)
- location of Rconfig.h when using architecture-dependent subdirs
- R + C + Lapack toy regression example