From mirko.vukovic at gmail.com Fri Sep 9 14:30:03 2016 From: mirko.vukovic at gmail.com (Mirko Vukovic) Date: Fri, 09 Sep 2016 14:30:03 +0000 Subject: ABCL startup script gives exec error in slime, but not on command line Message-ID: Hello, I am trying to get ABCL running under Slime on Linux (RHEL6). I already have it running on Windows 10. I wrote the following script (abcl.sh) to launch it: java \ -cp /usr/local/share/java/abcl.jar \ org.armedbear.lisp.Main The script resides in /usr/local/bin, and it successfully launches ABCL from the command line of system-administrator (who installs the software) and other users. However, in Emacs/slime (latest), I get emacs: /usr/local/bin/abcl.sh: Exec format error Process inferior-lisp exited abnormally with code 126 The definition of abcl resides in local-lisp-implementations: ((abcl ("/usr/local/bin/abcl.sh")) (sbcl ("/usr/local/bin/sbcl"))) Actually there is a symbolic link involved: abcl.sh resides in sys-admins directory, and /usr/local/bin/abcl.sh is a symbolic link to it. I did try pointing to the script itself, both from command line of users and from Emacs. The behavior was the same. To summarize: - a script launches ABCL from command line - Emacs gives an Exec format error - I did test for symbolic link effects and found none Thoughts? Thanks, Mirko -------------- next part -------------- An HTML attachment was scrubbed... URL: From mirko.vukovic at gmail.com Fri Sep 9 14:52:15 2016 From: mirko.vukovic at gmail.com (Mirko Vukovic) Date: Fri, 09 Sep 2016 14:52:15 +0000 Subject: ABCL startup script gives exec error in slime, but not on command line In-Reply-To: References: Message-ID: Never mind, I received a friendly reminder that I should have put #!/bin/sh at the top of the file. Sorry for the noise Mirko On Fri, Sep 9, 2016 at 10:30 AM Mirko Vukovic wrote: > Hello, > > I am trying to get ABCL running under Slime on Linux (RHEL6). I already > have it running > on Windows 10. > > I wrote the following script (abcl.sh) to launch it: > java \ > -cp /usr/local/share/java/abcl.jar \ > org.armedbear.lisp.Main > > The script resides in /usr/local/bin, and it successfully launches ABCL > from the command line of > system-administrator (who installs the software) and other users. > > However, in Emacs/slime (latest), I get > > emacs: /usr/local/bin/abcl.sh: Exec format error > > Process inferior-lisp exited abnormally with code 126 > > The definition of abcl resides in local-lisp-implementations: > ((abcl ("/usr/local/bin/abcl.sh")) (sbcl ("/usr/local/bin/sbcl"))) > > Actually there is a symbolic link involved: abcl.sh resides in sys-admins > directory, and > /usr/local/bin/abcl.sh is a symbolic link to it. I did try pointing to > the script itself, both > from command line of users and from Emacs. The behavior was the same. > > To summarize: > - a script launches ABCL from command line > - Emacs gives an Exec format error > - I did test for symbolic link effects and found none > > Thoughts? > > Thanks, > > Mirko > > -------------- next part -------------- An HTML attachment was scrubbed... URL: