You are not logged in.
Hi all.
Just a simple question (I think). I've installed quake3 and UT2004 demo (full version should be here tomorrow ), and they both run fine, but it involves changing to the usr/local/games/$game directory and running the launch script from there.
I tried writing a little script (first go) to change to the UT2004 directory and run ut2004-bin, but I just get an error:
/usr/local/games/ut2004demo/System/ut2004-bin: /usr/local/games/ut2004demo/System/ut2004-bin: cannot execute binary file
My question is a) why can't I just run 'quake3' or 'ut2004' from my home directory (something to do with paths?) and b) why can't I do sh /usr/local/games/ut2004demo/System/ut2004-bin instead of cd'ing to System, *then* running ut2004-bin? Grrr.
Thanks a lot all, see you on the ut2004 servers soon
Thom
Offline
When I installed ut2004 demo it defaulted to /usr/local/ut2004demo which was in my path Therefore, I could just run 'ut2004' from my /home/robot5x directory.
So you need to make sure that the directory you installed the games to is in your path
Offline
Is that the path variable you set with
[tm@home]$ path=/usr/local/games/ut2004
or something like that?
Thanks
t.
Offline
Edit your ~/.bashrc and add :/usr/local/games
If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing. 1 Corinthians 13:2
Offline
Hmm that didn't seem to work.
My .bashrc file looks like this:
alias ls='ls --color=auto'
PS1='[u@h W]$ '
path=/usr/local/games:
but it doesn't find ut2004 or quake3. If I write it as you said, and add just :/usr/local/games (without the path= ) I get an error, directory not found. If I add /usr/local/games: I get an error saying that /usr/local/games is a directory??
Any ideas??
Offline
try PATH instead of path
Mr Green
Offline
Yeah, it's PATH, not path, and you'd want to keep the rest of your path too, instead of replace it with only that directory:
export PATH=$PATH:/usr/local/games
Of course, there'd need to be the executable in that directory...
http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.
Offline
K, thanks I'll try that.
One this though - there wasn't a path section in my original .bashrc, I had to add that bit myself. What directories should be in my path? I'm running normal AL 0.6, nothin special. I guess it should be /usr/bin, /urs/local/bin etc?
Thanks.
Thom
Offline
Before your ~/.bashrc runs, a lot of other scripts have already been run and in several places directories are added to the PATH variable. The /usr/bin will already be in your path once ~/.bashrc is reached. You just need to add any custom paths you want to run stuff from, hence you put $PATH inside the string you set PATH to, that'll be replaced by whatever PATH was already set to.
Also, Arch tries not to use /usr/local. Keeps it simple.
http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.
Offline