Missing dependencies: Python development files

Asked by bondtnt

Hello,

I have problem with running ./configure script.

Here is output:
............................
checking consistency of all components of python development environment... no
configure: WARNING:
========================================================================
Could not link test program to Python. Maybe the main Python library
has been installed in some non-standard library path. If so, pass it
to configure, via the LDFLAGS environment variable.

Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"

ERROR!
You probably have to install the development version of the Python
package for your distribution. The exact name of this package varies
among them.
========================================================================
............................
............................

checking for uselocale... yes
configure:
========================================================================
One or more library dependencies could not be resolved.

Missing dependencies:
Python development files

Configuration failed. Halt.

Dependencies
  Octave ............. /usr/include/octave-3.2.3
  Python ............. -I/usr/include/python2.6
    executable ....... /usr/bin/python
  Python boost ....... boost_python

Features
  matrix interface ... numpy
  uselocale .......... yes

========================================================================
configure: error: Configuration failure. Halt.

I'm using Ubuntu 10.04 and installed python 2.6 using "apt-get install python".
I've installed devtools using "sudo apt-get install python-all-dev"
but lib folder really did not came up.

Can somebody point me where should I look for lib folder, or what else should be installed?
(I've used locate command but python/lib is really absent in my system)

Best regards and already many thanks for answers

Question information

Language:
English Edit question
Status:
Solved
For:
Pytave Edit question
Assignee:
No assignee Edit question
Solved by:
bondtnt
Solved:
Last query:
Last reply:
Revision history for this message
David Grundberg (individ) said :
#1

The path is not meant to be interpreted literally; you are not supposed to look for a directory called python/lib. The configure script has found Python, something is wrong with the linking though.

Please post the config.log file.

Revision history for this message
bondtnt (noban) said :
#2

Here is part of config.log file which is interesting:

configure:5181: checking consistency of all components of python development environment
configure:5206: gcc -o conftest -g -O2 -I/usr/include/python2.6 -L/usr/lib -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil conftest.c -lpython2.6 >&5
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
configure:5206: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pytave"
| #define PACKAGE_TARNAME "pytave"
| #define PACKAGE_VERSION "0.1.1"
| #define PACKAGE_STRING "pytave 0.1.1"
| #define PACKAGE_BUGREPORT "https://bugs.launchpad.net/pytave"
| #define PACKAGE_URL ""
| #define HAVE_PYTHON "2.6"
| /* end confdefs.h. */
|
| #include <Python.h>
| int
| main ()
| {
| Py_Initialize();
| ;
| return 0;
| }
|
configure:5224: result: no
configure:5240: WARNING:
========================================================================
Could not link test program to Python. Maybe the main Python library
has been installed in some non-standard library path. If so, pass it
to configure, via the LDFLAGS environment variable.

Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"

ERROR!
You probably have to install the development version of the Python
package for your distribution. The exact name of this package varies
among them.
========================================================================
configure:5289: checking for python
configure:5298: result: /usr/bin/python
configure:5303: checking for numpy includedir
configure:5319: result: /usr/lib/python2.6/dist-packages/numpy/core/include

Friend of mine suggested to install "libssl-dev" that solved the problem.