On Dec 8, 2011, at 11:37 AM, Jean-Baptiste Marquette wrote: > Dear R gurus, > > I attempt to install the latest version of R from source on my MacBook Pro, > using latest versions of Xcode and gfortran for Lion and configure options: > > ./configure --with-libintl-prefix=/sw --enable-R-shlib (this last option > necessary to further install the Rpy Python package) > > I got the following unreduced compilation error: > > gcc -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined > dynamic_lookup -single_module -multiply_defined suppress -L/sw/lib > -L/usr/local/lib -o tools.so text.o init.o Rmd5.o md5.o signals.o > -L../../../../lib -lR -dylib_file > libRblas.dylib:../../../../lib/libRblas.dylib -lintl -Wl,-framework > -Wl,CoreFoundation > make[6]: `Makedeps' is up to date. > mkdir ../../../../library/tools/libs > Error in dyn.load(file, DLLpath = DLLpath, ...) : > unable to load shared object > '/Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so': > dlopen(/Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so, 6): > Symbol not found: _libintl_dgettext > Referenced from: > /Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so > Expected in: /Users/marquett/Downloads/R-2.14.0/lib/libR.dylib > in /Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so > Error: impossible de charger le code R depuis le package ‘tools’ > Execution halted > make[3]: *** [all] Error 1 > make[2]: *** [R] Error 1 > make[1]: *** [R] Error 1 > make: *** [R] Error 1 > > However the binary file matches the unresolved symbol: > > grep _libintl_dgettext > /Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so > Binary file /Users/marquett/Downloads/R-2.14.0/library/tools/libs/tools.so > matches > > Any help welcome. > > Cheers > Jean-Baptiste
First, this query is best posted to R-SIG-MAC, not R-Help. More info here: https://stat.ethz.ch/mailman/listinfo/r-sig-mac Second, the pre-built R binary for OSX that Simon creates already uses --enable-R-shilb, so that there is no reason to build from source if that is your only issue. Third, on OSX, there is no /sw by default and it is not clear why you are using that configure option, which is the likely source of the error you are getting. If you really want to build from source, there is information in the R for OSX FAQ: http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html The R Installation and Admin Manual: http://cran.r-project.org/doc/manuals/R-admin.html#Building-from-source-on-_0028Mac_0029-OS-X and Simon's page: http://R.research.att.com/building.html HTH, Marc Schwartz ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.