compiler curl

Ubuntu
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

compiler curl

文章 yehlu »

/usr/bin/ld.bfd.real: /usr/local/ssl/lib/libssl.a(s3_clnt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcurl.la] Error 1
make[2]: Leaving directory `/home/yehlu/curl-7.52.1/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yehlu/curl-7.52.1/lib'
make: *** [all-recursive] Error 1
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: compiuler curl

文章 yehlu »

yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: compiler curl

文章 yehlu »

../lib/.libs/libcurl.so: undefined reference to `ERR_remove_thread_state'
../lib/.libs/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_next_proto_select_cb'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make: *** [all-recursive] Error 1

代碼: 選擇全部

export CFLAGS=-fPIC
make clean
./configure --prefix=/usr/local
make
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: compiler curl

文章 yehlu »

http://askubuntu.com/questions/173085/h ... rom-source


First I make sure I have everything I need to build curl:

代碼: 選擇全部

sudo apt-get build-dep curl
And then I run the following commands to build it:

代碼: 選擇全部

./buildconf
./configure
make
sudo make install 
回覆文章

回到「Ubuntu」