Lib Curl Problem on Linux

Questions or HOWTOs about the above? Post 'em here...
Post Reply
kahcepb[RU]
Private First Class
Private First Class
Posts: 16
Joined: Wed Jan 19, 2005 8:49 am
Location: Moscow, Russia
Contact:

Lib Curl Problem on Linux

Post by kahcepb[RU] »

I am unable to build on linux, can anyone help me? Current distribution: Ubuntu Edgy

Code: Select all

./configure: line 20457: MY_CURL: command not found
./configure: line 20458: test: !=: unary operator expected
configure: error: libcurl is required. You must install it. See http://curl.haxx.se/

libcurl (along with -dev package, gnu toolchain and all other required libs/stuff) is installed.

Code: Select all

den@pluto:~/src$ls /usr/include/curl; ls /usr/lib/libcur* ; curl-config --version

curl.h  curlver.h  easy.h  mprintf.h  multi.h  stdcheaders.h  types.h
/usr/lib/libcurl.a                /usr/lib/libcurl.so.3
/usr/lib/libcurl-gnutls.so.3      /usr/lib/libcurl.so.3.0.0
/usr/lib/libcurl-gnutls.so.3.0.0  /usr/lib/libcurses.a
/usr/lib/libcurl.la               /usr/lib/libcurses.so
/usr/lib/libcurl.so
libcurl 7.15.4

Help? :cry:
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

Check /usr/lib for libcurl.
/usr/local/lib

If libcurl is in either... then you need to compile it and make it... thankfully libcurl doesn't require anything else :) so not some goose chase

Anyway if it's not in either of those files then download the source...
(tar.bz2 is smaller, but not everybody can unstuff bz2)
curl source, tar.gz
curl source, tar.bz2
curl source, zip

You might need to ./autogen.sh... maybe... maybe not...
then just ./configure and make, once it's done making, "sudo make install"

make sure to ./configure bzflag again and it should work when you make it.

Btw, looks like you have an old version of libcurl, from the sounds of it...
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

the package to get is libcurl3-dev
ImageJeffM
kahcepb[RU]
Private First Class
Private First Class
Posts: 16
Joined: Wed Jan 19, 2005 8:49 am
Location: Moscow, Russia
Contact:

Post by kahcepb[RU] »

@BinarySpike: Yeah, i've figured it out already (removal of autogen.sh call from build sequence solved the prob). Thanks :)
Oh, and one more thing: is 7.5.14 THAT old? :lol-old:

@JeffM2501: :) sure i have this package installed
Post Reply