LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Error when building the breves (https://www.linuxquestions.org/questions/programming-9/error-when-building-the-breves-668461/)

Pengye 09-08-2008 03:08 PM

Error when building the breves
 
Hi,

I've been trying to build breve in my ubuntu system.
After compile, the make returns error like follows,

g++ -Iinclude/breve -DHAVE_CONFIG_H -g -g -O2 -pipe -Wall -fpermissive -c -o steve/steveFrontend.o steve/steveFrontend.cc
In file included from steve/steveFrontend.cc:6:
include/breve/pythonFrontend.h:9:20: error: Python.h: No such file or directory
In file included from steve/steveFrontend.cc:4:
include/breve/errorText.h:59: warning: deprecated conversion from string constant to ‘char*’

I've checked that I have python2.4 and python2.5 in my usr/include
I think g++ should have go through that path to find the python.h file.

Anybody can help?

Henry

TB0ne 09-08-2008 03:22 PM

Quote:

Originally Posted by Pengye (Post 3273683)
Hi,

I've been trying to build breve in my ubuntu system.
After compile, the make returns error like follows,

g++ -Iinclude/breve -DHAVE_CONFIG_H -g -g -O2 -pipe -Wall -fpermissive -c -o steve/steveFrontend.o steve/steveFrontend.cc
In file included from steve/steveFrontend.cc:6:
include/breve/pythonFrontend.h:9:20: error: Python.h: No such file or directory
In file included from steve/steveFrontend.cc:4:
include/breve/errorText.h:59: warning: deprecated conversion from string constant to ‘char*’

I've checked that I have python2.4 and python2.5 in my usr/include
I think g++ should have go through that path to find the python.h file.

Anybody can help?

Henry

You not only need Python installed, but the python development libraries too. That's probably where python.h is.

Pengye 09-09-2008 08:25 AM

I've installed python-dev. The terminal still replies the same........

TB0ne 09-09-2008 09:21 AM

Quote:

Originally Posted by Pengye (Post 3274547)
I've installed python-dev. The terminal still replies the same........

Do a "rpm -ql <name of python-dev package> | grep Python.h". Is it there? You can also try (as root) "find / -name Python.h", and see where it is on disk.

If you do have the Python.h file present, try to run the configure again, with "./configure --help", or something like that (read the docs). There will probably be an option to specify where the Python dev libraries are.


All times are GMT -5. The time now is 05:23 PM.