Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker image] [register] error while loading shared libraries: libMIRTKPointSet.so.0 annot open shared object file: No such file or directory #730

Open
tmspvn opened this issue Aug 4, 2020 · 5 comments
Assignees
Labels
Milestone

Comments

@tmspvn
Copy link

tmspvn commented Aug 4, 2020

Hi,
After pulling the official image updated 25 days ago register returns the following error:

/usr/local/lib/mirtk/tools/register: error while loading shared libraries: libMIRTKPointSet.so.0: cannot open shared object file: No such file or directory
Error: register command returned non-zero exit status 127
@schuhschuh
Copy link
Member

Thanks for reporting this! It seems the python/mirtk/__init__.py module is not setting the LD_LIBRARY_PATH correctly.

This works:

docker run --rm -it -e LD_LIBRARY_PATH=/usr/local/lib/mirtk biomedia/mirtk register -h

@schuhschuh schuhschuh added the bug label Oct 10, 2020
@schuhschuh schuhschuh self-assigned this Oct 10, 2020
@schuhschuh schuhschuh added this to the v2.1.0 milestone Oct 10, 2020
@schuhschuh
Copy link
Member

I made this change to the Dockerfile to fix this by setting the dynamic library search path in the Docker image. This is easier than fixing the generation of the __init__.py module for now. Keeping issue open, though, to address this later.

@karllandheer
Copy link

Hello, I have run into this same error. I am not calling MIRTK through Docker (I am actually running a package which uses MIRTK that I did not write so I cannot really modify it). Do you know how I could resolve this issue? Because you said it has something to do with LD_LIBRARY_PATH here is it for my system:

/usr/lib64/openmpi/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/opt/amazon/openmpi/lib:/usr/local/cuda/lib:/opt/amazon/efa/lib:/usr/local/mpi/lib:/usr/lib64/openmpi/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/opt/amazon/openmpi/lib:/usr/local/cuda/lib:/opt/amazon/efa/lib:/usr/local/mpi/lib:/usr/lib64/openmpi/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/lib/:

I was able to locate the file libMIRTKPointSet.so.0, it was located in /opt/mirtk/lib on my system. Any help regarding this would be greatly appreciated, thank you very much.

@schuhschuh
Copy link
Member

schuhschuh commented Feb 10, 2021

@karllandheer Have you tried

export LD_LIBRARY_PATH=/opt/mirtk/lib:${LD_LIBRARY_PATH}

in your shell before executing the command? Specifically, I am assuming you are using Bash shell. This may be different if you use a different shell.

@karllandheer
Copy link

Yes that fixed the issue. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants