LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2008, 03:08 PM   #1
Pengye
LQ Newbie
 
Registered: May 2008
Posts: 9

Rep: Reputation: 0
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
 
Old 09-08-2008, 03:22 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,615

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by Pengye View Post
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.
 
Old 09-09-2008, 08:25 AM   #3
Pengye
LQ Newbie
 
Registered: May 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I've installed python-dev. The terminal still replies the same........
 
Old 09-09-2008, 09:21 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,615

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by Pengye View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error building gcc43 RoiSoleil *BSD 0 03-03-2007 10:01 AM
Error when building Diomedes Linux - Software 5 10-04-2006 12:18 AM
error building kdebase bmfan Slackware 1 11-12-2005 08:51 AM
Error when building kdemultimedia. RoaCh Of DisCor Linux - Software 1 10-14-2004 11:59 AM
mpegrec building error jinneemop Linux - General 2 04-27-2003 12:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration