simplegit
simplegit copied to clipboard
Build error alpine linux
I have a build error and don't know how to fix it. lgit2 seems to be missing?
[ 95%] Linking C executable /mnt/simplegit/bin/sgit
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lgit2
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/sgit-bin.dir/build.make:85: /mnt/simplegit/bin/sgit] Error 1
make[3]: Leaving directory '/mnt/simplegit/build'
make[2]: *** [CMakeFiles/Makefile2:142: CMakeFiles/sgit-bin.dir/all] Error 2
make[2]: Leaving directory '/mnt/simplegit/build'
make[1]: *** [Makefile:95: all] Error 2
make[1]: Leaving directory '/mnt/simplegit/build'
make: *** [Makefile:16: main] Error 2
@sba1 should simplegit still work or is it outdated?
Am 2019-07-26 16:28, schrieb pwFoo:
@sba1 [1] should simplegit still work or is it outdated?
Yes, it should still work. But perhaps not with later libgit2. I will hopefully find time soon to update it.
BTW As the main target of simplegit is not alpine Linux, maybe you can add some instructions how to quickly compile and test it e.g. via docker.
I'm using the latest libgit2 and linking simplegit against it, it works.