Page 1 of 1

genetic optimizer installation without sudo

Posted: 02 Feb 2020, 21:14
by Ingyo_Jeong
Hi, all.

I'm studying the designing storage ring, especially optimize DA with the mogaRing example.

But when I executed the "geneticOptimizer", I encountered following error.

* Error: When I ran the mogaRing example, I encountered following error
message;
-------------------------------------------------------------------------------------------
[a1095a01@login02 mogaRing]$ geneticOptimizer -input optim1.sdds -reduce 1
invalid command name "sdds"
while executing
"LoadAndCheckInputFile"
(file "/home01/a1095a01/oag/rpm/usr/bin/geneticOptimizer" line 789)
-------------------------------------------------------------------------------------------

* Suspect:

I'm not the root of the cluster and cannot get permission to use sudo command, so I install the SDDS, elegant, and OAGTcltk with the command, "rpm2cpio ~.rpm |cpio -idv."

SDDS and elegant are installed without any problem and running very well.

But when I install OAGTcltk, I encountered following error;

-------------------------------------------------------------------------------------------
/usr/bin/maintainReadback
cpio: /usr/bin/tclsh: Cannot symlink to
`/home01/a1095a01/oag/rpm/usr/bin/oagtclsh': Permission denied
/usr/bin/oagtclsh
cpio: /usr/bin/wish: Cannot symlink to
`/home01/a1095a01/oag/rpm/usr/bin/oagwish': Permission denied
-------------------------------------------------------------------------------------------

Without root I could not make symlink of "/usr/bin/tclsh" and "/usr/bin/wish".
So I just copy the "tclsh" and "wish" to /home01/a1095a01/oag/rpm/usr/bin and rename those files as 'oagtclsh' and 'oagwish'.

Then I encountered above error; "invalid command name "sdds""

To solve this problem, would you give me any advice?

Thank you for your reading!

Sincerely,

Ingyo Jeong

Re: genetic optimizer installation without sudo

Posted: 03 Feb 2020, 11:16
by soliday
I think you are going to have to force it to load the libtclSDDS.so file. Try editing geneticOptimizer right after the APSStandardSetup line and add:
load /home01/a1095a01/oag/rpm/usr/lib/sdds/libtclSDDS.so

Re: genetic optimizer installation without sudo

Posted: 04 Feb 2020, 09:38
by Ingyo_Jeong
As you said, I add the new line which loads the library, and then geneticOptimizer works very well.

Thank you!

Sincerely,

Ingyo Jeong