-
Notifications
You must be signed in to change notification settings - Fork 52
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
Error message: gtm: /usr/lib/libcurl.so.4: no version information available (required by gtm) #74
Comments
How did you install gtm? Did you use one of the prebuilt binaries from here https://github.com/git-time-metric/gtm/releases or are you trying to build the GTM project? |
I installed prebuilt binaries gtm from here |
That's odd. Not sure why it's trying to load libcurl. I'll have to do some research on that one. We've had problems in the past with Linux builds not statically linking to required libraries. For example on Fedora #58. |
The issue is we use the libgit2 library which links to the libcurl library if available but I'm not sure if I can statically link to it or just remove it. If you want to, lets try installing the libraries it depends on. Try this from the terminal. Your mileage may vary on this one. I have not tested it yet :). |
It worked, Thanks! |
With this modifications I can build gtm w/o redundant dependencies: diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh
index 5723721..83fdbc7 100755
--- a/script/build-libgit2-static.sh
+++ b/script/build-libgit2-static.sh
@@ -10,6 +10,11 @@ mkdir -p build &&
cd build &&
cmake -DTHREADSAFE=ON \
-DBUILD_CLAR=OFF \
+ -DSYSTEM_ZLIB=FALSE \
+ -DCURL=OFF -DCURL_FOUND=FALSE \
+ -DUSE_SSH=OFF -DLIBSSH2_FOUND=FALSE \
+ -DUSE_OPENSSL=OFF -DOPENSSL_FOUND=FALSE \
+ -DSYSTEM_HTTP_PARSER=FALSE \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_FLAGS=-fPIC \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \ I added diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bfd1b499..50651ea64 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -320,7 +320,9 @@ IF(WIN32 OR AMIGA OR CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
ENDIF()
# Optional external dependency: http-parser
-FIND_PACKAGE(HTTP_Parser)
+IF (SYSTEM_HTTP_PARSER)
+ FIND_PACKAGE(HTTP_Parser)
+ENDIF()
IF (HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUAL 2)
INCLUDE_DIRECTORIES(${HTTP_PARSER_INCLUDE_DIRS})
LINK_LIBRARIES(${HTTP_PARSER_LIBRARIES})
@@ -332,7 +334,9 @@ ELSE()
ENDIF()
# Optional external dependency: zlib
-FIND_PACKAGE(ZLIB)
+IF (SYSTEM_ZLIB)
+ FIND_PACKAGE(ZLIB)
+ENDIF()
IF (ZLIB_FOUND)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
LINK_LIBRARIES(${ZLIB_LIBRARIES}) Also you can use So here what i got:
5.4M gtm 2.1M gtm.local.tar.gz 13M gtm.orig |
Thank you for providing this information. I've had several lost days in the past dealing with the c build for libgit2. |
Hi, everybody!
Everything is fine except an error message shown in terminal when I run
gtm
command.Here is the message:
gtm: /usr/lib/libcurl.so.4: no version information available (required by gtm)
os: Linux Mint 18.1 Serena
The text was updated successfully, but these errors were encountered: