LinuxQuestions.org
Visit Jeremy's Blog.
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 01-09-2004, 05:12 AM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Question What means: ...proper Python link flags?


When I want to configure fluxspace (./configure) I get the following error:

---snap---
checking for python version... 2.3
checking for python platform... linux2
checking for python >= 2.2... okay
checking for headers required to compile python extensions... found
checking for python-config... no
checking for Py_Initialize in -lpython2.3... no
checking for Py_Finalize in -lpython2.3... no
checking for Py_IsInitialized in -lpython2.3... no
configure: error: Unable to determine proper Python link flags.

I have python 2.2 as well as 2.3, so what could be wrong/missing?

Leon.

EDIT: sorry, there was already a thread, with solution!: get python-config

Last edited by BroX; 01-09-2004 at 06:31 AM.
 
Old 01-12-2004, 08:51 AM   #2
Iko
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
solution

Hello,

i have hacked on this problem for two days and finaly solved it. U need two things before fluxspace will configure. First of all set LD_LIBRARY_PATH to include ur libpython2.3 or 2.2 etc.
For me its was /usr/local/lib/python2.3/config.

Then get the python-config from this location for ur python version:

http://ftp.rutgers.edu/pub/gentoo/de.../python/files/

Put this in /usr/bin and give urself permission to read and +x it. or put it on any other location thats in ur $PATH.

now run ./configure again and w00t it will work

Cheerz Iko
 
Old 01-13-2004, 04:54 AM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Thanks for your 2 days of hacking on it :-)
It solved the python-config bit, but the other errors remain (e.g. -lpython2.3... no).

By the way: I have

python-2.2.2 and
Python-2.3.3

Could this small-p and kapital-P prevent proper upgrading when using rpm's? Because checking the presence of python with rpm -q does depend on using kapital or smal p.

Could having two versions cause any other confusement?

Leon.
 
Old 02-27-2004, 08:17 AM   #4
Iko
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
U need python-devel to and yes u need to use python-2.3. Remove the old 2.2 version u dont need it anymore, it can mess up the configure.
Did u set the LD_LIBRARY_PATH? Imo u didnt do that.
Get the python-devel-2.3.3, i use slack so had to rpm2tgz the rpm file. After that just use installpkg and ur done.

Last edited by Iko; 02-27-2004 at 08:24 AM.
 
Old 02-27-2004, 08:26 AM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Thanks Iko,

problem was indeed solved by getting rid of the older Python version. Moved on to Slack in the mean time and never had any python problems!

Cheers, Leon.
 
Old 04-21-2004, 09:40 PM   #6
RoaCh Of DisCor
Member
 
Registered: Apr 2004
Location: Washington State
Distribution: SuSE 9.3 / Slackware-Current
Posts: 701

Rep: Reputation: 30
How exactly to I set this path? What file is it? Thanks
 
  


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
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM
WineX, python-gnome, and python-gtk DrD Fedora 0 08-03-2004 12:11 PM
CC flags and the like Garp Linux - Software 2 05-17-2004 03:48 AM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM

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

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