Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install script won't run
salass00 Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2009
Reputation: 0
#1
Solved: 9 Years, 11 Months ago Install script won't run

I just downloaded the Linux version of AMFP from GamersGate (I preordered it) but I can't get the install script to work.

I extracted the rar archive:
$ unrar e ~/Downloads/AmnesiaAMFP-1.0.0-Linux.rar

Added execute permissions to the sh script as they were missing:
$ chmod 755 AmnesiaAMFP-1.0.0.sh

But when I try to run it I get:
$ sudo ./AmnesiaAMFP-1.0.0.sh
/bin/sh: 0: Can't open ./AmnesiaAMFP-1.0.0.sh

md5sums of archive and script:
$ md5sum ~/Downloads/AmnesiaAMFP-1.0.0-Linux.rar ./AmnesiaAMFP-1.0.0.sh
5f5a9c5e7d0637166f0b8b9d1f72377c /home/salass00/Downloads/AmnesiaAMFP-1.0.0-Linux.rar
bc92782fafc84475dff306906184e060 ./AmnesiaAMFP-1.0.0.sh

I'm using Ubuntu 12.04 LTS BTW.

Found a solution using google:
http://mavroudisv.eu/blog/2013/04/17/sh-...nd-ubuntu/

If I type "sudo bash ./AmnesiaAMFP-1.0.0.sh" the install script runs correctly.

I've never had this problem running sh scripts before though...
(This post was last modified: 09-10-2013, 10:38 AM by salass00.)
09-10-2013, 10:20 AM
Find
Akasu Offline
Member

Posts: 62
Threads: 6
Joined: Aug 2010
Reputation: 2
#2
Solved: 9 Years, 11 Months ago RE: Install script won't run

had the same problem. thanks for posting the solution Smile

09-10-2013, 06:14 PM
Find
Overand Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2013
Reputation: 0
#3
Solved: 9 Years, 11 Months ago RE: Install script won't run

(SOLVED!: Edited with solution)

Well, I couldn't get it to work, even with the hints above. I'm on Arch Linux, 64-bit (fully up to date as of 2013-09-10). I got the game via the Humble store, which delivered me a .sh file (I chose via torrent).

My MD5Sum matches yours:

bc92782fafc84475dff306906184e060  AmnesiaAMFP-1.0.0.sh

But - I get a different error:


[overand@zaphod machineforpigs]$ sudo bash ./AmnesiaAMFP-1.0.0.sh
Verifying archive integrity... All good.
Uncompressing Mojo Setup..............
./AmnesiaAMFP-1.0.0.sh: line 372: ./startmojo.sh: Permission denied

Incidentally, when just executing this (without sudo, but after doing chmod +x), I get the same error.

The solution? My /tmp directory was set to be non-executable. So - I did the following, which you may need to adapt of course.

[overand@zaphod machineforpigs]$ pwd
/mnt/data/games/machineforpigs
[overand@zaphod machineforpigs]$ mkdir thetmpdir
[overand@zaphod machineforpigs]$ export TMPDIR=/mnt/data/games/machineforpigs/thetmpdir; bash AmnesiaAMFP-1.0.0.sh
(This post was last modified: 09-11-2013, 03:22 AM by Overand.)
09-11-2013, 03:08 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#4
Solved: 9 Years, 11 Months ago RE: Install script won't run

you can also use
./AmesiaAMFP-1.0.0.sh --target /mnt/data/games/machineforpigs/thetmpdir/

I'll be tweaking the startup portion of that to stop assuming that /tmp is executable (which frankly a LOT of installers make that assumption.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-19-2013, 08:22 PM
Website Find
Overand Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2013
Reputation: 0
#5
Solved: 9 Years, 11 Months ago RE: Install script won't run

(09-19-2013, 08:22 PM)Urkle Wrote: --SNIP--
I'll be tweaking the startup portion of that to stop assuming that /tmp is executable (which frankly a LOT of installers make that assumption.

Yes, this is true - I think the /tmp set to non-executable thing is mostly a convention on servers moreso than workstations, but I'm probably not the ONLY person out there with that going on, heh. I would have figured it out quicker if the error had been a bit more verbose (such as including the full path of where it was failing to run).
(This post was last modified: 09-19-2013, 09:06 PM by Overand.)
09-19-2013, 09:05 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#6
Solved: 9 Years, 11 Months ago RE: Install script won't run

(09-19-2013, 09:05 PM)Overand Wrote:
(09-19-2013, 08:22 PM)Urkle Wrote: --SNIP--
I'll be tweaking the startup portion of that to stop assuming that /tmp is executable (which frankly a LOT of installers make that assumption.

Yes, this is true - I think the /tmp set to non-executable thing is mostly a convention on servers moreso than workstations, but I'm probably not the ONLY person out there with that going on, heh. I would have figured it out quicker if the error had been a bit more verbose (such as including the full path of where it was failing to run).

Yeah I need to pull in more of the makeself customizations from nixstaller over. As there are checks for this in there.

Or I just make it NOT use tmp at all.. it's only extracting out 1 MB max.. as it it references the original .sh to fetch the "install.zip" that was appended to itSmile

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
(This post was last modified: 09-19-2013, 10:08 PM by Urkle.)
09-19-2013, 10:01 PM
Website Find




Users browsing this thread: 2 Guest(s)