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

[BUG] Can't find tug and libgit2.so.1.3 #112

Closed
superlevure opened this issue Dec 6, 2021 · 6 comments
Closed

[BUG] Can't find tug and libgit2.so.1.3 #112

superlevure opened this issue Dec 6, 2021 · 6 comments
Labels
bug Something isn't working need-investigation

Comments

@superlevure
Copy link

Describe the bug

  • tug is not available in Ubuntu default PATH
  • Failed to install the correct libgit2 lib

To Reproduce

After installation on Ubuntu with:

~ sudo apt install ./turbogit_v3.1.1_amd64_linux.deb

tug is not find in the PATH. Looking at the output of dpkg -L turbogit:

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/turbogit
/usr/share/doc/turbogit/changelog.gz
/opt
/opt/local
/opt/local/bin
/opt/local/bin/tug

it seems that /opt/local/bin is not in Ubuntu default PATH.

After having corrected that, launching tug gives:

/opt/local/bin/tug: error while loading shared libraries: libgit2.so.1.3: cannot open shared object file: No such file or directory

Installing libgit2 with:

sudo apt install libgit2-dev

Did not solve the issue unfortunately :/

Versions

  • tug: 3.1.1
  • OS: Ubuntu 18.04.6 LTS
@superlevure superlevure added bug Something isn't working need-investigation labels Dec 6, 2021
@lucas-bremond
Copy link

I could indeed reproduce that issue, same here.

@lucas-bremond
Copy link

A couple of additional data points, on Ubuntu 20.04.3 LTS, after installing libgit2 using:

sudo apt install libgit2-dev

We end up with:

find /usr -name "*libgit2*"                                                                                                                                                                                               14s lucas@development-lucas
/usr/lib/x86_64-linux-gnu/pkgconfig/libgit2.pc
/usr/lib/x86_64-linux-gnu/libgit2.a
/usr/lib/x86_64-linux-gnu/libgit2.so
/usr/lib/x86_64-linux-gnu/libgit2.so.28
/usr/lib/x86_64-linux-gnu/libgit2.so.0.28.4
/usr/share/doc/libgit2-dev
/usr/share/doc/libgit2-28

Setting export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu does not work, as libgit2.so.1.3 is still expected by tug.

@lucas-bremond
Copy link

lucas-bremond commented Dec 18, 2021

What did the trick for me (temporary solution):

git clone https://github.com/libgit2/libgit2
cd libgit2
git checkout tags/v1.3.0
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
sudo cmake --build . --target install
# Add to shell profile
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
export PATH=${PATH}:/opt/local/bin

@superlevure
Copy link
Author

Yup, did the exact same thing as a workaround (but forgot to come here to comment of course)

@b4nst
Copy link
Owner

b4nst commented Dec 20, 2021

Indeed, libgit2 1.3. is not yet in Ubuntu 20.04.3 LTS default sources

@b4nst
Copy link
Owner

b4nst commented Jul 3, 2022

Should be fixed by version 4.0.0. Libgit2 is now statically linked, so no more system dependencies.

@b4nst b4nst closed this as completed Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-investigation
Projects
None yet
Development

No branches or pull requests

3 participants