LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   configure: error: cannot find Python library path (https://www.linuxquestions.org/questions/slackware-14/configure-error-cannot-find-python-library-path-4175586453/)

n4rf 08-06-2016 03:46 PM

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)

ponce 08-06-2016 03:56 PM

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

n4rf 08-06-2016 04:02 PM

Quote:

Originally Posted by ponce (Post 5587108)
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

:)

ponce 08-07-2016 01:36 AM

it seems you have installed a python interpreter in /usr/local/bin building it from source and that isn't working fine.

n4rf 08-07-2016 08:58 AM

: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?

ponce 08-07-2016 10:25 AM

Quote:

Originally Posted by n4rf (Post 5587368)
: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 (Post 5587105)
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...

n4rf 08-07-2016 02:15 PM

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 (?)

bassmadrigal 08-07-2016 03:36 PM

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.*


suppy 08-07-2016 03:38 PM

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/

n4rf 08-07-2016 04:30 PM

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 :)


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