LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2013, 07:00 AM   #1
MasterAir
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
Pointing configure at python header files


I'm working on a machine for which I do not have root access...

I would like to install meld, for which I need to install pygtk.

The default python is too old, so python-2.7.3 is installed in my home directory at ~/apps/Python-2.7.3/python which is in my PATH.

When I try to configure pygtk it fails with the following error message:

checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers

I think the python header files are available, they are in ~/apps/Python-2.7.3/Include. How do I point configure at the right location? Adding this directory to my INCLUDE variable didn't seem to help. I can't seem to get configure to print a list of places it is looking, which would help me resolve this.

Thanks in advance for your help.
 
Old 05-03-2013, 07:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,846

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I can't remember the correct solution but I think you can specify prefix and other variables when you configure it, therefore it will recognize your own path.
 
  


Reply



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
php5 ./configure error: Cannot find MySQL header files ldp Linux - Software 29 05-15-2018 04:30 PM
can't find header file even tho I'm pointing directly to it kryptobs2000 Linux - Software 4 02-27-2008 08:41 AM
./configure not finding header files mikeyt_333 Linux - Software 5 06-30-2004 06:09 PM
Configure kernel header files?? dbet Linux - Newbie 1 12-15-2003 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:29 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