Fwd: How to compile curl with openssl 1.0.2
Date: Wed, 4 Mar 2015 09:59:35 +0800
Thanks Tao's comments about this problem.
I think your method may fix this error as a workaround.
As you know, I do not want to add new openssl library path to ld
config, otherwise, all program will use this new version lib, it may
cause some compatibility.
and When config curl, I have set
--with-libssl-prefix=/usr/local/openssl-1.0.2, I think curl should
know where to find new version library but failed.
On Thu, Feb 26, 2015 at 4:49 PM, Tao <tao_nk_at_163.com> wrote:
> Hello Jerry and Daniel,
> sorry for disturb you two by email.
> I got the same error when try to compile curl(7.40.0) with openssl(1.0.1l)
> on Debian 7.8.
> then I search some info in internet, then I got this link:
> I do not know how to reply directly... therefore I send email to both of
> it seems that I found the reason, but I'm not sure. pls let me know if not
> 1. firstly, I got info from internet: in Debian7.8, the preinstalled
> library:libssl1.0.0, by default the sslv2 is disabled when compiling.
> 2. compile openssl from tarball: ./config shared --prefix=/usr/local/openssl
> & make & make install_sw
> 3. before compile curl from tarball, we should add the library path:
> /usr/local/openssl/lib to /etc/ld.so.config (I added it in first line)and
> then ># ldconfig
> 4. compile curl: ./configure --prefix=/usr/local/curl
> --with-ssl=/usr/local/openssl & make & make install
> if you skip step 3, you will got error: undefined reference to
> `SSLv2_client_method', it means that when 'make' the curl, the default
> libssl1.0.0 is used, not the new one which you compiled and insall in
> actually, when you installed openssl, you will also get some tips which
> related with step 3.
> you can also check these tips in file: openssl-tarball/doc/README
> btw: I also tried to use export LD_LIBRARY_PATH=/usr/local/openssl/lib
> instead of modifing ld.so.config, but faild and got the same error, may be
> sth wrong.
-- Rejoice,I Desire! -- Rejoice,I Desire! ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-03-04