LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   problems with Python (https://www.linuxquestions.org/questions/ubuntu-63/problems-with-python-332618/)

dratix 06-11-2005 10:06 PM

problems with Python
 
synaptic says the latest version of python is 2.4.1-0, and that I have it installed... I am missing python.h and when I try installing a python package, it tells me that i need python version 2.4.1-2

Unpacking python2.4-dev (from .../python2.4-dev_2.4.1-2_i386.deb) ...
dpkg: dependency problems prevent configuration of python2.4-dev:
python2.4-dev depends on python2.4 (= 2.4.1-2); however:
Version of python2.4 on system is 2.4.1-0.
dpkg: error processing python2.4-dev (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-dev

That is the result I get.

I need python.h installed, but I cant install it due to not having the most recent python installed, which according to synaptic, I do. Please help.

dratix 06-11-2005 10:46 PM

actually, i just fixed that, however another problem has come up...

checking /usr/include/python2.4/Python.h usability... yes
checking /usr/include/python2.4/Python.h presence... yes
checking for /usr/include/python2.4/Python.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking for pygtk-2.0 >= 2.4.0 pyorbit-2 >= 2.0.1 gnome-python-2.0 >= 2.6.0... Package pygtk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygtk-2.0' found

configure: error: Library requirements (pygtk-2.0 >= 2.4.0 pyorbit-2 >= 2.0.1 gnome-python-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

what to do now?

carl.waldbieser 06-14-2005 11:12 PM

Well, it would seem that you have to make sure the developer files for that library is installed, and then set the environment variable PKG_CONFIG_PATH to point to it if it's not in your normal library path.

adriaanbw 06-15-2005 09:33 PM

Python.h
 
dratix,

Do you mind sharing how you managed to get around the Python.h file problem??

I am currently trying to compile a program from source and one of the errors i get is that Python.h cannot be found. But, I do have Python.h in the /usr/include/python2.4/ path.

Do I have to add this path to some type of environment variable?


All times are GMT -5. The time now is 06:14 PM.