about elegantRingAnalysis install

Moderators: cyao, soliday

Post Reply
shancai
Posts: 25
Joined: 07 Jul 2008, 20:12

about elegantRingAnalysis install

Post by shancai » 14 Jul 2008, 20:46

I use fedora 8 and follow the linux install guide. I install the elegant-19.0-1.i386.rpm and SDDSToolKit-2.4-1.f8.i386.rpm and defns.rpn. After installation, The script version elegant is used correctly. But elegantRingAnalysis cannot be run .at first it tell me oagwish is not found. so I use "ln -s wish oagwish" to fix it. then error as follow:
"Error in startup script: can't read "env(HOST_ARCH)": no such variable
while executing
"linsert $auto_path 0 /usr/local/oag/apps/lib/$env(HOST_ARCH)"
invoked from within
"set auto_path [linsert $auto_path 0 /usr/local/oag/apps/lib/$env(HOST_ARCH)]"
(file "/usr/bin/elegantRingAnalysis" line 82)"
so I in the .bashrc file define as follow:
"export HOST_ARCH=linux-x86
export EPICS_HOST_ARCH=linux-x86
export RPN_DEFNS=~/.defns.rpn"
now the error as follow:
"Error in startup script: invalid command name "APSDebugPath"
while executing
"APSDebugPath"
(file "/usr/bin/elegantRingAnalysis" line 84)"

How to resolve it? Thanks a lot!

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: about elegantRingAnalysis install

Post by michael_borland » 15 Jul 2008, 07:58

You need to define the HOST_ARCH environment variable. This can be done in your .bashrc or .cshrc, depending on which shell you use (bash or csh).

For example, in your .cshrc, you would add
setenv HOST_ARCH linux-x86

In your .bashrc, you would add
export HOST_ARCH=linux-x86

If you have a 64-bit machine, you would use linux-x86_64.

If in doubt, look in /usr/local/oag/apps/lib and see what subdirectories are there.

--Michael

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: about elegantRingAnalysis install

Post by michael_borland » 15 Jul 2008, 20:20

Sorry, I didn't read your entire message.

Can you look in /usr/local/oag/apps/lib/linux-x86 and see if there is a file APSDebugPath.tcl? If not, try reinstalling the OAGTclTk rpm.
http://www.aps.anl.gov/Accelerator_Syst ... html#TclTk

--Michael

Post Reply