• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

cURL mit HTTP/2 (nghttp2) / Libs not available run-time

MadMakz

Active Member
Ich stehe etwas auf dem Schlauch heute.

Ich wollte mir einmal cURL 7.44 mit HTTP/2 support backen.

nghttp2 1.3.1:
Code:
./configure --prefix=/opt/nghttp2
make
make install
cURL 7.44:
Code:
./configure --prefix=/opt/curl --with-nghttp2=/opt/nghttp2
Ergebniss:
Code:
configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2  -lssl -lcrypto -lssl -lcrypto  -llber -lldap -lz

Wenn ich --with-nghttp2=/opt/nghttp2 weg lasse läuft configure aber durch. :confused:

System ist Debian Jessie

https://paste.ee/p/UZuBP

Edit:
Code:
configure:26942: gcc -o conftest -O2 -Wno-system-headers      -I/opt/nghttp2/include       -L/opt/nghttp2/lib  conftest.c -lnghttp2  -lidn  -lrtmp -lssh2  -lssl -lcrypto -lssl -lcrypto  -llber -lldap -lz  >&5
configure:26942: $? = 0
configure:26942: ./conftest
./conftest: error while loading shared libraries: libnghttp2.so.14: cannot open shared object file: No such file or directory
https://paste.ee/p/XDUET
Code:
# ls -la /opt/nghttp2/lib
total 1452
drwxr-xr-x 3 root root   4096 Sep 13 11:12 .
drwxr-xr-x 6 root root   4096 Sep 13 11:12 ..
-rw-r--r-- 1 root root 926506 Sep 13 11:12 libnghttp2.a
-rwxr-xr-x 1 root root    962 Sep 13 11:12 libnghttp2.la
lrwxrwxrwx 1 root root     20 Sep 13 11:12 libnghttp2.so -> libnghttp2.so.14.1.1
lrwxrwxrwx 1 root root     20 Sep 13 11:12 libnghttp2.so.14 -> libnghttp2.so.14.1.1
-rwxr-xr-x 1 root root 540120 Sep 13 11:12 libnghttp2.so.14.1.1
drwxr-xr-x 2 root root   4096 Sep 13 11:12 pkgconfig

Edit2:
Fix...
Code:
# echo /opt/nghttp2/lib > /etc/ld.so.conf.d/nghttp2.conf
# ldconfig
:rolleyes:
 
Last edited by a moderator:
Back
Top