Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : DROD Architect's Edition - Linux install "syntax error"
New Topic New Poll Post Reply
Poster Message
hitbyambulance
Level: Goblin
Rank Points: 16
Registered: 01-12-2022
IP: Logged
icon DROD Architect's Edition - Linux install "syntax error" (+4)  
Searched the forums and didn't find the following symptom anywhere:

Trying to install DROD AE on Linux (Ubuntu 20.04). Note that a tonne of 32 bit libraries have been installed previously.

$ ./CDROD-1.6.6-setup.sh.bin
Verifying archive integrity... All good.
Uncompressing Deadly Rooms Of Death 1.6.6: Architects' Edition.......................................................................................................................................................................................................
./install.sh: 16: Syntax error: "(" unexpected


Here's the end of the debug output:
...
+ MS_Printf .
+ printf .
.+ read a
+ test xy = xy
+ PATH=/usr/xpg4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ cd /tmp/selfgz709937
++ id -u
+ chown -R 1001 .
++ id -g
+ chgrp -R 1001 .
++ expr 8512 + 13576297
+ offset=13584809
+ echo

+ cd /tmp/selfgz709937
+ res=0
+ test x./install.sh '!=' x
+ test xn = xy
+ eval ./install.sh
++ ./install.sh
./install.sh: 16: Syntax error: "(" unexpected
+ res=2
+ test 2 -ne 0
+ test xn = xy
+ test n = n
+ cd /tmp
+ /bin/rm -rf /tmp/selfgz709937
+ eval true
++ true
+ exit 2






01-12-2022 at 02:13 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Tuttle
Level: Smitemaster
Avatar
Rank Points: 1545
Registered: 02-22-2003
IP: Logged
icon Re: DROD Architect's Edition - Linux install "syntax error" (+3)  
Have you tried AE 1.6.7 from http://forum.caravelgames.com/downloads.php ? That may work better.

As for 1.6.6, the problem is with the install.sh file:
01  #!/bin/sh
02  # DROD install script, by Gerry JJ  <trick@icculus.org>
...
15  # Libraries
16  LIBS=(dummy libgcc_s.so.1 libstdc++.so.5 libfmod-3.73.so libexpat.so.0 \
          libfreetype.so.6 libSDL_ttf-2.0.so.0 libSDL-1.2.so.0)

The syntax on line 16 isn't valid 'sh' syntax. On distros where 'sh' is mapped to 'bash', it works fine. But the default for Ubuntu is 'dash', which keeps to the 'sh' syntax more closely:

sh
$ TEST=(a b c)
sh: 1: Syntax error: "(" unexpected

dash
$ TEST=(a b c)
dash: 1: Syntax error: "(" unexpected

bash
$ TEST=(a b c)
$

So your options if you want to install 1.6.6 are probably to either change what 'sh' refers to temporarily, to edit install.sh (and any other shell scripts) to replace the first line with /bin/bash explicitly, or to edit the scripts and make them actually sh-compatible.
01-13-2022 at 10:54 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores Quote Reply
hitbyambulance
Level: Goblin
Rank Points: 16
Registered: 01-12-2022
IP: Logged
icon Re: DROD Architect's Edition - Linux install "syntax error" (+2)  
AE 1.6.7 does install fine. but stupid question - how to execute it? i made 'drod-ae' executable and i get this:

$ ./drod-ae
./drod-ae: 16: /home/dust/drod-ae/drod-ae.bin: not found

01-21-2022 at 02:02 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Tuttle
Level: Smitemaster
Avatar
Rank Points: 1545
Registered: 02-22-2003
IP: Logged
icon Re: DROD Architect's Edition - Linux install "syntax error" (+2)  
Did you also make drod-ae.bin executable?

I'm not really in a spot to poke at this right now, but looking through the initial setup bundle, there's a setup.data/setup.xml file that marks both drod-ae and drod-ae.bin as mode 755.
01-23-2022 at 01:31 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : DROD Architect's Edition - Linux install "syntax error"
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.