Subject: Re: ImportError on startup in Fedora core 5
From: larryrmasterson
Date: Sep 27, 2006

Previous: 210

Aloha,

I had success on FC5 system by typing the following in the directory
which contains the Sparky installation (ie, /usr/local/sparky):

find . -name *.so -exec chcon -t texrel_shlib_t {} ;

This creates an exception for any shared objects in this program to
allow them to be used even though they do not follow the SELinux
access control architecture.

I hope this helps.

Kind regards,
LRM

--- In nmr_sparky@yahoogroups.com , Lee Rosa sillymouse05@... wrote:

Hi Tom,

I have the same problem with sparky installation on Fedora core 5.
Although I tried to use some commands as you suggested but still could
not get sparky to work yet. Any other suggestion would be highly
appreciated.

Thank you,

Lee

p/s: To Byoungkook Kim: Are you be able to run sparky on Fedora core 5 ?


Thomas Goddard goddard@... wrote:
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





---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.
Great rates starting at 1¢/min.