Trying to install the Rcmdr
(R version 3.2.2) package in my Mac (Yosemite 10.10.4), I ran into a few problems:
- After I installed Rcmdr with all its dependencies I get the following when I try to load the package:
Loading required package: RcmdrMisc
Loading required package: car
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘quantreg’ Error: package ‘car’ could not be loaded
- So I tried to install the
car
package along with its dependency, thequantreg
package, and this is what happens:
** package ‘quantreg’ successfully unpacked and MD5 sums checked ** libs gfortran-4.8 -fPIC -g -O2 -c akj.f -o akj.o
make: gfortran-4.8: No such file or directory
make: *** [akj.o] Error 1
ERROR: compilation failed for package ‘quantreg’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/quantreg’
Warning in install.packages :
installation of package ‘quantreg’ had non-zero exit status
- Then I realized the problem might be the fortran compiler. I don't have the 4.8 version, but I did a symlink for gfortran-4.8 to my gfortran-5.0 and yet I couldn't solve the problem:
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
ld: library not found for -lquadmath
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [quantreg.so] Error 1
ERROR: compilation failed for package ‘quantreg’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/quantreg’
I would be very grateful if someone could help me get to the bottom of this problem.