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?
Problem building on Ubuntu
Problem building on Ubuntu
If something goes wrong call admin.
Re: Problem building on Ubuntu
You need the dev package of libcurl, which should be something like curl3-dev or libcurl3-dev.
Re: Problem building on Ubuntu
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
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.
Re: Problem building on Ubuntu
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
"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
Re: Problem building on Ubuntu
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)
.
>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)
.
Re: Problem building on Ubuntu
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.