Page 1 of 2
sof on 32bit mx19
Posted: Fri Oct 08, 2021 3:29 pm
by in2media
hi im trying to play soldier of fortune, yes i know its an old game but i like it and so do my grandsons so i want it back. anyway im running mx19 32bit as i couldnt figure how to run it on my 64bit system. i tried sh setup.sh as it says in the sof manual but get the following errors.
$ cd sof
john@mx:~/Desktop/sof
$ sh setup.sh
setup.sh: 9: setup.sh: function: not found
x86
john@mx:~/Desktop/sof
$ setup.sh
bash: setup.sh: command not found
john@mx:~/Desktop/sof
$ sudo sh setup.sh
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for john:
setup.sh: 9: setup.sh: function: not found
x86
..
any help appreciated
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 3:53 pm
by SwampRabbit
can you try
key being
./
Also make sure the file is executable, Right-Click it ? Properties > Permissions > Allow this file to run as a program
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:01 pm
by in2media
john@mx:~
$ ./script-name.sh
bash: ./script-name.sh: No such file or directory
john@mx:~
$ ./script-sof.sh
bash: ./script-sof.sh: No such file or directory
john@mx:~
wasnt sure if you meant name or name of game etc.
all permissions granted
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:04 pm
by Huckleberry Finn
Just try
bash
Meanwhile, with script-name.sh
@SwampRabbit meant that setup.sh :
Don't forget that you need to
be in that directory, like you did before:
john@mx:
~/Desktop/sof
Otherwise it won't be able to find it normally "No such file or directory" ... (Or you need to type the full path ...)
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:30 pm
by in2media
Huckleberry Finn wrote: Fri Oct 08, 2021 4:04 pm
Just try
bash
gives no permission to write to user/local/games
checked permissions but cant change them, says owned by root
Meanwhile, with script-name.sh @SwampRabbit meant that setup.sh :
gives function not found
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:36 pm
by Huckleberry Finn
First
(or
sudo su )
then
bash setup.sh
(Again, when you're within that folder in terminal: ~/Desktop/sof )
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:48 pm
by in2media
i forgot bout the su command, sorry bout that.
says unable to find bin/x86/sof but it is in the sof folder.
but its installed the base install
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:51 pm
by Huckleberry Finn
No, nothing to be sorry, we first tried as normal user, then after it refused to do it (for permissions) we tried as root (you didn't forget or skip that ) :)
Re: sof on 32bit mx19
Posted: Fri Oct 08, 2021 4:55 pm
by in2media
yea i forgot permissions il admit. ive only spent 2 weeks on this game for kiddies.
i just couldnt get my head around it
Re: sof on 32bit mx19
Posted: Sun Oct 10, 2021 8:37 am
by Huckleberry Finn
If it's exactly : "unable to find bin/x86/sof " then it's true, cause it needs to be /bin/sof (it really can't find "bin" within that directory or anywhere else) (if there's not a specific folder in sof, like this: ~/Desktop/sof/bin/x86/sof )
So, just open the script with text editor, search (generally Ctrl + F ) for bin/sof then correct them putting a / in front, save, close (maybe re-install)
If the main issue is solved, you can mark the thread like this: