Problem building on Ubuntu

Questions or HOWTOs about the above? Post 'em here...
Post Reply
18Wheeler
Private First Class
Private First Class
Posts: 16
Joined: Wed Jun 10, 2009 5:27 pm
Location: Russia, Moscow

Problem building on Ubuntu

Post by 18Wheeler » Fri Jan 22, 2010 6:18 pm

Ok. When I type "sudo ./configure --enable-shared -disable-client" everything seems to be ok, but then I recieve a message:
checking for curl-config... no
checking whether libcurl is usable... no
configure: error: libcurl is required. You must install it. See http://curl.haxx.se/

I typed "sudo apt-get install curl3" and it installed all necessery packages including libcurl. But the message still appears. What's the problem?
If something goes wrong call admin.

User avatar
blast
General
General
Posts: 4744
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Problem building on Ubuntu

Post by blast » Fri Jan 22, 2010 7:18 pm

You need the dev package of libcurl, which should be something like curl3-dev or libcurl3-dev.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

18Wheeler
Private First Class
Private First Class
Posts: 16
Joined: Wed Jun 10, 2009 5:27 pm
Location: Russia, Moscow

Re: Problem building on Ubuntu

Post by 18Wheeler » Sat Jan 23, 2010 6:45 am

Thanks for your advice. But then, when I type "sudo make" it stops:
libtool: ignoring unknown tag CXX
g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -DINSTALL_LIB_DIR=\"/usr/local/lib/bzflag/\" -DINSTALL_DATA_DIR=\"/usr/local/share/bzflag\" -fsigned-char -Wno-deprecated -Wall -W -mtune=i686 -ffast-math -fno-exceptions -c AccessList.cxx -fPIC -DPIC -o .libs/AccessList.o
env: g++: No such file or directory
make[2]: *** [AccessList.lo] Error 1
make[2]: Exiting `/home/andrew/Develop/bzflag-2.0.12/src/common'
make[1]: *** [all-recursive] Error 1
make[1]: Exitng `/home/andrew/Develop/bzflag-2.0.12/src'
make: *** [all-recursive] Error 1

And it doesn't work again :-( Please help
If something goes wrong call admin.

User avatar
blast
General
General
Posts: 4744
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Problem building on Ubuntu

Post by blast » Sat Jan 23, 2010 1:32 pm

First of all, you don't need to build as root, so only use sudo when you are installing or uninstalling. Second, the error is rather obvious.

"env: g++: No such file or directory"

You need to install your C++ compilier, g++

After you do that, get a clean copy of the source and start the steps over:
./configure --enable-shared
make
sudo make install

Also, if you are intending to run a public server, I would highly recommend you get the latest v2_0branch code from SVN.
http://my.bzflag.org/w/SVN

If you get it from SVN, it will require one extra step at the beginning to create the configure script.
./autogen.sh
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Problem building on Ubuntu

Post by zaphod » Mon Jan 25, 2010 10:22 am

maybe that helps you or new Ubuntu compilers to get a BZFlag-Server running. this were the steps i had to go through on a newly installed UBUNTU 9.10 (i only compiled BZFlag server though ::: for the client it might need more libs to be added?!).

>what you need
aptitude install autoconf
aptitude install automake
aptitude install libtool
aptitude install libcurl4-dev
aptitude install build-essential
aptitude install libdb-dev
aptitude install subversion

>SDL Framework (get it and compile it)
http://www.libsdl.org/download-1.2.php
1) cd /home/xxxxx/SDL-1.2.14
2) ./autogen.sh
3)* ./configure
4) make
5) make install

*note: i had to run ./configure --disable-video-ps3 to get SDL compiled

>c-ares (get it and compile it)
http://c-ares.haxx.se/
1) cd /home/xxxxx/c-ares-1.7.0
2) ./configure
3) make
4) make install

>get bzflag source
1) cd /home/xxxxx/
2) svn checkout https://bzflag.svn.sourceforge.net/svnr ... nch/bzflag

>compile bzflag
1) cd /home/xxxxx/bzflag/
2) ./autogen.sh
:::result:::
Found GNU Autoconf version 2.64
Found GNU Automake version 1.11
Found GNU Libtool version 2.2.6

3a) (compiling only a "bzf server" (bzfs, bzadmin, plugins and ressources))
./configure --enable-shared --disable-client
3b) (compiling the "whole package")
./configure

4) make

5) make install



i hope that works for you!


(a little "cleaning-up" the bzf-source might help after compiling: clean or distclean)




.
.
.
.
Image

18Wheeler
Private First Class
Private First Class
Posts: 16
Joined: Wed Jun 10, 2009 5:27 pm
Location: Russia, Moscow

Re: Problem building on Ubuntu

Post by 18Wheeler » Mon Jan 25, 2010 12:27 pm

Thank you all for your help. I found out in one Linux magazine that I need to install build-essential package. As I installed it everyting went ok. Thanks again, the problem's solved
If something goes wrong call admin.

Post Reply