I'm trying to install the R package caret
R -e "install.packages('caret', repos='http://cran.rstudio.com/')"
on an Amazon Linux AMI but the dependancies RcppEigen,lme4, BradleyTerry2 fail.
Warning messages:
1: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘RcppEigen’ had non-zero exit status
2: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘lme4’ had non-zero exit status
3: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘BradleyTerry2’ had non-zero exit status
4: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘caret’ had non-zero exit status
When I try to install RcppEigen I get (among other verbose massages):
/usr/bin/ld: cannot find -lRlapack
/usr/bin/ld: cannot find -lRblas
collect2: ld returned 1 exit status
make: *** [RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/usr/lib64/R/library/RcppEigen’
My environment
Amazon Linux version 2015.03
Linux version 3.4.37-40.44.amzn1.x86_64 (mockbuild#gobi-build-31005) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) ) #1 SMP Thu Mar 21 01:17:08 UTC 2013
It seems if it has to do with Red Hat vs. Ubuntu, but I can't find any answers here or elsewhere.
You need to enable the Extra Packages for Enterprise Linux (EPEL) repository.
To do this:
Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1.
To temporarily enable the EPEL 6 repository, use the yum command line option --enablerepo=epel.
For more info see the official documentation
Related
Trying to install the mongodb extension on Amazon linux 2 (which is based on Red Hat Linux Enterprise) but I'm missing the ld extension.
I have the binutils installed, but no ld bin :(
binutils-2.29.1-30.amzn2.x86_64.rpm | 5.8 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installation : binutils-2.29.1-30.amzn2.x86_64 1/1
/var/lib/alternatives/ld est vide !
/var/lib/alternatives/ld est vide !
Vérification : binutils-2.29.1-30.amzn2.x86_64 1/1
Installé :
binutils.x86_64 0:2.29.1-30.amzn2
Terminé !
which ld /usr/bin/which: no ld in
(/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin)
Any idea how to solve this ?
all good, I have to remove an old 'ld' file in '/var/lib/alternatives/' and then reinstall binutils
I'm building a Linux kernel on Fedora 28, but always run into the same error such as:
CC init/main.o
init/main.o: warning: objtool: elf_begin: invalid command
make[1]: *** [scripts/Makefile.build:277: init/main.o] Error 1
make[1]: *** Deleting file 'init/main.o'
make: *** [Makefile:1067: init] Error 2
make: *** Waiting for unfinished jobs....
I tried "linux-5.0.16.tar.gz" and "linux-5.0.21.tar.gz" downloaded from kernel.org
, and also tried to follow the instruction on Fedora wiki
But there is no way to avoid this 'invalid command' error. "elfutils-libelf-devel" and "elfutils-libelf" are installed. In the fedora way, 'fedpkg cone -a kernel' was successful, so all dependences are installed. Does anyone know what is missing?
Further progress:
The same procedure works on a different machine installed with Fedora 30.
However, after upgrading the original machine to Fedora 30, the error persists.
The machine with the 'invalid command' problem had an old version of libelf.so installed under /user/local. After removing the old libelf, objtool is linked to the current libelf library, and is able to run during compilation of the linux kernel.
A comment is found in the linux source code /tools/perf/util/symbols.h:
/*
* libelf 0.8.x and earlier do not support ELF_C_READ_MMAP;
* for newer versions we can use mmap to reduce memory usage:
*/
This comment led me to look for an out-dated version of libelf.
I am trying to install Lemur-4.12 on Linux, but when running make I get:
../../MakeMod:48: recipe for target 'ResultFile.o' failed
make[1]: *** [ResultFile.o] Error 1
make[1]: Leaving directory '/data1/myuser/lemur-4.12/retrieval/obj'
Makefile:28: recipe for target 'retrieval' failed
Is this a common issue? What could it be caused by, and how can I fix it?
The lemur-4.12 code is very old. The files have time stamps 2005 and 2008.
The reliable g++ version 3.4.6 ( compat-gcc-34-c++) from Fedora / RHEL 6 / CentOS 6 can do the job. My example : OS = PCLinuxOS 2016 , compiler = gcc34-c++-3.4.6-20.SL7.x86_64
cd lemur-4.12/
export CXX=g++34 && ./configure
make
Install result : bin/{ 29 executable´s } , lib/liblemur.a , include//[headers].hpp
Note : The Fedora g++34/gcc34 packages have been rebuilt, and are available for CentOS 7, Debian, Ubuntu.
during installation of NS2 v2.35 (Cygwin v1.7.32) in Windows 8 i keep getting this error message:
Package gcc4 is not present on your system.
Please install it using Cygwin's setup.exe
before trying to install the ns-2 distribution.
I tried downloading the gcc4 package from the setup but it does not show that it has a gcc4 package. So, i downloaded it from internet but the file was empty!!! If i ignore the warning for gcc4 and continue with the installation then i got the following error.
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld: final l ink failed: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:569: recipe for target `tclsh.exe' failed
make: *** [tclsh.exe] Error 1
tcl8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
Somebody please help me!!!
Latest gcc ,i.e., 4.8 not compatible, Go for older versions of gcc like 4.7
I have 64 bit Ubuntu 14.04. I tried to install the 64 bit GHC 7.8.2 binaries downloaded from haskell.org (the debian build). I get the following error message on make install:
Warning: cannot determine version of
/home/kutta/home/software/ghc-7.8.2inst/lib/ghc-7.8.2/bin/ghc :
""
Warning: cannot determine version of
/home/kutta/home/software/ghc-7.8.2inst/lib/ghc-7.8.2/bin/ghc-pkg :
""
ghc-cabal: ghcInvocation: the programVersion must not be Nothing
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2
Note that I set my install directory to a custom one, but I get the same error when I leave it on default. Any remedies?