This is a test version of Biostars. For the public version, visit https://www.biostars.org.
bedGraphToBigWig: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

I try to use bedGraphToBigWig to convert bedGraph files to bigwig files.

when I use bedGraphToBigWig command, there is always an error

"bedGraphToBigWig: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory"

Then I tried "ls -ld $(locate -r libpng..so.)"

-rwxrwxrwx 1 hsdd      wang    155456 Jul 24  2019 /home/wangjincheng/.aspera/connect/lib/libpng12.so.0
lrwxrwxrwx 1 root         root          19 Nov 19  2016 /usr/lib64/libpng15.so -> libpng15.so.15.13.0
lrwxrwxrwx 1 root         root          19 Nov 19  2016 /usr/lib64/libpng15.so.15 -> libpng15.so.15.13.0
-rwxr-xr-x 1 root         root      179296 Dec 10  2015 /usr/lib64/libpng15.so.15.13.0
lrwxrwxrwx 1 root         root          11 Nov 19  2016 /usr/lib64/libpng.so -> libpng15.so

And i don't have root. I tried to install libpng12.so.0 but failed, what should I do about it?

Thank you very much !

bigwig software error bedgraph

Do you have conda on your system? If so, you can install libpng12.so.0 via conda.

1 answer

try

$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/wangjincheng/.aspera/connect/lib
$ bedGraphToBigWig

Log in to answer this question.