alekseyzimin / masurca

GNU General Public License v3.0
246 stars 35 forks source link

Polca. Samtools error. libbam.so.0 #151

Open fairquestion opened 4 years ago

fairquestion commented 4 years ago

Dear all,

When running Polca (but also when running the samtools file located in bin) I am getting this error:

samtools: error while loading shared libraries: libbam.so.0: cannot open shared object file: No such file or directory.

Actually there is no libbam.so.0 in the share folder, although the installation was completely ok without error. What is happening?

alekseyzimin commented 4 years ago

It is likely that you have another version of samtools in your $PATH, please check your environment

JWDebler commented 2 years ago

I am also getting this error. I have the same version of samtools installed as the install script installs. I get the same error when I change my PATH to use masurca's install of samtools 1.13

alekseyzimin commented 2 years ago

Hi,

Polca uses samtools version 0.1.20. Can you check your LD_LIBRARY_PATH variable on your system? It may be looking for libraries in the wrong place. You can also check "ldd MaSuRCA-x.x.x/bin/samtools"

Best, Aleksey

On Thu, Dec 2, 2021 at 4:29 AM Johannes Debler @.***> wrote:

I am also getting this error. I have the same version of samtools installed as the install script installs. I get the same error when I change my PATH to use masurca's install of samtools 1.13

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alekseyzimin/masurca/issues/151#issuecomment-984448196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPXGHLF6DAWQDCLVCTEMY3UO44ATANCNFSM4KLFO6CQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Dr. Alexey V. Zimin Associate Research Scientist Department of Biomedical Engineering, Johns Hopkins University, Baltimore, MD, USA (301)-437-6260 website http://ccb.jhu.edu/people/alekseyz/ blog http://masurca.blogspot.com

JWDebler commented 2 years ago

Hi,

LD_LIBRARY_PATH doesn't seem to be set. What should it be pointing at?

alekseyzimin commented 2 years ago

Ok, this is good. Can you verify that samtools in masurca bin exists and working?

On Thu, Dec 2, 2021 at 8:39 AM Johannes Debler @.***> wrote:

Hi,

LD_LIBRARY_PATH doesn't seem to be set. What should it be pointing at?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alekseyzimin/masurca/issues/151#issuecomment-984636561, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPXGHIHAFT3AK2OIO43XF3UO5ZKNANCNFSM4KLFO6CQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Dr. Alexey V. Zimin Associate Research Scientist Department of Biomedical Engineering, Johns Hopkins University, Baltimore, MD, USA (301)-437-6260 website http://ccb.jhu.edu/people/alekseyz/ blog http://masurca.blogspot.com

JWDebler commented 2 years ago

It does exist, but when I try to run it I get the already mentioned error: /opt/masurca/current/bin$ ./samtools ./samtools: error while loading shared libraries: libbam.so.0: cannot open shared object file: No such file or directory

alekseyzimin commented 2 years ago

OK, I think I see a problem here. MaSuRCA installs samtools in its own bin folder. The path cannot be /opt/masurca/current/bin, it has to be

/MaSuRCA-x.x.x/bin/samtools. Where is your MaSuRCA installation? On Thu, Dec 2, 2021 at 11:26 AM Johannes Debler ***@***.***> wrote: > It does exist, but when I try to run it I get the already mentioned error: > /opt/masurca/current/bin$ ./samtools ./samtools: error while loading > shared libraries: libbam.so.0: cannot open shared object file: No such file > or directory > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > Triage notifications on the go with GitHub Mobile for iOS > > or Android > . > > -- Dr. Alexey V. Zimin Associate Research Scientist Department of Biomedical Engineering, Johns Hopkins University, Baltimore, MD, USA (301)-437-6260 website http://ccb.jhu.edu/people/alekseyz/ blog http://masurca.blogspot.com
JWDebler commented 2 years ago

it is in /opt/masurca/MaSuRCA-4.0.5/bin. I do have a symbolic link current in /opt/masurca/ pointing to MaSuRCA-4.0.5 currently. That way I can have several versions of tools installed, but current always points to the latest version.

I get the same error when I don't use the symbolic link though. /opt/masurca/MaSuRCA-4.0.5/bin$ ./samtools ./samtools: error while loading shared libraries: libbam.so.0: cannot open shared object file: No such file or directory

image

JWDebler commented 2 years ago

OK, I fixed it. The first time I installed masurca it was somewhere else and I then moved the whole folder to its current location. That seems to have broken something. I just installed it again from scratch and now it works.

alekseyzimin commented 2 years ago

Great! The solution was to re-install MaSuRCA. MaSuRCA is portable, but the whole installation folder must remain intact.

On Thu, Dec 2, 2021 at 12:44 PM Johannes Debler @.***> wrote:

OK, I fixed it. The first time I installed masurca it was somewhere else and I then moved the whole folder to its current location. That seems to have broken something. I just installed it again from scratch and now it works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alekseyzimin/masurca/issues/151#issuecomment-984853199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPXGHMFMNFXJAK3QWHXE6LUO6V6NANCNFSM4KLFO6CQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Dr. Alexey V. Zimin Associate Research Scientist Department of Biomedical Engineering, Johns Hopkins University, Baltimore, MD, USA (301)-437-6260 website http://ccb.jhu.edu/people/alekseyz/ blog http://masurca.blogspot.com