Subject: ImportError on startup in Fedora core 5
From: Thomas Goddard
Date: Aug 30, 2006

Next: 210


Hi Byoungkook Kim,

I used Google to look up cannot restore segment prot after reloc and
found a number of articles about this. It is related to new security
features of Linux called SELinux. I dont think it means there is any
security weakness with Sparky -- perhaps I need to compile Sparky on a
system with SELinux so that the dynamic libraries conform to the new standard.

At any rate, the suggested way to fix the problem is to use the command:

chcon -t texrel_shlib_t /usr/local/sparky/python/sparky/spy.so

Try running Sparky after running that. It may be you need to run the same
command on the 3 other Sparky dynamic libraries.

chcon -t texrel_shlib_t /usr/local/sparky/python/lib-tk/_tkinter.so
chcon -t texrel_shlib_t /usr/local/sparky/lib/libtk8.4.so
chcon -t texrel_shlib_t /usr/local/sparky/lib/libtcl8.4.so

I currently do not have the Sparky 3.112 source code on the web for lack
of time. It is not simple to compile and I think the above fix is an
easier approach. If you still want to try compiling I suggest the 3.111
source code which has very few differences.

Tom

Date: Thu, 31 Aug 2006 02:50:14 +0900 (KST)
From: Byoungkook Kim protein@...
To: sparky@...
Subject: I can not run spakry in fedora core 5.

Dear sparky manager.

My name is Byoungkook Kim, and a post-doc in the Dept. of Chemistry, KAIST, Daejeon, South Korea.
Recently I have downloaded and install the sparky-linux2.6.tar.gz in /usr/local/sparky .
My Linux system is : AMD64, dual CPU, Fedora-Core 5..
Linux 2.6.17-2174_FC5 x86_64.
-----------------------------------------
# tar xzf sparky-linux2.6.tar.gz /usr/local/ -C

# ln -s /usr/local/
------------------------------------------
When executing the sparky, I got an error message ;

------------------------------------------
$ sparky
Traceback (most recent call last):
File string, line 1, in ?
File /usr/local/src/sparky/platforms/linux-2.6.9/sparky-install/python/sparky/__init__.py, line 12, in ?
ImportError: /usr/local/sparky-linux2.6/python/sparky/spy.so: cannot restore segment prot after reloc: Permission denied

-------------------------------------------
I have already search the linux-installation problem in yahoo but I cant not find the solution
about this problem.

Also I want to compile the sparky version 3.112 in my system but it is not available in the sparky home page.

I would be appreciate if you upload the sparky version 3.112 source to sparky home.

Regards

Byoungkook Kim