Error installing package 'nlme':
installing source package 'nlme' ...
** package 'nlme' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(paste(cmd, "shlib-clean")) : 'make' not found
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'nlme'
removing 'C:/Users/pp20325/Desktop/POC/KITE/KITE-R~1/BIOINF~1/renv/staging/1/nlme'
Error: install of package 'nlme' failed
Related
I try to install the latest version of rlang because i need it for scales and ggplot2. So I run:
install.packages("https://cran.r-project.org/src/contrib/rlang_1.0.2.tar.gz",repos=NULL,type="source")
But I have the following error message :
installing source package 'rlang' ...
** package 'rlang' correctement décompressé et sommes MD5 vérifiées
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rlang'
removing 'C:/Users/coich/anaconda3/envs/rstudio/lib/R/library/rlang'
Warning in install.packages :
installation of package ‘C:/Users/coich/AppData/Local/Temp/Rtmpaw0zcr/downloaded_packages/rlang_1.0.2.tar.gz’ had non-zero exit status
Then I saw that I have maybe to install the latest Rtools but I use Rstudio on Anaconda, so how I can do that.
Thank you for you aswer :)
I have used the chunk of code
packageurl <- "https://cran.r-project.org/src/contrib/Archive/DPpackage/DPpackage_1.1-7.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
And also istalled rtools40.
But still receiving error message downloading the package--
installing source package 'DPpackage' ...
** package 'DPpackage' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'DPpackage'
removing 'C:/Users/user/Documents/R/win-library/4.1/DPpackage'
Warning in install.packages :
installation of package ‘C:/Users/user/AppData/Local/Temp/Rtmp0CbVQF/downloaded_packages/DPpackage_1.1-7.tar.gz’ had non-zero exit status
I get the following trying to install gpclib package in R 3.6.2:
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘gpclib’
These will not be installed
I have already installed Rtools.
I tried with the code:
install.packages("gpclib")
Trying with
install.packages("gpclib", type="source")
the message is:
installing *source package 'gpclib' ...
** package 'gpclib' successfully unpacked and MD5 sums checked **
using staged installation ** libs *** arch - i386 Warning in system(cmd) :
'make' not found ERROR: compilation failed for package 'gpclib' *
removing 'C:/Users/Juan/Documents/R/win-library/3.6/gpclib'
Warning message: In install.packages("gpclib", type = "source") :
installation of package ‘gpclib’ had non-zero exit status*
I am trying to install an archived R package, SciencesPo, but it's not installing, even after installing the dependencies. The following is the code and the messages that follow
install.packages("C:\Users\Overman\Downloads\SciencesPo_1.4.1.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/Overman/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing source package 'SciencesPo' ...
** package 'SciencesPo' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'SciencesPo'
* removing 'C:/Users/Overman/Documents/R/win-library/3.5/SciencesPo'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘C:/Users/Overman/Downloads/SciencesPo_1.4.1.tar.gz’ had non-zero exit status
Installing Rtools solved the problem.
I am trying to install the package caret in R for sometime now, and I am getting this error message:
*installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -c altmov.f -o altmov.o
make: gfortran: Command not found
make: *** [altmov.o] Error 127
/usr/lib64/R/etc/Makeconf:155: recipe for target 'altmov.o' failed
ERROR: compilation failed for package ‘minqa’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/minqa’
Warning in install.packages :
installation of package ‘minqa’ had non-zero exit status
* installing *source* package ‘SparseM’ ...
** package ‘SparseM’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -c bckslv.f -o bckslv.o
make: gfortran: Command not found
/usr/lib64/R/etc/Makeconf:155: recipe for target 'bckslv.o' failed
make: *** [bckslv.o] Error 127
ERROR: compilation failed for package ‘SparseM’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/SparseM’
Warning in install.packages :
installation of package ‘SparseM’ had non-zero exit status
ERROR: dependency ‘minqa’ is not available for package ‘lme4’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/lme4’
Warning in install.packages :
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘SparseM’ is not available for package ‘quantreg’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/quantreg’
Warning in install.packages :
installation of package ‘quantreg’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/pbkrtest’
Warning in install.packages :
installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘quantreg’ are not available for package ‘car’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘caret’
* removing ‘/home/mohammad/R/x86_64-pc-linux-gnu-library/3.3/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpVBZAgE/downloaded_packages’
Now according to some of the post, I tried to install minqa,SparseM, lme4,car ... separately. Its not installing properly. The main problem that I suspect is the absence of gfortran library in my archlinux. I tried to find the package gfortran in arch repository using pacman. It is not present there, so in the end I am just stuck. Does anybody has a solution or faced this problem before. Thanks.
I had a similar problem. For anyone else with this problem this is the package you need to install. It is gcc-fortran 6.2.1-1
To install it:
sudo pacman -S gcc-fortran
https://www.archlinux.org/packages/core/x86_64/gcc-fortran/