I'm a beginner in elegant/sdds and I'm trying to install the linux RPM version of the OAG tcl/tk package. The package version is
OAGTclTk-8.4.13-6
and my operating system is
Linux version 2.6.32-44-generic, Ubuntu 10.04.4 LTS \n \l
I'm testing the installation with the plotTwiss script.
In order for tclsh not to enter in interactive mode when I call plotTwiss, I had to change the content of oagtclsh
from
- /usr/bin/tclsh
- /usr/bin/tclsh "$@"
- exec oagtclsh "$0" "$@"
- exec tclsh "$0" "$@"
After this, plotTwiss set the variable auto_path to include the address of the oagtcltk libraries:
Code: Select all
if [info exists env(OAG_TOP_DIR)] {
set auto_path [linsert $auto_path 0 $env(OAG_TOP_DIR)/oag/apps/lib/$env(HOST_ARCH)]
} else {
set auto_path [linsert $auto_path 0 /usr/local/oag/apps/lib/$env(HOST_ARCH)]
}
- /usr/local/oag/apps/lib/linux-x86_64 /usr/share/tcltk/tcl8.5 /usr/lib /usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk
Code: Select all
invalid command name "APSStandardSetup"
while executing
"APSStandardSetup"
(file "/usr/local/oag/apps/src/tcltkapp/oagapp/plotTwiss" line 73)
Code: Select all
if [info exists env(OAG_TOP_DIR)] {
set auto_path [linsert $auto_path 0 $env(OAG_TOP_DIR)/oag/apps/lib/$env(HOST_ARCH)]
} else {
set auto_path [linsert $auto_path 0 /usr/lib/oagtcltk]
}
Code: Select all
invalid command name "APSStandardSetup"
while executing
"APSStandardSetup"
(file "/usr/local/oag/apps/src/tcltkapp/oagapp/averageOverElements" line 24)
Although one solution seems to be making the same alterations to all scripts, I don't understand the reason of this misinterpretation of the original code. Both problems (oagtclsh and auto_path setting) seem to rely on how tclsh interprets files which redirect to other files/programs/folders. I tried to run the scripts with tclsh8.4 and tclsh8.5.
Thank you very much for your attention,
Fernando.