When trying to install eispice-0.11.6 on Fedora 10 I get the following
error message.
"error: invalid python installation:: unable to open
/usr/lib/python2.5/config/Makefile no such file or directory.
no such file or directory"
Yes, I do have Python2.5 installed on my computer. When I checked the
path I could not find a config subdirectory at the end of the
/usr/lib/python2.5/ path.
What should I do to fix this problem?
Howard
2 years 1 week ago
Hi Howard,
Try installing the Python Development Package with a:
yum -y install python-devel
Let me know how it goes,
Cheers,
Charles
Hi Charles
I followed your recommendation and now the "make" command appears to run
to completion without an error. However, when I run Python and then
"import eispice: I get the error "No module named eispice". What
advice do you have to fix this new problem.
In case it might be some help here is the output of the "make" command.
Building Module
make[1]: Entering directory `/root/Download/eispice-0.11.6'
Building Libraries...
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/log'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/log'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/data'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/data'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/netlib/blas'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/netlib/blas'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/netlib/toms'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/netlib/toms'
make[2]: Entering directory
`/root/Download/eispice-0.11.6/libs/netlib/cephes'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/root/Download/eispice-0.11.6/libs/netlib/cephes'
make[2]: Entering directory
`/root/Download/eispice-0.11.6/libs/netlib/lapack'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/root/Download/eispice-0.11.6/libs/netlib/lapack'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/superlu'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/superlu'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/calculon'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/calculon'
make[2]: Entering directory `/root/Download/eispice-0.11.6/libs/simulator'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/Download/eispice-0.11.6/libs/simulator'
make[1]: Leaving directory `/root/Download/eispice-0.11.6'
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
copying module/ibis_driver.py -> build/lib.linux-i686-2.5
copying module/calc.py -> build/lib.linux-i686-2.5
copying module/test.py -> build/lib.linux-i686-2.5
copying module/eispice.py -> build/lib.linux-i686-2.5
copying module/device.py -> build/lib.linux-i686-2.5
copying module/subckt.py -> build/lib.linux-i686-2.5
copying module/circuit.py -> build/lib.linux-i686-2.5
copying module/waveform.py -> build/lib.linux-i686-2.5
copying module/units.py -> build/lib.linux-i686-2.5
copying module/plot.py -> build/lib.linux-i686-2.5
copying module/ibis_parser.py -> build/lib.linux-i686-2.5
copying module/__init__.py -> build/lib.linux-i686-2.5
copying module/ibis_const.py -> build/lib.linux-i686-2.5
copying module/ibis_test.py -> build/lib.linux-i686-2.5
copying module/ibis_device.py -> build/lib.linux-i686-2.5
copying module/ibis.py -> build/lib.linux-i686-2.5
running build_ext
building 'simulator_' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/module
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
-DLIBNAME=simulator -I./include
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c ./module/simulatormodule.c -o
build/temp.linux-i686-2.5/./module/simulatormodule.o
gcc -pthread -shared
build/temp.linux-i686-2.5/./module/simulatormodule.o -L./libs -L/usr/lib
-lsimulator -lsuperlu -llapack -lblas -ltoms -lcephes -lcalc -ldata
-lgfortran -lpython2.5 -o build/lib.linux-i686-2.5/simulator_.so
Thanking you for your help, Howard
Hi Charles
Some progress. I have gotten to the point where I have had some success
with "import eispice" by running python from within the "module"
folder. However, now I get the following error.
./simulator_.so can not restore segment root after reloc. permission
denied.
Do you have a recommendation for fixing this error? Also I would like
to move the contents of the "module" folder to the python lib folder.
So far I have not been able to identify the location of the python lib
folder. Do you have any suggestions as to where the python lib folder
is located in linux.
Thanking you for your help, Howard
Hi Howard,
Did you run "make install", it should copy the files accordingly. If you did
you
could try running it as a super-user, with sudo, or the Fedora equivalent. (I'm
an Ubuntu user and I'm not sure how to switch to super-user in Fedora).
Cheers,
Charles
Hi Charles,
More progress. Using the "make install" command fixed the "No module
named eispice" problem.
However, I get the following error message with the "import eispice"
command.
File "usr/Lib/python2.5/site-packages/eispice__init__py" from simulator__ import about Logfile, errorfile
line 52, in
Import error /usr/Lib/python2.5/site-packages/eispice/simulator__.so
cannot restore segment prot after reloc: Permission denied
I am doing all of the installation as root so I don't believe it is a
user permission problem. Fedora won't let a user use sudo commands.
Any more advice as to what I should try next?
Thank you for taking the time to help me get eispice running on Fedora.
Howard
Hi Charles,
The following is a corrected version of the error message I get when
importing eispice. It corrects a few typing mistakes I made in an
earlier message.
[root@Goldfinch eispice-0.11.6]# python", line 1, in
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import eispice
Traceback (most recent call last):
File "
File "/usr/lib/python2.5/site-packages/eispice/__init__.py", line 52,
in
from simulator_ import about, logFile, errorFile
ImportError: /usr/lib/python2.5/site-packages/eispice/simulator_.so:
cannot restore segment prot after reloc: Permission denied
>>>
I hope this helps you.
Howard
Hi Howard,
It might be related to SELinux, you could try out what this link suggests:
http://www.archiware.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=58&nav=0,8
Let me know how it goes,
Charles
Hi Charles,
Success. Setting SELINUIX=disabled fixed the "cannot restore segment
prot after reloc: Permission denied" problem". I successfully ran one
of your examples.
I noticed beside numpy eispice also required gcc-gfortran, scipy, and
tkinter.
Thank you for finding a fix for the "cannot restore segment prot after
reloc: Permission denied" problem".
Howard
Hi Howard,
I'm glad you got it working, just let me know if you have any more questions.
Cheers,
Charles