in mode r: No such file or directory

Moderators: cyao, soliday

Post Reply
Zeus
Posts: 8
Joined: 02 Mar 2012, 10:35

in mode r: No such file or directory

Post by Zeus » 05 Mar 2012, 02:23

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

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: in mode r: No such file or directory

Post by soliday » 05 Mar 2012, 10:10

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

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: in mode r: No such file or directory

Post by ywang25 » 05 Mar 2012, 10:16

You can also try

elegant -rpnDefns=<filename>

in the command line.

Yusong

Zeus
Posts: 8
Joined: 02 Mar 2012, 10:35

Re: in mode r: No such file or directory

Post by Zeus » 06 Mar 2012, 01:12

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.

Post Reply