Error loading RcppArmadillo - rcpp

I successfully installed RcppArmadillo by typing:
export PATH=/opt/local/bin:$PATH
export LD_LIBRARY_PATH=/opt/src/GCC/install/gcc-4.8.2/lib64:/usr/lib64:/usr/lib
wget https://cran.ma.imperial.ac.uk/src/contrib/Rcpp_0.12.18.tar.gz
wget https://cran.ma.imperial.ac.uk/src/contrib/RcppArmadillo_0.8.600.0.0.tar.gz
R CMD INSTALL Rcpp_0.12.18.tar.gz
R CMD INSTALL RcppArmadillo_0.8.600.0.0.tar.gz
However, when I try to load RcppArmadillo, I have the following error:
Error: package or namespace load failed for ‘RcppArmadillo’ in
dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/ecg/ad603/R/x86_64-redhat-linux-gnu-
library/3.5/RcppArmadillo/libs/RcppArmadillo.so':
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by
/home/ecg/ad603/R/x86_64-redhat-linux-gnu-library/3.5/RcppArmadillo/libs/RcppArmadillo.so)
Any idea why this is happening?

Related

Gitlab version update

I am trying to upgrade my GitLab docker container from version 13.8.0 to 13.8.8 with ce edition.
I tried by download the Debian package for the ubuntu focal version from the below link:
https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/focal/gitlab-ce_13.8.8-ce.0_amd64.deb
but while installing the package I am getting the following errors...
root#2d66229ecf41:/tmp#dpkg -i gitlab-ce_13.8.8-ce.0_amd64.deb
(Reading database ... 86705 files and directories currently installed.)
Preparing to unpack gitlab-ce_13.8.8-ce.0_amd64.deb ...
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
dpkg: error processing archive gitlab-ce_13.8.8-ce.0_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
gitlab-ce_13.8.8-ce.0_amd64.deb
what I should I do?
My disc space is also free...
what is the problem?
can anyone help me to fix this?
Based on the error message, ruby needs xcrypt v2.0, glibc_2.xx and they are not installed or unable to be found.
This is the first step I would try, after performing a backup:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install -f
https://ubuntuforums.org/showthread.php?t=2438576

Installing gtk2hs on ubuntu

I am trying to install gtk for Haskell on Ubuntu. I have already installed the Haskell platform.
When I run cabal install gtk2hs-buildtools, I get the following error:
Resolving dependencies...
Configuring Cabal-2.2.0.1...
Failed to install Cabal-2.2.0.1
Build log ( /home/vishad/.cabal/logs/Cabal-2.2.0.1.log ):
cabal: Error: some packages failed to install:
Cabal-2.2.0.1 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-11425/Cabal-2.2.0.1/Distribution/Utils/IOData.hs:36:0:
error: missing binary operator before token "("
#if MIN_VERSION_bytestring(0,10,0)
^
)
gtk2hs-buildtools-0.13.4.0 depends on Cabal-2.2.0.1 which failed to install.
I have already installed the dependencies using the following command :
sudo apt-get install libgtk2.0-dev libpango1.0-dev libglib2.0-dev libcairo2-dev

Error while installing bedtools via cygwin commands: fatal error: zlib.h: No such file or directory

I'm trying to install the bedtools v2.27.0 via Cygwin. Here are the commands I've tried:
$ wget https://github.com/arq5x/bedtools2/releases/download/v2.27.0/bedtools-2.27.0.tar.gz
$ tar -zxvf bedtools-2.27.0.tar.gz
$ cd bedtools2
$ make
when running the last command, I get the following error:
*fatal error: zlib.h: No such file or directory
*#include <zlib.h>*
^
compilation terminated.
make[1]: *** [Makefile:37: ../../../obj//FileRecordMgr.o] Error 1
make: *** [Makefile:187: src/utils/FileRecordTools] Error 2*
I tried downloading the libz package using the following command:
$ apt-cyg install libz-dev
but it didn't work. I got the following error:
Unable to locate package libz-dev
Note that I'm using Cygwin terminal on windows (64-bit machine). Your help is highly appreciated.
To install packages use cygwin setup, or at least find the right package name before using apt-cyg
To find the package containing zlib.h header:
$ cygcheck -p include/zlib.h
Found 10 matches for include/zlib.h
...
zlib-devel-1.2.11-1 - zlib-devel: gzip de/compression library (development)
..
So you need to install zlib-devel

Can't install node with nodebrew

I've installed nodebrew with my homebrew and attempted to install the stable version of node. I'm using Mac OSX El Capitan version 10.11.1.
$ nodebrew install-binary stable
However, I'm getting the following error:
fetch: http://nodejs.org/dist/v5.1.1/node-v5.1.1-darwin-x64.tar.gz
Warning: Failed to create the file
Warning: /usr/local/Cellar/nodebrew/0.9.2/bin/nodebrew/src/v5.1.1/node- v5.1.1-d
Warning: arwin-x64.tar.gz: Not a directory
curl: (23) Failed writing body (0 != 987)
download faild: http://nodejs.org/dist/v5.1.1/node-v5.1.1-darwin-x64.tar.gz
I've tried searching for info about the same problem but no luck.
How can I fix it?
It is the permissions problem. so failed to create directory.
mkdir -p ~/.nodebrew/src

R library package devtools fails on RCurl error

Currently using Ububtu 14.04 with R 3.0 and RStudio. The installation of devtools failed on the installation of the curl package. I had successfully installed Rcpp by a restart previously - So I tried a clean start of R and Rstudio and tried installing package curl first - with the error messages below:
install.packages("curl")
Installing package into ‘/home/freya/R/i686-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/curl_0.9.2.tar.gz'
Content type 'application/x-gzip' length 244688 bytes (238 Kb)
opened URL
==================================================
downloaded 238 Kb
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
File curl.h not found. Make sure the curl development library is installed, e.g. libcurl4-openssl-dev (deb) or libcurl-devel (rpm).
ERROR: configuration failed for package ‘curl’
* removing ‘/home/freya/R/i686-pc-linux-gnu-library/3.0/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
Any suggestions appreciated, Thanks
KNB

Resources