Ubuntu 16 missing shared libraries

2,591 views
Skip to first unread message

Gy. Ákos Ákos

unread,
Dec 23, 2017, 6:18:51 AM12/23/17
to rMATS User Group
Dear All,

I was planning to use rMATS, under Ubuntu 16.04.

I have installed the prebuilt  versions, selected the proper built (UCS4 in case of Ubuntu 16.04).

Everything seemed to be fine when i ran the program, however when the software started to run the "Statistical part" , the following errors appeared and also the statistics were missing.

Done processing each gene from dictionary to compile AS events
Found 5194 exon skipping events
Found 200 exon MX events
Found 0 alt SS events
There are 0 alt 3 SS events and 0 alt 5 SS events.
Found 0 RI events
==========

Running the statistical part.
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JC_SE/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JC_SE/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JCEC_SE/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JCEC_SE/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JC_MXE/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JC_MXE/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JCEC_MXE/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JCEC_MXE/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JC_A3SS/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JC_A3SS/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JCEC_A3SS/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JCEC_A3SS/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JC_A5SS/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JC_A5SS/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JCEC_A5SS/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JCEC_A5SS/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JC_RI/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JC_RI/rMATS_result_FDR.txt: No such file or directory
/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_C/rMATSexe: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
 
File "/home/akos-linux/Programs/rMATS.4.0.1/rMATS-turbo-Linux-UCS4/rMATS_P/FDR.py", line 45, in <module>
    ifile
=open(sys.argv[1]);title=ifile.readline();
IOError: [Errno 2] No such file or directory: '/tmp/tmpze6QZe/JCEC_RI/rMATS_result_P-V.txt'
paste
: /tmp/tmpze6QZe/JCEC_RI/rMATS_result_FDR.txt: No such file or directory
The statistical part is done.
Done.




I guess rMATS is looking for some libraries that existed under ubuntu 14 , but became obsolete under version 16.04.
Is there any way to solve this problem under Ubuntu 16.04 to have statistics again?

Thank you for the help.

Regards.

Shen Shihao

unread,
Dec 27, 2017, 3:15:33 PM12/27/17
to rMATS User Group
Ubuntu 16.04 seems to have libgsl.so.19 in the libgsl2 package, instead of libgsl.so.0.

Have you tried to install it manually?

Shihao

Gy. Ákos Ákos

unread,
Dec 28, 2017, 8:51:03 AM12/28/17
to rMATS User Group
Hi,

Thank you for the response.

No , i Did not try to install it manually.
Unfortunately I am not that great in Linux. How do I install manually?

Shen Shihao

unread,
Dec 30, 2017, 1:51:41 PM12/30/17
to rMATS User Group
Try

sudo apt-get install libgsl-dev


On Saturday, December 23, 2017 at 5:18:51 AM UTC-6, Gy. Ákos Ákos wrote:

Craig Monger

unread,
Feb 20, 2018, 11:25:23 AM2/20/18
to rMATS User Group
I am also having this issue and this suggestion did not work for me. Did anybody find any way to fix this yet?

Regards,
Craig

Naira Naouar

unread,
Feb 21, 2018, 9:49:22 AM2/21/18
to rMATS User Group
Hi,

In fact, I don't know if it is a real fix but somehow I managed to have results correct results for the test data so I think it works...
I did install libgsl-dev and like you had the libgsl.so.19 and not the libgsl.so.0 needed for the software
...
So I created a libgsl.so.0 by copying the .19 into .0...
I am pretty sure at some point I might have some trouble but until now, everything was fine :D

So the sudo cp libgsl.so.19  libgsl.so.0 (in the appropriate /usr/local/lib or /usr/lib depending on your install) with admin privilegies (sudo makes it for you) worked for me....

However, I am aware that it might have some impact but until there is some fix in rMATS to take into account the ubuntu 16 new dependencies...


Naïra

9043...@qq.com

unread,
Mar 16, 2018, 12:34:30 AM3/16/18
to rMATS User Group
Hi,

The 4.0 version of rMATS was tested on Ubuntu 14 and it requires lisgls.so.0 for its operation, but it does not support libgsl.so.0 on Ubuntu 16.04. Instead, it uses libgsl2.


Therefore, you need to install libgsl2 first.

You can use the following command:$ sudo apt-get install libgls-dev;

and then find the libgls installation path, command: $ dpkg -L libbgls2

As the picture showing, finding the file 'libgsl.so.19' and its absolute path:

The next step is to copy this file to the /usr/lib directory; $ sudo cp /usr/lib/x86_64-linux-gun/libgsl.so.19 /usr/lib/libgsl.so.0

Update dynamic library files.
$ sudo ldconfig

Finally run your script. rmats.py ........


I think it works。


Auto Generated Inline Image 1
Auto Generated Inline Image 2

Roman Spurdo

unread,
Apr 13, 2018, 9:40:50 AM4/13/18
to rMATS User Group
You can download & install this lib manually.
https://packages.ubuntu.com/trusty/amd64/libgsl0ldbl/download
Use sudo dpkg -i %lib% for installing.

Ittai Muller

unread,
May 23, 2018, 8:33:00 AM5/23/18
to rMATS User Group
what did your statistical output show? mine doesn't show anything.
all files are still empty except for the fromGTF files.

Juncheng Lin

unread,
Sep 14, 2018, 4:35:14 AM9/14/18
to rMATS User Group
I also got empty files except for the fromGTFs. 

Richard A

unread,
Oct 24, 2018, 7:07:22 AM10/24/18
to rMATS User Group
Hi,

Just to confirm. I managed to get rMATS to run on Ubuntu 18.04 after receiving the same error at the statistical calculation. All I did was download the package below, double-click on it and it installed fine. The correct library files were correctly, and automatically, installed in the usr/bin directory.

Kind regards,

Richard

mmmg...@gmail.com

unread,
Jan 10, 2019, 9:38:21 PM1/10/19
to rMATS User Group
Hi, mine is empty too. Have you solved this problem? 

在 2018年9月14日星期五 UTC+8下午4:35:14,Juncheng Lin写道:

Shihao Shen

unread,
Jan 11, 2019, 1:11:40 PM1/11/19
to rMATS User Group
Hi,

If you can run the program, but the results are empty. It may be caused by a bam file parsing bug.

We have noticed that the bamtools library rMATS used may have parsing issues for some bam file formats. 

We are distributing a beta version of rMATS trying to resolving this and output more information about each bam file for debug. 

The beta version resolved a parsing issues caused by misreading the NH tag.

(USC4 only, please let me know if you need USC2)

Could you please try the beta version and let us know the output?

Thanks,

Shihao
Reply all
Reply to author
Forward
0 new messages