install.packages('forecast')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/forecast_5.4.tar.gz'
Content type 'application/x-gzip' length 150965 bytes (147 Kb)
opened URL
downloaded 147 Kb
installing source package ‘forecast’ ...
package ‘forecast’ successfully unpacked and MD5 sums checked
libs
g++ -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/RcppArmadillo/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c calcBATS.cpp -o calcBATS.o
In file included from calcBATS.cpp:1:0:
calcBATS.h:36:27: fatal error: RcppArmadillo.h: No such file or directory
#include
^
compilation terminated.
make: * [calcBATS.o] Error 1
ERROR: compilation failed for package ‘forecast’
* removing ‘/usr/lib64/R/library/forecast’
The downloaded source packages are in
‘/tmp/RtmpJRX18M/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("forecast") :
installation of package ‘forecast’ had non-zero exit status
Looks like there is a missing package dependence, RcppArmadillo.
install.packages("RcppArmadillo")
Then:
install.packages('forecast')
add within your lifecycle configuration
conda install -y -c r r-forecast
Related
I have just installed R using brew and try to install mvtnorm package, but I get the following error:
Any suggestions how to solve this?
> install.packages("mvtnorm")
Installing package into ‘/usr/local/lib/R/4.1/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/mvtnorm_1.1-2.tar.gz'
Content type 'application/x-gzip' length 166202 bytes (162 KB)
==================================================
downloaded 162 KB
* installing *source* package ‘mvtnorm’ ...
** package ‘mvtnorm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -I"/usr/local/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/xz/include -I/usr/local/include -fPIC -Wno-implicit-function-declaration -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
clang -I"/usr/local/Cellar/r/4.1.0/lib/R/include" -DNDEBUG -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/xz/include -I/usr/local/include -fPIC -Wno-implicit-function-declaration -c miwa.c -o miwa.o
gfortran -fno-optimize-sibling-calls -fPIC -g -O2 -c mvt.f -o mvt.o
gfortran-4.2: error trying to exec '/usr/local/bin/i686-apple-darwin8-gfortran-4.2': execvp: Bad CPU type in executable
make: *** [mvt.o] Error 255
ERROR: compilation failed for package ‘mvtnorm’
* removing ‘/usr/local/lib/R/4.1/site-library/mvtnorm’
Warning in install.packages :
installation of package ‘mvtnorm’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/4l/y1pqv07934x_2qv3bzj_93s40000gn/T/RtmpHUys7l/downloaded_packages’
>
Finally, I installed gfortran 10.2 (thanks to https://github.com/fxcoudert/gfortran-for-macOS/issues/17) now I am able to install mvtnorm and some other packages having the same problem.
I am having an issue when installing the "mclust" package on rstudio.
Here is the warning message:
>install.packages("mclust")
trying URL 'https://cran.rstudio.com/src/contrib/mclust_5.4.tar.gz'
Content type 'application/x-gzip' length 2535477 bytes (2.4 MB)
==================================================
downloaded 2.4 MB
* installing *source* package ‘mclust’ ...
** package ‘mclust’ successfully unpacked and MD5 sums checked
** libs
/home/usr/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -
I/home/usr/anaconda3/lib/R/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2
-I/home/usr/anaconda3/include -fpic -march=nocona -mtune=haswell -
ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -
I/home/usr/anaconda3/include -c init.c -o init.o
make: /home/usr/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc: Command
not found
/home/usr/anaconda3/lib/R/etc/Makeconf:160: recipe for target 'init.o'
failed
make: *** [init.o] Error 127
ERROR: compilation failed for package ‘mclust’
* removing ‘/home/usr/anaconda3/lib/R/library/mclust’
Warning in install.packages :
installation of package ‘mclust’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpGCCIZS/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
In addition, I also tried to access the directory /home.usr/anaconda3/x86_64-conda_cos6-linux-gnu-cc ,which apparently doesn't exist.
I have a 5 node BigInsights hadoop cluster in Bluemix. I am getting error, when I am trying to install H2O ai R in BigInsights cluster.
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turing/3/R")))
ERROR: dependencies ‘statmod’, ‘RCurl’, ‘jsonlite’ are not available for package ‘h2o’
* removing ‘/home/opus/R/x86_64-redhat-linux-gnu-library/3.3/h2o’
The downloaded source packages are in
‘/tmp/RtmpJmcuyB/downloaded_packages’
Warning message:
In install.packages("h2o", type = "source", repos = (c("http://h2o-release.s3.amazonaws.com/h2o/rel-turing/3/R"))) :
installation of package ‘h2o’ had non-zero exit status
When I try to install 'RCurl' package of R in BigInsights cluster, getting the error message as:
trying URL 'https://cran.fhcrc.org/src/contrib/RCurl_1.95-4.8.tar.gz'
Content type 'application/x-gzip' length 916934 bytes (895 KB)
==================================================
downloaded 895 KB
* installing *source* package ‘bitops’ ...
** package ‘bitops’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c bit-ops.c -o bit-ops.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic -fPIC -c cksum.c -o cksum.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -o bitops.so bit-ops.o cksum.o -L/usr/lib64/R/lib -lR
installing to /home/opus/R/x86_64-redhat-linux-gnu-library/3.3/bitops/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
converting help for package ‘bitops’
finding HTML links ... done
bitAnd html
bitFlip html
bitShiftL html
cksum html
** building package indices
** testing if installed package can be loaded
* DONE (bitops)
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/opus/R/x86_64-redhat-linux-gnu-library/3.3/RCurl’
The downloaded source packages are in
‘/tmp/RtmpJmcuyB/downloaded_packages’
Warning message:
In install.packages("RCurl") :
installation of package ‘RCurl’ had non-zero exit status
Please help me to resolve the issue and help would be much appreciated.
It looks like you are trying to install on Linux.
You need to install the development files for libcurl first.
eg
apt-get install libcurl4-openssl-dev
or
yum install libcurl-devel
I'm new to R and cassandra, I'm trying to install the rcassandra package. On the rforge.net site, it says to do:
> install.packages('RCassandra',,'http://www.rforge.net/')
Warning: unable to access index for repository http://www.rforge.net/src/contrib
Warning message:
package ‘RCassandra’ is not available (for R version 3.1.0)
Trying a different repository
> install.packages('RCassandra',repo='http://cran.cnr.Berkeley.edu/')
Installing package into ‘/home/as/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://cran.cnr.Berkeley.edu/src/contrib/
Warning message:
package ‘RCassandra’ is not available (for R version 3.1.0)
I tried installing from command line, but that does'nt seem to work either:
> sudo R CMD INSTALL RCassandra_0.1\-3.tar.gz
* installing to library ‘/home/as/R/x86_64-redhat-linux-gnu-library/3.1’
* installing *source* package ‘RCassandra’ ...
** package ‘RCassandra’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c cass.c -o cass.o
cass.c:1: sorry, unimplemented: 64-bit mode not compiled in
make: *** [cass.o] Error 1
ERROR: compilation failed for package ‘RCassandra’
* removing ‘/home/as/R/x86_64-redhat-linux-gnu-library/3.1/RCassandra
So how do I install the package? I can see the package on the web sites
I am trying to build the R package png, the repo says that libpng needs to be available.
I run a Linux Fedora 20 distro
Looks like I have it...
[root#localhost bin]# yum install libpng
Loaded plugins: langpacks, refresh-packagekit
Package 2:libpng-1.6.3-3.fc20.x86_64 already installed and latest version
Nothing to do
But when I try to install it:
> install.packages("png")
Installing package into ‘/home/statquant/R/x86_64-redhat-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/png_0.1-7.tar.gz'
Content type 'application/x-gzip' length 24990 bytes (24 Kb)
opened URL
==================================================
downloaded 24 Kb
* installing *source* package ‘png’ ...
** package ‘png’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include `libpng-config --cflags` -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c read.c -o read.o
/bin/sh: libpng-config: command not found
read.c:3:17: fatal error: png.h: No such file or directory
#include <png.h>
^
compilation terminated.
make: *** [read.o] Error 1
ERROR: compilation failed for package ‘png’
* removing ‘/home/statquant/R/x86_64-redhat-linux-gnu-library/3.0/png’
The downloaded source packages are in
‘/tmp/RtmpG5MjG9/downloaded_packages’
Warning message:
In install.packages("png") :
installation of package ‘png’ had non-zero exit status
For some R packages you need the corresponding development library to successfully install the R package. In your case this should do what you need
# Do the following in your terminal (not in an R session)
yum install libpng-devel
afterwards you should be able to install the R package
# Do the following in the R console (during an R session)
install.packages("png")
I had the same problem on Ubuntu (16.04) and solved it using
sudo apt-get install libpng-dev