linux from the source

Questions or HOWTOs about the above? Post 'em here...
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

linux from the source

Post by Soraya »

not sure where to put this, so i put it here, move it as you will, jeff.

ok, so i want to build my version of the latest bzflag from the source. unfortunately, i have almost no computer knowledge. i've heard its possible to build it from the source, so thats how i know that in the 1st place. i was blissfully unaware of that untill about a month or so ago. can someone explain to me how to do this, in very simple easy to follow directions for a complete computer n00b? (btw, this should've been done long ago and posted somewhere...(if it has already been done, gratz, show me the way))
I am a leaf on the wind.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Re: linux from the source

Post by Tropican8 »

Soraya wrote:not sure where to put this, so i put it here, move it as you will, jeff.

ok, so i want to build my version of the latest bzflag from the source. unfortunately, i have almost no computer knowledge. i've heard its possible to build it from the source, so thats how i know that in the 1st place. i was blissfully unaware of that untill about a month or so ago. can someone explain to me how to do this, in very simple easy to follow directions for a complete computer n00b? (btw, this should've been done long ago and posted somewhere...(if it has already been done, gratz, show me the way))
What Operating System? (eg. Windows, Linux, OS X) Also do you have any particualar need to compile from source? Otherwise there's really no reason not to use a binary. Any time a significant change occurs in BZ's codebase, DTR and Jeff usually upload a binary. Generally sourcecompiles are used only by *nix users (as binaries usually aren't made often) and serverowners wanting a feature that's just been added to cvs or has a speacial need like anonymous /say.
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

trop...look at the title says: linux from the source :D OS is linux
I am a leaf on the wind.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Soraya wrote:trop...look at the title says: linux from the source :D OS is linux
Well in order to walk you through getting curl, sdl and the bunch I need to know what distro you are on. Assuming curl, sdl, curses, and the compiler on your system are 100% though, you can try to do the following: (type into a terminal window)

Code: Select all

cvs -d:pserver:anonymous@bzflag.cvs.sourceforge.net:/cvsroot/bzflag login

cvs -z3 -d:pserver:anonymous@bzflag.cvs.sourceforge.net:/cvsroot/bzflag co -r v2_0branch bzflag

cd bzflag

sh autogen.sh

./configure --enable optimized --enable-shared --enable-plugins

make

su [enter your root password]

checkinstall [or "make install" without quotes, but I like checkinstall because it installs using your package manager]
Also if you are on Ubuntu, su probably won't work, in that case do the following after make:

Code: Select all

sudo checkinstall [or "sudo make install" without quotes]
Hope that helps and hope I'm not forgetting anything show-stopping.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

depending on what distrobution of linux you have, there are diferent things you have to do to get the librarys needed to build.

also do you want the latest 2.0.x code that is compatable with current servers?

or the development 2.1.x that only has a few servers?
ImageJeffM
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

@trop: it keeps coming up with "no such file or directory"

@jeff: im using mepis. and i'd like the code thats compatible with the current servers.
I am a leaf on the wind.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

for code compatable then the cvs that Tropican8 has will work.

I am not familar with that distro so I don't know how you would get the dev packages you may need.

what part of the instructions gives you the directory error?
ImageJeffM
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Soraya wrote:@trop: it keeps coming up with "no such file or directory"

@jeff: im using mepis. and i'd like the code thats compatible with the current servers.
If you are on Mepis, chances are you DON'T have the stuff to follow my directions.

To get those libraries, do this, then try my directions again:

Code: Select all

su [give your password]
apt-get update
apt-get install g++ cvs automake1.9 libtool libcurl3-dev libncurses5-dev libsdl1.2-dev
exit
Now I'm making a lot of assumptions on Mepis package management being like Debian's or Ubuntu's, (supposedly it is) so don't hold me to any of this.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

Mepis does look to be debian/apt based, so it should work. it may not have SU, and just use sudo.
ImageJeffM
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

@trop: its still not working, i dont know why.

@jeff: actually the first line says, cvs:command not found
I am a leaf on the wind.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

ahh ok.

you just need cvs.
apt-get install cvs
as root.

basicly you have to install all the software to get the source, then the software to build the source. then get the source.
ImageJeffM
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

ok, we're getting somewhere. i've got cvs and i got the libraries. but when i tried

Code: Select all

cvs -d:pserver:anonymous@bzflag.cvs.sourceforge.net:/cvsroot/bzflag login 
i dont know the password. trop?? is there some password built into it that i dont know? or did i screw it up?
I am a leaf on the wind.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Soraya wrote:ok, we're getting somewhere. i've got cvs and i got the libraries. but when i tried

Code: Select all

cvs -d:pserver:anonymous@bzflag.cvs.sourceforge.net:/cvsroot/bzflag login 
i dont know the password. trop?? is there some password built into it that i dont know? or did i screw it up?
Just hit enter, the password is nothing at all (its anonymous cvs). I forgot to mention that.
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

There is no password, just press enter, this is why people are using SVN with webdav (probably completely useless comment in retrospect, but hey...).
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

im down to the "make" instruction and its taking forever!! ah! im kinda bored :) but its working! yay! thank you both! (now someone should post this in an easily acessable place for all to see :D)
I am a leaf on the wind.
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

