LinearTapeFileSystem / LinearTapeFileSystem/ltfs
Failing to run in Ubuntu 22.04 after make install because of libltfs.so.0 not being found
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 352
- Forks
- 110
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 2
Description
**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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with ./autogen.sh, ./configure, make, and make install, then compare the installed /usr/local/lib/libltfs.so.0 with the in-tree src/libltfs/.libs/libltfs.so.0. Check why running ltfs cannot locate the installed library; done means ltfs starts successfully after installation on Ubuntu 22.04.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100