Page 1 of 1

in mode r: No such file or directory

Posted: 05 Mar 2012, 02:23
by Zeus
Dear all,

I have just installed Elegant and I can’t run the examples. I get the following message when I try any example:

Code: Select all

This is elegant 25.0.2, Mar  1 2012, by M. Borland, W. Guo, V. Sajaev, Y. Wang, Y. Wu, and A. Xiao.
Link date: Mar  1 2012 10:13:49
 in mode r: No such file or directory
ensure the RPN_DEFNS environment variable is set
I have installed elegant-25.0.2-1.x86_64.rpm and SDDSEpicsToolKit-2.9-1.x86_64.rpm in an openSUSE 11.2. I think the environment variable RPN_DEFNS is well defined in my “.bashrc” file:

Code: Select all

export RPN_DEFNS=~/.defns.rpn
Did something similar happen to somebody? Can you help me with that?

Many thanks,

Zeus

Re: in mode r: No such file or directory

Posted: 05 Mar 2012, 10:10
by soliday
Can you run:
ls -l $RPN_DEFNS
and verify that the file exists. If not, you can download it from:
http://www.aps.anl.gov/Accelerator_Syst ... =defns.rpn

Re: in mode r: No such file or directory

Posted: 05 Mar 2012, 10:16
by ywang25
You can also try

elegant -rpnDefns=<filename>

in the command line.

Yusong

Re: in mode r: No such file or directory

Posted: 06 Mar 2012, 01:12
by Zeus
Yusong and soliday, thanks for your fast answer,

Doing “ls” of the environment variable does not find the file. Yusong suggestion worked, however we finally solved the problem by redoing from scratch the ".batchrc" file. Maybe, editing it from windows had been the problem... I’m sorry, I’m just a “from time to time” Linux user.

Cheers,

Zeus.