Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have R installed but when I try to launch it I get:

ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/MY_MSG_RUN$ R
/mnt/galaxyData/custom/bin/lib64/R/bin/exec/R: error while loading shared libraries: cannot open shared object file: No such file or directory

Here is the ldd command to see what it's thinking?

ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/MY_MSG_RUN$ ldd /mnt/galaxyData/custom/bin/lib64/R/bin/exec/R =>  (0x00007fff201ff000) => /mnt/galaxyData/custom/bin/lib64/R/lib/ (0x00007f9a04184000) => /lib/x86_64-linux-gnu/ (0x00007f9a03e67000) => /lib/x86_64-linux-gnu/ (0x00007f9a03c24000) => not found => /lib/x86_64-linux-gnu/ (0x00007f9a03a20000) => /lib/x86_64-linux-gnu/ (0x00007f9a03662000)
    /lib64/ (0x00007f9a043b0000) => /lib/x86_64-linux-gnu/ (0x00007f9a0343b000)

Do you guys know why it's not finding and where I can get that file and put it so that R finds it?

I see that the liblzma-dev package appears to be installed but not lzma or liblzma2. The other wrench in this question is I'm on a shared host so I can't do an apt-get to install those packages. (At least I don't have root)

ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/MY_MSG_RUN$ dpkg -s liblzma-dev
Package: liblzma-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 476
Maintainer: Ubuntu Developers <>
Architecture: amd64
Source: xz-utils
Version: 5.1.1alpha+20110809-3
Depends: liblzma5 (= 5.1.1alpha+20110809-3)
Suggests: liblzma-doc
Description: XZ-format compression library - development files
 XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm
 compression format, which provides memory-hungry but powerful
 compression (often better than bzip2) and fast, easy decompression.
 The native format of liblzma is XZ; it also supports raw (headerless)
 streams and the older LZMA format used by lzma. (For 7-Zip's related
 format, use the p7zip package instead.) This package provides the
 development library needed to build programs using liblzma.
Original-Maintainer: Jonathan Nieder <>
share|improve this question
Ok, I'm acknowledging my ignorance here. WTF is "R"?!? – Massimo May 23 '15 at 5:04
Massimo, I think is related to: – ignivs Aug 26 '15 at 19:33

Seeing as your machine seems to run ubuntu, I suggest install R as an ubuntu package. That way, the package manager will ensure that installed libraries and binaries match one another.

Edit: I now see that you don't have root access. But perhaps you can run debootstrap using fakeroot to get your own package manager, and see what that installs. Or you'll have to unpack the *.deb files yourself, and try to fix up any problems introduced by hardcoded paths. Setting LD_LIBRARY_PATH might be a big first step in that direction. Notice that the ubuntu package will use, so at least that appears to be a dependency you won't need to install separately.

If you cannot use precompiled binaries installed by a package manager, compile R from sources, to get it compiled against the libraries available on your system.

If you cannot do that either, obtain the libraries from the same source from where you obtained your R binaries.

share|improve this answer

I ended up doing this, I'm not sure if it will cause problems down the line but at least R starts.

I made a symbolic link to /usr/lib/x86_64-linux-gnu/ calling it

ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/MY_MSG_RUN$ cp /usr/lib/x86_64-linux-gnu/ /mnt/galaxyData/custom/bin/lib64/R/lib
ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/MY_MSG_RUN$ cd /mnt/galaxyData/custom/bin/lib64/R/lib
ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/bin/lib64/R/lib$ ls
ubuntu@ip-xx-250-202:/mnt/galaxyData/custom/bin/lib64/R/lib$ ln -s
share|improve this answer
Changing the SONAME may well lead to runtime errors, including unexpected crashes. Don't! – MvG Jul 26 '12 at 21:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.