EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory
From: Valentyn Stadnytskyi via Tech-talk <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Sun, 17 Nov 2019 21:40:28 -0600
Thank you Mark!

On a similar note:
If one does everything according to these instructions from https://epics-controls.org/resources-and-support/documents/getting-started/
mkdir -p $HOME/EPICS/TEST/testIoc
cd $HOME/EPICS/TEST/testIoc
makeBaseApp.pl -t example testIoc
makeBaseApp.pl -i -t example testIoc
make
cd iocBoot/ioctestIoc
chmod u+x st.cmd
You get a st.cmd file with curly brackets instead of parenthesis for {TOP} and {IOC}. I don’t know where this is generated and where to report the bug. See the file below. This is minor but for someone who does it for the first time and never seen EPICS shell but be a big slowdown.

~/EPICS/IOCs/testIoc/iocBoot/ioctestIoc$ more st.cmd
#!../../bin/linux-x86_64/testIoc

#- You may have to change testIoc to something else
#- everywhere it appears in this file

< envPaths

cd "${TOP}"

## Register all support components
dbLoadDatabase "dbd/testIoc.dbd"
testIoc_registerRecordDeviceDriver pdbbase

## Load record instances
dbLoadTemplate "db/user.substitutions"
dbLoadRecords "db/testIocVersion.db", "user=femtoland"
dbLoadRecords "db/dbSubExample.db", "user=femtoland"

#- Set this to see messages from mySub
#var mySubDebug 1

#- Run this to trace the stages of iocInit
#traceIocInit

cd "${TOP}/iocBoot/${IOC}"
iocInit

## Start any sequence programs
#seq sncExample, "user=femtoland"
-----------------------------------
Valentyn Stadnytskyi





On Nov 17, 2019, at 9:27 PM, Mark Rivers <[email protected]> wrote:

I helped Valentyn fix this today. It was a simple problem with testIoc vs testIOC. Changing the case fixed it.

Mark

Sent from my iPhone

On Nov 17, 2019, at 9:17 PM, Michael Davidsaver via Tech-talk <[email protected]> wrote:

On 11/17/19 12:06 PM, Valentyn Stadnytskyi via Tech-talk wrote:
:~/EPICS/epics-base/test/testIoc/iocBoot/ioctestIoc$ ./st.cmd
-bash: ./st.cmd: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory

What happens if you instead run the following from the same directory?

$ ../../bin/linux-x86_64/testIOC st.cmd


Replies:
RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
References:
../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Valentyn Stadnytskyi via Tech-talk
Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Michael Davidsaver via Tech-talk
Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Next: RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Next: RE: ../../bin/linux-x86_64/testIOC: bad interpreter: No such file or directory Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 18 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·