Reputation: 277
I installed R on centos 6.5
gcc version 4.4.7
g++ version 4.4.7
when I run R and try to install packages
install.packages("fArma")
It give the following error
gcc: /builddir/build/BUILD/R-3.3.0/zlib-1.2.8/target/usr/lib64/libz.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/bzip2-1.0.6/target/usr/lib64/libbz2.a: No such file or directory gcc: /builddir/build/BUILD/R-3.3.0/xz-5.2.2/target/usr/lib64/liblzma.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/pcre-8.38/target/usr/lib64/libpcre.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/curl-7.48.0/target/usr/lib64/libcurl.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/zlib-1.2.8/target/usr/lib64/libz.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/bzip2-1.0.6/target/usr/lib64/libbz2.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/xz-5.2.2/target/usr/lib64/liblzma.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/pcre-8.38/target/usr/lib64/libpcre.a: No such file or directory
gcc: /builddir/build/BUILD/R-3.3.0/curl-7.48.0/target/usr/lib64/libcurl.a: No such file or directorymake: *** [gss.so] Error 1
ERROR: compilation failed for package âgssâ
* removing â/usr/lib64/R/library/gssâ
ERROR: dependency âgssâ is not available for package âfBasicsâ
* removing â/usr/lib64/R/library/fBasicsâ
ERROR: dependency âfBasicsâ is not available for package âfArmaâ
* removing â/usr/lib64/R/library/fArmaâ
I checked if these lib's
exist in /usr/lib64/
and i found them but with the extension so
And it's not issue of missing libraries, I know because i checked the lib in /usr/lib64 with another working machine and it's the same.
Any idea what the problem could be?
Upvotes: 2
Views: 1330
Reputation: 2749
The reason that your package is failing to build is because GCC is not able to compile the software and might need additional packages to do so.
I would suggest that you install the entire c development suite for yum.
You can do this with
You will first want to run:
sudo yum groupinstall 'Development Tools'
Upvotes: 1
Reputation: 10372
Do note the version numbers in the pathnames: zlib-1.2.8, bzip2-1.0.6, xz-5.2.2 etc. CentOS has zlib-1.2.3-29, bzip2-1.0.5-7 and xz-4.999.9-0.5.beta.20091007git.
Your build script apparently tries to use libraries that should be present in your source package, but for some reason they aren't there. The build script does not seem to use system (CentOS) provided libraries.
This LINK should solve your problem hopefully.
Upvotes: 0