SA-MP Forums Archive
Linux Server Executable Syntax Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Linux Server Executable Syntax Error (/showthread.php?tid=70426)



Linux Server Executable Syntax Error - kingdutch - 24.03.2009

Ok so I donwloaded the latest version of the linux server (samp02Xsvr), configured the server.cfg and tried to start "samp02Xsvr file not found".

So after long and teadious searching someone with a bit more linux knowledge than me used:

"sh samp02Xsvr"

getting:
"samp02Xsvr: 1: Syntax error: '(' unexpected"

Have you tested the executable before release? And what shell you used?

Thanks,
Kingdutch

PS. Admins can e-mail me about this if they feel the need to.


Re: Linux Server Executable Syntax Error - dugi - 24.03.2009

https://sampwiki.blast.hk/wiki/Linux_Ser...ng_your_server


Re: Linux Server Executable Syntax Error - RoBo - 25.03.2009

nohup ./samp02Xsvr &

Assuming you have the permissions set up correctly.


Re: Linux Server Executable Syntax Error - kingdutch - 25.03.2009

Sorry I didn't tell you, setting permissions is the first thing I did and checked.... and yes I've followed the Linux_Server thingy in the wiki...
I am not the b00n you see me for, thank you

Quote:

"samp02Xsvr: 1: Syntax error: '(' unexpected"

EDIT: after above 2 posts and before this post I chmodded * to 777 and tried again, goes against my security policy but ok.


Re: Linux Server Executable Syntax Error - kingdutch - 25.03.2009

Ok so just editing this post instead of double posting even though no one seems to respond anyway

In what shell is the script made? (What's the Shebang line "#! ****") ksh/sh etc? I think it's pointing to a non-existing (Atleast on my machine) shell thing.

Ok I'll fill this up with some technical info:
OS: Ubuntu 8.04.1 (Hardy)
Processor Architecture: x86_64 (64 Bit)
Shells used: 'sh', 'ksh', 'bash' none worked.


Re: Linux Server Executable Syntax Error - kingdutch - 04.04.2009

*BUMP* it's been more than a week and I still have this problem *BUMP*


Re: Linux Server Executable Syntax Error - darkrider366 - 04.04.2009

Quote:
Originally Posted by kingdutch
*BUMP* it's been more than a week and I still have this problem *BUMP*
try
./samp02Xsvr
but first you must
change directory (cd)
so
e.g
Код:
cd /home/daniel/dekstop/samp/
./samp02Xsvr
done


Re: Linux Server Executable Syntax Error - kingdutch - 04.04.2009

Код:
******@*****:/sampserver/samp02X$ ./samp02Xsvr
-bash: ./samp02Xsvr: No such file or directory
Код:
******@*****:/sampserver/samp02X$ ls -l
total 1072
-rwxr-xr-x 1 me me 10748 2008-11-15 16:40 announce
drwxr-xr-x 2 me me 4096 2008-11-16 05:31 filterscripts
drwxr-xr-x 2 me me 4096 2008-11-14 23:05 gamemodes
-rw-r--r-- 1 me me 1999 2008-11-15 16:40 LICENSE
-rw-r--r-- 1 me me 1899 2008-11-15 16:39 README
-rwxr-xr-x 1 me me 1054036 2008-11-15 17:05 samp02Xsvr
drwxr-xr-x 3 me me 4096 2008-11-14 23:05 scriptfiles
-rw-r--r-- 1 me me 220 2008-11-15 17:05 server.cfg
As you can see the perms are correct


Re: Linux Server Executable Syntax Error - Hyperion - 29.06.2009

anyone has idea about this?