Linux Server Executable Syntax Error
#1

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.
Reply
#2

https://sampwiki.blast.hk/wiki/Linux_Ser...ng_your_server
Reply
#3

nohup ./samp02Xsvr &

Assuming you have the permissions set up correctly.
Reply
#4

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.
Reply
#5

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.
Reply
#6

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

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
Reply
#8

Код:
******@*****:/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
Reply
#9

anyone has idea about this?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)