LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2016, 03:46 PM   #1
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Rep: Reputation: Disabled
configure: error: cannot find Python library path


Hi, im having problems trying to compile/install PyGooCanvas either from SBoPkg or source code...

I keep getting this error:

Code:
checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/local/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... /usr/lib64/python2.7/site-packages
checking for python extension module directory... /usr/lib64/python2.7/site-packages
checking for headers required to compile python extensions... found
checking for Python library path... 
configure: error: cannot find Python library path
is there a way I can flag the path??

I wonder why it can not find it...

Currently on Slackware64 14.2 (multilib)
 
Old 08-06-2016, 03:56 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
in the sources directory you should have a config.log file with details on the configure error: try pasting the file on some service like http://pastebin.com
 
Old 08-06-2016, 04:02 PM   #3
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
in the sources directory you should have a config.log file with details on the configure error: try pasting the file on some service like http://pastebin.com
Hre is the config.log

http://pastebin.com/424FSHJf

 
Old 08-07-2016, 01:36 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
it seems you have installed a python interpreter in /usr/local/bin building it from source and that isn't working fine.
 
Old 08-07-2016, 08:58 AM   #5
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
:S that's sort of odd.. Since the python interpreter Im using is the one that comes within the slackware installation.

Do you suggest uninstalling? Installing manually somewhere else?
 
Old 08-07-2016, 10:25 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by n4rf View Post
:S that's sort of odd.. Since the python interpreter Im using is the one that comes within the slackware installation.
it doesn't seems so: here
Code:
$ which python
/usr/bin/python
Quote:
Originally Posted by n4rf View Post
Code:
checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/local/bin/python
you can try a
Code:
file /usr/local/bin/python
and
Code:
/usr/local/bin/python -V
/usr/bin/python -V
Quote:
Do you suggest uninstalling? Installing manually somewhere else?
I suggest removing it but I have no idea:
- how you have installed it;
- if you are using it and removing it will break something;
- if you have installed python modules in /usr/local and removing /usr/local/bin/python impact them in some way.

IMHO, a system in which I don't know what I have installed, where and how, should be reinstalled from scratch: who knows what kind of issues I might have with it in the future...

Last edited by ponce; 08-07-2016 at 12:33 PM.
 
Old 08-07-2016, 02:15 PM   #7
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
Well.. That is the fun thing. I did not install it manually. The interpreter (under /usr/local/bin/python ) is the one that comes along with slackware.

Anyways, I gave it a try (at my own risk, knowing things would brake).

I uninstalled Python, checked there were no python.. >> ok

Installed again with slackpkg... Installed under /usr/local/bin/python...

Uninstalled again...

Downloaded, compiled and installed manually...

Again, under /usr/local/bin/python..

Is there any way I can flag it to be insyalled under /usr/bin (?)
 
Old 08-07-2016, 03:36 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
There is no way the official Slackware python package is installing into /usr/local/bin/. The folders in the package just aren't set up for that. You can see for yourself what the folder structure is for the official package here.

What is the filename of the package you are trying to install? What is your default mirror for slackpkg? Do you have slackpkg+ installed? If so, what repos do you have set up with it?

Also, what is the output of the following commands?

Code:
ls -la /var/log/packages/python*
cat /var/log/package/python-2.*
 
Old 08-07-2016, 03:38 PM   #9
suppy
Member
 
Registered: Mar 2012
Location: Sweden
Distribution: Slackware
Posts: 83

Rep: Reputation: 60
I think you've got a messed up mirror in your slackpkg settings, because the python package that any proper slackware mirror will give you will have python in /usr/bin/
 
Old 08-07-2016, 04:30 PM   #10
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Original Poster
Rep: Reputation: Disabled
OK, thank you all for your answers! finally!

Took me a while, but I got rid of every py* installed package..
Updated my slackpkg mirror list...

And installed

#slackpkg install python


Now...

Code:
[root@ASUS tmp]$ which python
/usr/bin/python
And there is no python package at /usr/local/bin

Thank you all!

No its time to fix everything I broke on the process :P hahaha

PS: as soon as it comiles PyGooCanvas (reason of the post) will mark it as solved
 
  


Reply

Tags
python, slackware



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
configure: error: can't find Xm (motif) library MilanK Linux - Newbie 7 05-24-2015 04:35 PM
python setup: changing library path stateless Programming 5 02-13-2013 02:10 PM
[SOLVED] [ask] how to configure library path sadlie Linux - Newbie 3 06-01-2010 04:50 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Programming 5 12-07-2005 05:04 PM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:01 PM.

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