Hi Jinsu,
>> I successd make a IOC in a Linux OS before
>>
>> But when i trying to build a IOC in window OS
>> It failed with this can't understand instruction words
>>
>> Could you tell me the reason?
>> ♧ljh@JaehyungLee /usr/local/epics/test/iocBoot/io♧ctest
>> ♧$ ./st.cmd
>>
>> ♧C:\cygwin\usr\local\epics\test\iocBoot\ioctest>
>> ♧#!../../bin/cygwin-x86/test
>> ♧'#!..'▒▒(▒▒) ▒▒▒▒ ▒Ǵ▒ ▒ܺ▒ ▒▒▒, ▒▒▒▒♧▒▒ ▒▒ ▒ִ▒ ▒▒▒α▒, ▒Ǵ▒
>> ♧▒▒ġ ▒▒▒▒▒▒ ▒ƴմϴ▒.
>>
>> ♧C:\cygwin\usr\local\epics\test\iocBoot\ioctest>#♧# You may have to change test to something else
>> ♧'##'▒▒(▒▒) ▒▒▒▒ ▒Ǵ▒ ▒ܺ▒ ▒▒▒, ▒▒▒▒♧▒▒ ▒▒ ▒ִ▒ ▒▒▒α▒, ▒Ǵ▒
>> ♧▒▒ġ ▒▒▒▒▒▒ ▒ƴմϴ▒.
>>
>> ♧C:\cygwin\usr\local\epics\test\iocBoot\ioctest>#♧# everywhere it appears in this file
>> '♧##'▒▒(▒▒) ▒▒▒▒ ▒Ǵ▒ ▒ܺ▒ ▒▒▒, ▒▒▒▒♧▒▒ ▒▒ ▒ִ▒ ▒▒▒α▒, ▒Ǵ▒
>> ♧▒▒ġ ▒▒▒▒▒▒ ▒ƴմϴ▒.
>> ♧▒▒▒ ▒▒▒▒▒▒ ▒ùٸ▒▒▒ ▒ʽ▒▒ϴ▒.
>> ♧C:\cygwin\usr\local\epics\test\iocBoot\ioctest>< ♧envPaths
It looks like your attempt to start the IOC is actually running the
st.cmd script using the Windows shell instead of running the IOC binary.
Windows does not understand the Unix #! line at the beginning of a
script file, although Cygwin's Bash interpreter does. Unfortunately you
are building your IOC as a Cygwin target but not using Bash as your
shell, so one simple way to solve your problem might be to start the IOC
inside a Cygwin terminal window, or to run 'bash' from the Windows
command-line. You also have to configure your PATH variable, which you
can do by sourcing the relPaths.sh file that should have been created in
your ioctest directory:
$ . relPaths.sh
$ ./st.cmd
If you want to start the IOC from the regular Windows Command shell you
have to give the name of the IOC executable as well as the startup
script filename. Your PATH variable also needs to be set properly, but
you can ask the EPICS build system to generate a batch file
(dllPath.bat) that does all that for you like the relPaths.sh file I
mentioned above which is for the Cygwin shell. Edit your
iocBoot/ioctest/Makefile and change the TARGETS = line to this:
TARGETS = envPaths dllPath.bat
Then run 'make' in the ioctest directory, which will cause the file
dllPath.bat to be created. Running that batch file will append the
necessary directories to your PATH, and then you can start the IOC:
C:\cygwin\usr\local\epics\test\iocBoot\ioctest> dllPath.bat
C:\cygwin\usr\local\epics\test\iocBoot\ioctest> test st.cmd
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
- References:
- Error to doing ./st.cmd 장진수
- RE: Error to doing ./st.cmd Mark Rivers
- Navigate by Date:
- Prev:
Any EPICS Support for EcoGamma-g Gamma Detector or FHT 762 Wendi-2 Neutron Detector ? Jacob Paul DeFilippis
- Next:
Re: Multiple NDPluginPva issues Bruno Martins
- 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
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Error to doing ./st.cmd Mark Rivers
- Next:
Vacant Position - Head of Controls & Computing - Australian Synchrotron (ANSTO) Genevieve Lobo
- 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
2019
2020
2021
2022
2023
2024
|