James,
Try taking that line out. MIBDIRS should be defined elsewhere. Or, make sure that it is.
Paul
On Feb 21, 2013, at 2:10 PM, James F Ross <[email protected]> wrote:
> I dont think it's an issue with the environment variable. I tried
> commenting them out and it gave the same syntax error about the
> dbLoadDatabase command.
>
> The IOC isn't getting far enough to get to the console output. Here
> is what I do after building it:
> 1. cd <TOP>/iocBoot/iocsnmp
> 2. ./st.cmd
>
> Output:
> ./st.cmd: line 7: syntax error near unexpected token `"MIBDIRS",'
> ./st.cmd: line 7: `epicsEnvSet("MIBDIRS", "+$(TOP)/mibs")'
>
> I'm running scientific linux 5.8 with epics base 3.14.12.1.
> Thanks
> James
>
>
> On Thu, Feb 21, 2013 at 2:56 PM, Eric Norum <[email protected]> wrote:
>> That's strange. Can you send all the IOC console output?
>> What IOC platform are you using?
>> I tried downloading, unpacking and building the SNMP tarball. When I run it I get:
>>
>>
>> #!../../bin/darwin-x86/wienerCrateExample
>> ###############################################################################
>> # Set up environment
>> # Need to add run-time expansion for crate support
>> epicsEnvSet("P","wienerCrate:")
>> epicsEnvSet("R","1:")
>> < envPaths
>> epicsEnvSet("ARCH","darwin-x86")
>> epicsEnvSet("IOC","iocwienerCrateExample")
>> epicsEnvSet("TOP","/Users/wenorum/src/SNMP/snmp/WienerCrate")
>> epicsEnvSet("SNMP","/Users/wenorum/src/SNMP/snmp")
>> epicsEnvSet("EPICS_BASE","/usr/local/epics/R3.14.12/base")
>> epicsEnvSet("MIBDIRS", "+/Users/wenorum/src/SNMP/snmp/WienerCrate/mibs")
>> epicsEnvSet("WCR_PREF", "admin WIENER-CRATE-MIB::")
>> ###############################################################################
>> # Register all support components
>> …….
>>
>>
>> On Feb 21, 2013, at 11:42 AM, James F Ross <[email protected]> wrote:
>>
>>> Paul,
>>>
>>> Ok, I'm starting from scratch with John's basic IOC and I'm going to
>>> write a very basic IOC just to turn the crate on and off and maybe
>>> read the voltages and currents.
>>>
>>> At the moment i'm trying to get the basic IOC to run, though, and am
>>> running into the following problem. I've emailed john but if you have
>>> any insight, that'd be nice as well:
>>>
>>> ./st.cmd
>>> ./st.cmd: line 7: syntax error near unexpected token `"MIBDIRS",'
>>> ./st.cmd: line 7: `epicsEnvSet("MIBDIRS", "+$(TOP)/mibs")'
>>>
>>> The mib file is in that directory, so I'm not sure what it is
>>> complaining about. This is written into his st.cmd file, I didn't
>>> change anything.
>>> James
>>
>> --
>> Eric Norum
>> [email protected]
>>
- References:
- asyn and snmp James F Ross
- Re: asyn and snmp Paul Nord
- Re: asyn and snmp James F Ross
- Re: asyn and snmp Eric Norum
- Re: asyn and snmp James F Ross
- Navigate by Date:
- Prev:
Re: asyn and snmp James F Ross
- Next:
Re: asyn and snmp Eric Norum
- 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: asyn and snmp James F Ross
- Next:
Re: asyn and snmp Eric Norum
- 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
|