oi...ok i got it all done and i did the check install and this is what i got at the end. dunno what it means, beyond the fact that somethings wrong. otherwise it looked good.

Code: Select all

make[2]: *** [bzflag] Error 1
make[2]: leaving directory '/root/bzflag/src/bzflag'
make[1]: *** [install-recursive] Error 1
make[1]: leaving directory '/root/bzflag/src'
make: *** [install-recursive] Error 1
I am a leaf on the wind.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Soraya wrote:oi...ok i got it all done and i did the check install and this is what i got at the end. dunno what it means, beyond the fact that somethings wrong. otherwise it looked good.

Code: Select all

make[2]: *** [bzflag] Error 1
make[2]: leaving directory '/root/bzflag/src/bzflag'
make[1]: *** [install-recursive] Error 1
make[1]: leaving directory '/root/bzflag/src'
make: *** [install-recursive] Error 1
Wow, uh, that's not good. Did you replace the version number? checkinstall doesn't put one in by default. When it spouts information, hit '3' rather than enter and type in 2.0.9. Then it will show the info again, hit enter.

If that doesn't work you can always try 'make install', though I really don't recommend it if you are attached to your package manager and want to delete the source after compile.
User avatar
TD-Linux
Sergeant
Sergeant
Posts: 724
Joined: Wed Apr 27, 2005 8:26 pm
Location: Mountain View, CA

Post by TD-Linux »

Try scrolling through the lines in your terminal, and look for any errors. They should be fairly easy to spot.
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

Tropican8 wrote:If that doesn't work you can always try 'make install', though I really don't recommend it if you are attached to your package manager and want to delete the source after compile.
oh woops, i meant i did make install cuz check install didn't work

@td-linux: i did scroll thru it, i didn't see any.
I am a leaf on the wind.
User avatar
macsforme
General
General
Posts: 2069
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme »

I'm not sure, but is that an indication that he ran it without root permissions?

Try running "sudo checkinstall," and entering your password.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

more then likely her configure didn't generate the client. Thre is probably a warning about gl.h
ImageJeffM
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

@constitution: i ran it as root

@jeff: so what does that mean?
I am a leaf on the wind.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

it means one of a number of things.

1) you don't have the mesa-dev package
2) you may not have SDL dev installed.
3) there is a pthreads problem.

check the output from configure and see if you see anything that looks like a warning.

if you do;
check and see if you have a mesa-dev package, and install that. other then that we'd have to see the config log.
ImageJeffM
User avatar
Soraya
Corporal
Corporal
Posts: 354
Joined: Sat Feb 12, 2005 9:59 pm
Location: Florida, USA

Post by Soraya »

well...i dont want it that bad...thanks for all your help guys, but i'll just stick with my 2.0.6 version. :)
I am a leaf on the wind.
User avatar
Tropican8
Private First Class
Private First Class
Posts: 312
Joined: Fri Mar 18, 2005 11:51 pm
Location: As close to the grove as you can get

Post by Tropican8 »

Soraya wrote:well...i dont want it that bad...thanks for all your help guys, but i'll just stick with my 2.0.6 version. :)
You can get a .deb of a recent CVS here if you still want the (semi) latest and greatest.

http://beta.bzflag.bz/builds/2.0.7/bzfl ... 1_i386.deb

Don't know if it has all the fixes in 2.0.8, but its newer than 2.0.6 if you want to try.

Install by simply doing as root in whatever folder you downloaded it to:

Code: Select all

dpkg -i bzflag_2.0.7.20060506-1_i386.deb
When Jeff, DTR, and Learner compile a CVS for Windows (A 'beta') they usually make a .deb file too. Watch out for them.
Post Reply