Hello, I am trying to get a 64 version of R running on my Mac Pro (like several others, it seems). It seems there are two options, 10.4 and 10.5: http://r.research.att.com/exp/ says to install Xcode [tick] and GNU Fortran [tick], get the R source (from CRAN, I assume, e.g. http:// cran.au.r-project.org/src/base/R-2/R-2.5.0.tar.gz) [tick], and configure with a suggested command line: ./configure CC='gcc -arch x86_64' CXX='g++ -arch x86_64' F77='gfortran -arch x86_64' FC='gfortran -arch x86_64' --with-blas='- framework vecLib' --with-lapack --without-x --with-system-zlib -- build=x86_64-apple-darwin8.8.1 --without-readline Tiger: When I run it (without r_arch=x86_64) I get an error: configure: error: --with-iconv=yes (default) and suitable iconv is not available What is this and how do I address it? Leopard: When I run the same configure as per the web site, I get a different error: ./configure: line 61328: test: =: unary operator expected If I then go on to 'make', I get the following: ld64: warning: option -headerpad_max_install_names is obsolete and being ignored ld64-72 failed: duplicate symbol _Rf_mkChar in CommandLineArgs.o and CConverters.o So, no luck with either version of the OS. Could somebody assist me with these problems? I am sorry in that I am not knowledgeable with all this installation of packages and the like.. Thanks in advance, Karl
YA Mac 64 bit Question
4 messages · Karl Goiser, Byron Ellis, Simon Urbanek
The second problem is due to a problem with inline functions--Simon probably knows how to get the right thing to happen, but I usually just take the brute force method of deactivating inline functions by hand.
On 5/6/07, Karl Goiser <karl.goiser at anu.edu.au> wrote:
Hello, I am trying to get a 64 version of R running on my Mac Pro (like several others, it seems). It seems there are two options, 10.4 and 10.5: http://r.research.att.com/exp/ says to install Xcode [tick] and GNU Fortran [tick], get the R source (from CRAN, I assume, e.g. http:// cran.au.r-project.org/src/base/R-2/R-2.5.0.tar.gz) [tick], and configure with a suggested command line: ./configure CC='gcc -arch x86_64' CXX='g++ -arch x86_64' F77='gfortran -arch x86_64' FC='gfortran -arch x86_64' --with-blas='- framework vecLib' --with-lapack --without-x --with-system-zlib -- build=x86_64-apple-darwin8.8.1 --without-readline Tiger: When I run it (without r_arch=x86_64) I get an error: configure: error: --with-iconv=yes (default) and suitable iconv is not available What is this and how do I address it? Leopard: When I run the same configure as per the web site, I get a different error: ./configure: line 61328: test: =: unary operator expected If I then go on to 'make', I get the following: ld64: warning: option -headerpad_max_install_names is obsolete and being ignored ld64-72 failed: duplicate symbol _Rf_mkChar in CommandLineArgs.o and CConverters.o So, no luck with either version of the OS. Could somebody assist me with these problems? I am sorry in that I am not knowledgeable with all this installation of packages and the like.. Thanks in advance, Karl
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Byron Ellis (byron.ellis at gmail.com) "Oook" -- The Librarian
Karl,
On May 6, 2007, at 3:31 AM, Karl Goiser wrote:
Hello, I am trying to get a 64 version of R running on my Mac Pro (like several others, it seems). I
You can try this: curl http://r.research.att.com/R-25-br-quad.tar.gz -O tar fvxz R-25-br-quad.tar.gz -C / It is a quad-arch framework (including 64-bit x86). To run the 64-bit version, use /Library/Frameworks/R.framework/Resources/bin/R64 If you want to use X11, you'll need 64-bit client in /usr/local/X11R7 (I used Xorg).
t seems there are two options, 10.4 and 10.5: http://r.research.att.com/exp/ says to install Xcode [tick] and GNU Fortran [tick], get the R source (from CRAN, I assume, e.g. http:// cran.au.r-project.org/src/base/R-2/R-2.5.0.tar.gz) [tick], and configure with a suggested command line: ./configure CC='gcc -arch x86_64' CXX='g++ -arch x86_64' F77='gfortran -arch x86_64' FC='gfortran -arch x86_64' --with-blas='- framework vecLib' --with-lapack --without-x --with-system-zlib -- build=x86_64-apple-darwin8.8.1 --without-readline Tiger: When I run it (without r_arch=x86_64) I get an error: configure: error: --with-iconv=yes (default) and suitable iconv is not available What is this and how do I address it?
There are two possibilities:
1) use --without-iconv (untested)
2) get 64-bit iconv:
a) compile it from Apple's sources
or
b)
curl http://r.research.att.com/libiconv.2.dylib -o /tmp/libiconv.
2.dylib \
&& sudo cp /tmp/libiconv.2.dylib /usr/lib/libiconv.2.dylib
It is strange, because Xcode SDK contains 64-bit stub for iconv, but
the system library is 32-bit only.
Leopard: When I run the same configure as per the web site, I get a different error: ./configure: line 61328: test: =: unary operator expected If I then go on to 'make', I get the following: ld64: warning: option -headerpad_max_install_names is obsolete and being ignored ld64-72 failed: duplicate symbol _Rf_mkChar in CommandLineArgs.o and CConverters.o
I'm not sure I can comment on this using a public mailing list, so all I'll say is that the hot fix is to apply this patch to src/ include/Rinternals.h: Index: Rinternals.h =================================================================== --- Rinternals.h (revision 41454) +++ Rinternals.h (working copy) @@ -926,7 +926,7 @@ #define warningcall_immediate Rf_warningcall_immediate #endif -#if defined(CALLED_FROM_DEFN_H) && !defined(__MAIN__) && (defined (COMPILING_R) || ( __GNUC__ && !defined(__INTEL_COMPILER) )) +#if defined(CALLED_FROM_DEFN_H) && !defined(__MAIN__) && (defined (COMPILING_R) || ( __GNUC__ && !defined(__INTEL_COMPILER) && (__APPLE_CC__ < 5400) )) #include "Rinlinedfuns.h" #else /* need remapped names here for use with R_NO_REMAP */ I didn't test this in 2.5 yet, but I think you get the idea. Cheers, Simon
Thank you Simon. I'll give your suggestions a go! Karl
On 07/05/2007, at 2:35 AM, Simon Urbanek wrote:
Karl, On May 6, 2007, at 3:31 AM, Karl Goiser wrote:
Hello, I am trying to get a 64 version of R running on my Mac Pro (like several others, it seems). I
You can try this: curl http://r.research.att.com/R-25-br-quad.tar.gz -O tar fvxz R-25-br-quad.tar.gz -C / It is a quad-arch framework (including 64-bit x86). To run the 64- bit version, use /Library/Frameworks/R.framework/Resources/bin/R64 If you want to use X11, you'll need 64-bit client in /usr/local/ X11R7 (I used Xorg).
t seems there are two options, 10.4 and 10.5: http://r.research.att.com/exp/ says to install Xcode [tick] and GNU Fortran [tick], get the R source (from CRAN, I assume, e.g. http:// cran.au.r-project.org/src/base/R-2/R-2.5.0.tar.gz) [tick], and configure with a suggested command line: ./configure CC='gcc -arch x86_64' CXX='g++ -arch x86_64' F77='gfortran -arch x86_64' FC='gfortran -arch x86_64' --with-blas='- framework vecLib' --with-lapack --without-x --with-system-zlib -- build=x86_64-apple-darwin8.8.1 --without-readline Tiger: When I run it (without r_arch=x86_64) I get an error: configure: error: --with-iconv=yes (default) and suitable iconv is not available What is this and how do I address it?
There are two possibilities:
1) use --without-iconv (untested)
2) get 64-bit iconv:
a) compile it from Apple's sources
or
b)
curl http://r.research.att.com/libiconv.2.dylib -o /tmp/libiconv.
2.dylib \
&& sudo cp /tmp/libiconv.2.dylib /usr/lib/libiconv.2.dylib
It is strange, because Xcode SDK contains 64-bit stub for iconv,
but the system library is 32-bit only.
Leopard: When I run the same configure as per the web site, I get a different error: ./configure: line 61328: test: =: unary operator expected If I then go on to 'make', I get the following: ld64: warning: option -headerpad_max_install_names is obsolete and being ignored ld64-72 failed: duplicate symbol _Rf_mkChar in CommandLineArgs.o and CConverters.o
I'm not sure I can comment on this using a public mailing list, so all I'll say is that the hot fix is to apply this patch to src/ include/Rinternals.h: Index: Rinternals.h =================================================================== --- Rinternals.h (revision 41454) +++ Rinternals.h (working copy) @@ -926,7 +926,7 @@ #define warningcall_immediate Rf_warningcall_immediate #endif -#if defined(CALLED_FROM_DEFN_H) && !defined(__MAIN__) && (defined (COMPILING_R) || ( __GNUC__ && !defined(__INTEL_COMPILER) )) +#if defined(CALLED_FROM_DEFN_H) && !defined(__MAIN__) && (defined (COMPILING_R) || ( __GNUC__ && !defined(__INTEL_COMPILER) && (__APPLE_CC__ < 5400) )) #include "Rinlinedfuns.h" #else /* need remapped names here for use with R_NO_REMAP */ I didn't test this in 2.5 yet, but I think you get the idea. Cheers, Simon