RTools Xcode gfortran dyld_stub_binding_helper
Hi,
I am trying to compile an R package on OS X 10.9, and need some help.
(R is a statistical language, which allows users to build custom statistical packages.
Sometimes the package may make external calls to C, C++, or Fortran code,
in which case command line tools are called by R/RTools during the build process)
The particular R package, which I'm trying to build, contains Fortran90 code.
An R package is typically compiled using the following commands from a shell.
R CMD build <package name>
R CMD install <package name>
This tells R to build and install the package. Now, my problem:
I think the linker is unable to see some library, which normally should be seen.
Here is the error message I get:
ld: symbol dyld_stub_binding_helper not found, normally in
crt1.o/dylib1.o/bundle1.o for architecture x86_64
fatal error: /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
internal link edit command failed
My machine runs: Mac, OS X 10.9.5
R version 3.1.1. I have RStudio installed as well.
I installed Xcode Version 6.1.1 (6A2008a), and the command line tools.
I also installed gfortran-4.2.3, and tcltk-8.5.5-x11.
The package compiled successfully on Windows, so it must be some setting issue,
presumably related with OS X 10.9, Xcode, Rtools, gfortran.
I read from some online document, that the problem may be because OS X 10.9 removed the /Developer directory,
which contains the libraries required by the above compile, I am not sure.
Any help or advice would be greatly appreciated. Thank you.
MacBook Pro, OS X Mavericks (10.9.5), null