r - Installing Statnet -
installing statnet on mac 10.10.3 r 0.99.441.
ld: warning: directory not found option '-l/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2' ld: library not found -lgfortran clang: error: linker command failed exit code 1 (use -v see invocation) make: *** [latentnet.so] error 1 error: compilation failed package ‘latentnet’ * removing ‘/library/frameworks/r.framework/versions/3.2/resources/library/latentnet’ warning in install.packages : installation of package ‘latentnet’ had non-zero exit status error: dependency ‘latentnet’ not available package ‘statnet’ * removing ‘/library/frameworks/r.framework/versions/3.2/resources/library/statnet’ warning in install.packages : installation of package ‘statnet’ had non-zero exit status
i tried updating xcode/command line tools. tried not installing dependencies. have been able install other packages, such ergm , sna.
it looks install looking gcc folder , not finding it.
whereis gcc
reveals gcc in /usr/bin/gcc
it looks install looking in /usr/local/lib/gcc/
is there way fix this?
this compilation error if trying install packages source, or when package requires library compiled source. normally, if don’t use latest version of r, can install statnet
binary , r won’t have compile source package.
the version mentioning @ beginning of message (0.99.441) version of r-studio, , not r. version of r 3.2.x (hence address in library folder: /library/frameworks/r.framework/versions/3.2/resources…
). before trying fix compilation error may want try roll r version 3.1.2 or 3.1.3 on can download , install statnet
in binary format.
for compiler, guess if fix address of gcc symlink, still error gfortran or version of gcc. once solved issue installing r , right version of gcc through homebrew, right don’t have possibility try solution , tell how.
my experience (on yosemite) if use 3.1.2 or 3.1.3, if there need compilation, error gcc won’t occur.
Comments
Post a Comment