[Rcpp-devel] ld: library not found for -lgfortran with RcppArmadillo
Dirk Eddelbuettel
edd at debian.org
Sat Feb 22 02:48:38 CET 2014
On 22 February 2014 at 01:12, Abdulaziz A Alenazi wrote:
| Dear all,
|
| I have tried to run RcppArmadillo in my mac and on my PC.
| But whenever I used RcppArmadillo an error appear as below
|
| ld: warning: directory not found for option '-L/usr/local/lib/gcc/
| i686-apple-darwin8/4.2.3/x86_64'
| ld: warning: directory not found for option '-L/usr/local/lib/x86_64'
| ld: warning: directory not found for option '-L/usr/local/lib/gcc/
| i686-apple-darwin8/4.2.3'
| ld: library not found for -lgfortran
| clang: error: linker command failed with exit code 1 (use -v to see invocation)
| make: *** [filebf441105e2b.so] Error 1
|
|
| How can I solve this problem, please?
By installing the required Fortran compiler you need so that you can link
with the gfortran library. See the standard R documentation about how to get
the GNU Fortran compiler for OS X; as I recall it is on Simon's R page at AT&T.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list