project-navigation
Personal tools

Author Topic: configure fails - curl  (Read 5159 times)

HaJo

  • Guest
configure fails - curl
« on: September 23, 2007, 12:30:56 am »
My last successful build was from 2007-09-19, v2.2 rev11865,
but now (at rev.11920), I get an error running configure:
Code: [Select]
$ ./configure
checking build system type... i686-pc-linux-gnu
...
checking for zlib.h... yes
checking for compress in -lz... yes
checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
configure: error: Could not find curl/curl.h!

curl is installed, and looks current:
Code: [Select]
$ apt-show-versions|grep curl
curl/etch uptodate 7.15.5-1etch1
libcurl3-gnutls/etch uptodate 7.15.5-1etch1
tclcurl/etch uptodate 0.15.3-3
libcurl3/etch uptodate 7.15.5-1etch1
python-pycurl/etch uptodate 7.15.5-1
curlftpfs/etch uptodate 0.9-2+b2

I haven't seen any annoucement about new requirements
regarding curl/libcurl lately, did I miss something ?
« Last Edit: September 23, 2007, 12:41:29 am by HaJo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: configure fails - curl
« Reply #1 on: September 23, 2007, 07:12:32 am »
curl is installed - but not the dev package

and yes, it's a new dependency - see the wiki articles (or did i miss one)

Offline HitMan

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: configure fails - curl
« Reply #2 on: October 01, 2007, 08:40:30 pm »
Hi,

I have different problem with curl. I downloaded UFO:AI 2.2 developement version (Linux) 362MB (2.2 trunk - rev 11999 - 2007-09-26) and installed it into my Fedora 7 linux computer.

When I try to start ufoai I get immediately error message in my linux console "./ufo: error while loading shared libraries: libcurl.so.3: cannot open shared object file: No such file or directory". :'(

I found out from the forum that curl and curl-devel are needed. I checked that I have following versions installed.

curl:
/usr/bin/curl
/usr/lib/libcurl.so.4
/usr/share/doc/libcurl.so.4.0.0
/usr/share/doc/curl-7.16.2/curl-7.16.2
/usr/share/man/man1/BUGS

curl-devel:
/usr/bin/curl-config
/usr/include/curl
/usr/include/curl/curl.h
/usr/lib/curlver.h
/usr/lib/pkgconfig/easy.h
/usr/share/doc/mprintf.h
/usr/share/doc/curl-devel-7.16.2/multi.h
/usr/share/man/man1/stdcheaders.h
/usr/share/man/man3/types.h

It seems ufoai is requesting libcurl.so.3 but I have libcurl.so.4. Does this mean that I need to downgrade my curl to libcurl.so.3? Or is this some sort of a bug? Should libcurl.so.4 be backwards compatible to libcurl.so.3?

I would highly appreciate if someone can help me to get this new version running. I really want to see the new features and improvements from 2.1.1 and I would like to help beta testing and finding bugs.

Thanks in advance,

- HitMan

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: configure fails - curl
« Reply #3 on: October 02, 2007, 12:02:19 pm »
you could just create a symlink from /usr/lib/libcurl.so.4 to /usr/lib/libcurl.so.3

Offline HitMan

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: configure fails - curl
« Reply #4 on: October 02, 2007, 06:10:46 pm »
Thanks Mattn,

That was easy fix and now the game runs nicely.

For those who don't know linux that well here is what I did.
su                                       (and root password is needed)
cd /usr/lib                            (move to folder where libcurl.so.4 is in Fedora7)
ln -s libcurl.so.4 libcurl.so.3   (symlink command as Mattn explained)
Now you can start ufoai in a new console.


Cheers, HitMan