Cannot Install R Tseries, Quadprog ,Xts Packages in Linux

cannot install R tseries, quadprog ,xts packages in Linux

The problem here is that the Fortran compiler (gfortran) and the GCC compiler driver (gcc) are out of sync: gfortran is version 4.4.7, gcc is version 4.7.2. This means that they use different directories to store there files, and gcc is unable to locate the libgfortran.so symbolic link installed by the gcc-gfortran package.

The solution is to bring these two compilers to the same version. This can be achieved by adjusting the PATH variable (based on other discussions, gcc is not referring to /usr/bin/gcc here), deinstalling the software collection that provides this gcc command (using yum remove devtoolset-1.1-gcc), or installing the Fortran component for the same software collection, using yum install devtoolset-1.1-gcc-gfortran.

My best guess is that your devtoolset-1.1-gcc package comes from this repository:

  • https://people.centos.org/tru/devtools-1.1/6/x86_64/RPMS/

So you could use the gfortran package from there, too (and pick the c++ package as well, to avoid a similar problem).

error after installing the package (tseries)

install.packages("tseries", dependencies = TRUE)

If that does not work try this:

install.packages("tseries", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com"))

Can't access User Library in R - Non-Zero Exit Status warning

A non-zero exit status means in this case that the system failed to install the package. There seem to be a number of unresolved dependencies in the installation process. You could try to resolve this by attempting to install the package using the option dependencies=TRUE; like this:

install.packages("ggplot2", dependencies=TRUE)

R package data.table fails to install/compile on system with R 3.5.1

The in the error message mentioned line is:

#pragma omp atomic update

which is functionality that is apparently not available in GCC before version 4.7 and on RedHat 6.9 the highest I get from standard repos is 4.4.7 at the moment.

Means I need a newer compiler, which can handle this openmp functionality.

Install R on RedHat errors on dependencies that don't exist

I had the same issue. Not sure why these packages are missing from RHEL's repos, but they are in CentOS 6.5, so the follow solution works, if you want to keep things in the package paradigm:

wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm
sudo yum localinstall *.rpm

cheers


UPDATE: Leon's answer is better -- see below.



Related Topics



Leave a reply



Submit