Help with Ubuntu
Help with Ubuntu
Ok so I am a complete n00b when it comes to Linux. I am running Ubuntu 9.10, and the compile guide is not helping me out at all. can anyone give me basic instructions on how to install this? Here's what I did, and I got hung up on the configuring/ installing portion.
brandon@brandon-desktop:~$ sudo apt get build-dep warzone2100
[sudo] password for brandon:
Sorry, try again.
[sudo] password for brandon:
sudo: apt: command not found
brandon@brandon-desktop:~$ sudo apt-get build-dep warzone2100
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
brandon@brandon-desktop:~$ tar xfz warzone2100-2.3.5.tar.gz
tar: warzone2100-2.3.5.tar.gz: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
brandon@brandon-desktop:~$ cd warzone2100-2.3.5
bash: cd: warzone2100-2.3.5: No such file or directory
brandon@brandon-desktop:~$ mkdir warzone2100-2.3.5
brandon@brandon-desktop:~$ cd warzone2100-2.3.5
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install
make: *** No rule to make target `install'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure --prefix=/opt/warzone2100-trunk
bash: ./configure: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ configure --prefix=/opt/warzone2100-trunk
configure: command not found
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install warzone2100-2.3.5
make: *** No rule to make target `install'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./autogen.sh
bash: ./autogen.sh: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ make-install
make-install: command not found
brandon@brandon-desktop:~/warzone2100-2.3.5$ make
make: *** No targets specified and no makefile found. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure rm -rf /opt/warzone2100-trunk
bash: ./configure: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ rm -rf /opt/warzone2100-trunk
brandon@brandon-desktop:~/warzone2100-2.3.5$
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install rm -rf /opt/warzone2100-trunk
make: /opt/warzone2100-trunk: No such file or directory
make: *** No rule to make target `/opt/warzone2100-trunk'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$
brandon@brandon-desktop:~$ sudo apt get build-dep warzone2100
[sudo] password for brandon:
Sorry, try again.
[sudo] password for brandon:
sudo: apt: command not found
brandon@brandon-desktop:~$ sudo apt-get build-dep warzone2100
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
brandon@brandon-desktop:~$ tar xfz warzone2100-2.3.5.tar.gz
tar: warzone2100-2.3.5.tar.gz: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
brandon@brandon-desktop:~$ cd warzone2100-2.3.5
bash: cd: warzone2100-2.3.5: No such file or directory
brandon@brandon-desktop:~$ mkdir warzone2100-2.3.5
brandon@brandon-desktop:~$ cd warzone2100-2.3.5
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install
make: *** No rule to make target `install'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure --prefix=/opt/warzone2100-trunk
bash: ./configure: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ configure --prefix=/opt/warzone2100-trunk
configure: command not found
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install warzone2100-2.3.5
make: *** No rule to make target `install'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./autogen.sh
bash: ./autogen.sh: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ make-install
make-install: command not found
brandon@brandon-desktop:~/warzone2100-2.3.5$ make
make: *** No targets specified and no makefile found. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure rm -rf /opt/warzone2100-trunk
bash: ./configure: No such file or directory
brandon@brandon-desktop:~/warzone2100-2.3.5$ rm -rf /opt/warzone2100-trunk
brandon@brandon-desktop:~/warzone2100-2.3.5$
brandon@brandon-desktop:~/warzone2100-2.3.5$ make install rm -rf /opt/warzone2100-trunk
make: /opt/warzone2100-trunk: No such file or directory
make: *** No rule to make target `/opt/warzone2100-trunk'. Stop.
brandon@brandon-desktop:~/warzone2100-2.3.5$
Re: Help with Ubuntu
This is already a nonsense. Where did you get a directory of the same name?? This should be an archive you downloaded.$ tar xfz warzone2100-2.3.5.tar.gz
tar: warzone2100-2.3.5.tar.gz: Cannot read: Is a directory
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: Help with Ubuntu
Like Hao said, you didn't extract the file properly.
Where did you download the archive to?
Subsequently to the failed extraction, you created a directory and tried a bunch of commands (in an empty directory).
Where did you download the archive to?
Subsequently to the failed extraction, you created a directory and tried a bunch of commands (in an empty directory).
Be careful about using "rm -rf".Babby455 wrote:brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure rm -rf /opt/warzone2100-trunk
Re: Help with Ubuntu
Hi babby455. This is a old code that I found here and that I have modified since. I guess I can repeat it.
Install.sh :
But something is going wrong with this code I can't figure what... The last three commands don't work well for me (autogen.sh,configure and make). I had to do them manually each time (can someone fix this small bug ?)
Install.sh :
Code: Select all
echo creating ~/warzone_2.3.5
cd ~
mkdir warzone_2.3.5
cd warzone_2.3.5
echo installing libs
sudo apt-get install subversion build-essential automake flex bison \
libpopt-dev libpng12-dev libsdl1.2-dev libsdl-net1.2-dev \
libopenal-dev libphysfs-dev libvorbis-dev libtheora-dev libglc-dev \
libsqlite3-dev libglc-dev
echo downloading trunk
#svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk .
svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3
echo "autogen&&configure"
./autogen.sh
./configure
echo running make
make
echo you can run "make install" right now to install the game globally on the computer. But you can (recommanded) run the game right now at ~/warzone_2.3.5/src/warzone2100
Heretic 2.3 improver and proud of it.
Re: Help with Ubuntu
Iluvalar wrote: But something is going wrong with this code I can't figure what... The last three commands don't work well for me (autogen.sh,configure and make). I had to do them manually each time (can someone fix this small bug ?)
the older version of the install script from http://developer.wz2100.net/wiki/LinuxC ... version=38
Code: Select all
#!/bin/bash
echo creating ~/warzone
cd ~
mkdir warzone
cd warzone
echo installing libs
sudo apt-get install subversion build-essential automake flex bison \
libpopt-dev libpng12-dev libsdl1.2-dev libsdl-net1.2-dev \
libopenal-dev libphysfs-dev libvorbis-dev libtheora-dev libglc-dev \
libsqlite3-dev libglc-dev
echo downloading trunk
svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk .
echo "autogen&&configure"
./autogen.sh
./configure
echo running make
make
echo DONE!
echo run the following command for a system-wide install:
echo sudo make install
Code: Select all
svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3
Code: Select all
svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3 .
Re: Help with Ubuntu
This will change now that we are on gitorious right ?
Heretic 2.3 improver and proud of it.
Re: Help with Ubuntu
Yes The repo is at github url = git://github.com/Warzone2100/warzone2100.git
I think That is the correct one now
I think That is the correct one now
Re: Help with Ubuntu
Yeah but if what cybersphinx say is right we won't be able to do this very long with svn. We'll have to change that installation guide...
Heretic 2.3 improver and proud of it.
Re: Help with Ubuntu
Watch where you put the 'f' option for tar. It means file, so tar was told to extract the file named z.Babby455 wrote:$ tar xfz warzone2100-2.3.5.tar.gz
Or the file z from the archive warzone2100-2.3.5.tar.gz or something silly like that.
Re: Help with Ubuntu
This is simply wrong. The order of the options does not matter.skellr wrote:Watch where you put the 'f' option for tar. It means file, so tar was told to extract the file named z.Babby455 wrote:$ tar xfz warzone2100-2.3.5.tar.gz
Or the file z from the archive warzone2100-2.3.5.tar.gz or something silly like that.
The original poster was having problems because he was not in the directory he thought he was.
Re: Help with Ubuntu
I'm not sure about the simply part as they put most of the documentaion into info pages.stiv wrote:
This is simply wrong. The order of the options does not matter.
The original poster was having problems because he was not in the directory he thought he was.
You are right. It doesn't matter with the old style options.This old way of writing `tar' options can surprise even experienced
users. For example, the two commands:
tar cfz archive.tar.gz file
tar -cfz archive.tar.gz file
are quite different. The first example uses `archive.tar.gz' as the
value for option `f' and recognizes the option `z'. The second
example, however, uses `z' as the value for option `f' -- probably not
what was intended.