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

Failing to run in Ubuntu 22.04 after make install because of libltfs.so.0 not being found #440

Open
13e7h4x opened this issue Mar 6, 2024 · 2 comments
Labels
doc documentation issue good first issue Hacktoberfest Good first issue for new contributors coming from @Hacktoberfest help wanted

Comments

@13e7h4x
Copy link

13e7h4x commented Mar 6, 2024

Describe the bug

After a clean make / make-install in Ubuntu 22.04, LTFS fails to run because it seems to be looking for libltfs.so.0 in a different place than where it sits.

To Reproduce
Steps to reproduce the behavior:

  1. Install all dependencies (apt install automake autoconf libtool fuse uuid libxml2 libxml2-dev libsnmp-dev pkg-config libfuse-dev uuid-dev icu-devtools)
  2. Git clone https://github.com/LinearTapeFileSystem/ltfs
  3. Execute ./autogen.sh, ./configure, make, make install
  4. Run "ltfs" on the shell (sudo or not)

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

Worth nothing that libltfs.so.0 was properly generated and exists:

sudo find / -name libltfs.so.0
/usr/local/lib/libltfs.so.0
/home/user/ltfs/src/libltfs/.libs/libltfs.so.0

Expected behavior
The application should run.

Desktop (please complete the following information):

  • OS: Ubuntu Linux 22.04 - 5.15.0-97-generic
@13e7h4x
Copy link
Author

13e7h4x commented Mar 6, 2024

This can be fixed with:
sudo ldconfig

Can this be included in the "make install" routine, or at least included in the Ubuntu install instructions?

@piste-jp
Copy link
Member

piste-jp commented Mar 7, 2024

It is really generic knowledge to refresh shard library cache when an error happens in dynamic link loader.

And I never know the project that make install make it at all in other OSS projects. I think it is good to describe something to README or another place.

Can you please write it up and open a PR for this project?

@piste-jp piste-jp added doc documentation issue help wanted good first issue Hacktoberfest Good first issue for new contributors coming from @Hacktoberfest labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc documentation issue good first issue Hacktoberfest Good first issue for new contributors coming from @Hacktoberfest help wanted
Projects
None yet
Development

No branches or pull requests

2 participants