Help with Ubuntu

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Babby455
New user
Posts: 1
Joined: 22 Nov 2010, 05:06

Help with Ubuntu

Post by Babby455 »

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$
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Help with Ubuntu

Post by NoQ »

$ tar xfz warzone2100-2.3.5.tar.gz
tar: warzone2100-2.3.5.tar.gz: Cannot read: Is a directory
This is already a nonsense. Where did you get a directory of the same name?? This should be an archive you downloaded.
Safety0ff
Trained
Trained
Posts: 397
Joined: 18 Jul 2009, 23:23

Re: Help with Ubuntu

Post by Safety0ff »

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).
Babby455 wrote:brandon@brandon-desktop:~/warzone2100-2.3.5$ ./configure rm -rf /opt/warzone2100-trunk
Be careful about using "rm -rf".
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: Help with Ubuntu

Post by Iluvalar »

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 :

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
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 ?)
Heretic 2.3 improver and proud of it.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Help with Ubuntu

Post by Berg »

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
In the post above you have

Code: Select all

svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3
it looks like your missing . from it

Code: Select all

svn co https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3 . 
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: Help with Ubuntu

Post by Iluvalar »

This will change now that we are on gitorious right ?
Heretic 2.3 improver and proud of it.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Help with Ubuntu

Post by Berg »

Yes The repo is at github url = git://github.com/Warzone2100/warzone2100.git
I think That is the correct one now
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: Help with Ubuntu

Post by Iluvalar »

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.
User avatar
skellr
Trained
Trained
Posts: 72
Joined: 17 Aug 2007, 15:58

Re: Help with Ubuntu

Post by skellr »

Babby455 wrote:$ tar xfz warzone2100-2.3.5.tar.gz
Watch where you put the 'f' option for tar. It means file, so tar was told to extract the file named z.

Or the file z from the archive warzone2100-2.3.5.tar.gz or something silly like that. :|
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Help with Ubuntu

Post by stiv »

skellr wrote:
Babby455 wrote:$ tar xfz warzone2100-2.3.5.tar.gz
Watch where you put the 'f' option for tar. It means file, so tar was told to extract the file named z.

Or the file z from the archive warzone2100-2.3.5.tar.gz or something silly like that.
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.
User avatar
skellr
Trained
Trained
Posts: 72
Joined: 17 Aug 2007, 15:58

Re: Help with Ubuntu

Post by skellr »

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.
I'm not sure about the simply part as they put most of the documentaion into info pages. :P

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.
You are right. It doesn't matter with the old style options.
Post Reply