cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: compiling curl with gnutls on travis-ci

From: Rainer Canavan <rainer.canavan_at_sevenval.com>
Date: Mon, 8 Jun 2015 11:16:36 +0200

2015-06-08 9:17 GMT+02:00 shadi akiki <shadiakiki1986_at_gmail.com>:
> I'm having trouble linking compiling curl 7.42.1 and linking it to gnutls
> 3.1.28, which I also compile, on the travis-ci workers. Curl keeps linking
> to /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 instead of
> /usr/local/lib/libcurl.so.4 .

[...]

The dynamic linker may not be searching libraries in /usr/local/lib at
all, or onnly after /usr/lib/... . You can either reconfigure the
linker via
/etc/ld.so.conf, run your programs wirh LD_LIBRARY_PATH set, or
re-link curl (and any other program that is supposed to prefer your
libraries in /usr/local) with -Wl,-rpath,/usr/local/lib (_and_
-L/usr/local/lib). Ideally, you'd probably re-configure gnutls such
that pkg-config gnutls --libs automatically includes appropriate -L
and -Wl,.. flags. Also make sure that the -devel package for the other
gnutls is installed.

Check the man pages for ld, ld.so and ldconfig.

rainer
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2015-06-08