LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 11-28-2014, 05:22 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
Could not link test program to Python


I'm trying to build gnome15 for Linux Mint 17.1.
The current zipped source on github, which expands in directory gnome15-master, has no configure, just configure.ac. So I'm using a copy from last year but its configure is having a problem with python. It stops with:
Code:
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.7
checking for Python library path... -L/usr/lib -lpython2.7
checking for Python site-packages path... /usr/lib/python2.7/dist-packages
checking python extra libraries... -L/usr/lib -lz -lpthread -ldl  -lutil
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... no
configure: error: in `/devel/gnome15-0.9.8-arch':
configure: error: 
  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.
  ============================================================================

See `config.log' for more details
What is it looking for?

config.log has:
Code:
configure:12589: checking for python
configure:12607: found /usr/bin/python
configure:12619: result: /usr/bin/python
configure:12640: checking for python version
configure:12647: result: 2.7
configure:12659: checking for python platform
configure:12666: result: linux2
configure:12692: checking for python script directory
configure:12727: result: ${prefix}/lib/python2.7/dist-packages
configure:12736: checking for python extension module directory
configure:12771: result: ${exec_prefix}/lib/python2.7/dist-packages
configure:12792: checking for python2.7
configure:12822: result: /usr/bin/python
configure:12838: checking for a version of Python >= '2.1.0'
configure:12864: result: yes
configure:12872: checking for a version of Python 2.6
configure:12876: result: yes
configure:12893: checking for the distutils Python package
configure:12897: result: yes
configure:12911: checking for Python include path
configure:12921: result: -I/usr/include/python2.7
configure:12928: checking for Python library path
configure:13013: result: -L/usr/lib -lpython2.7
configure:13020: checking for Python site-packages path
configure:13026: result: /usr/lib/python2.7/dist-packages
configure:13033: checking python extra libraries
configure:13040: result: -L/usr/lib -lz -lpthread -ldl  -lutil
configure:13047: checking python extra linking flags
configure:13054: result: -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
configure:13061: checking consistency of all components of python development environment
configure:13087: gcc -o conftest -g -O2  -I/usr/include/python2.7  conftest.c  -L/usr/lib -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib -lz -lpthread -ldl  -lutil >&5
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
configure:13087: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gnome15"
| #define PACKAGE_TARNAME "gnome15"
| #define PACKAGE_VERSION "0.9.8"
| #define PACKAGE_STRING "gnome15 0.9.8"
| #define PACKAGE_BUGREPORT "https://projects.russo79.com/projects/gnome15/issues/new"
| #define PACKAGE_URL ""
| #define PACKAGE "gnome15"
| #define VERSION "0.9.8"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON "2.7"
| /* end confdefs.h.  */
| 
| 		#include <Python.h>
| int
| main ()
| {
| Py_Initialize();
|   ;
|   return 0;
| }
| 
configure:13104: result: no
configure:13108: error: in `/devel/gnome15-0.9.8-arch':
configure:13110: error: 
  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.
  ============================================================================

See `config.log' for more details
An extract of what's installed:
Code:
 $ dpkg-query -l | grep python -
ii  libpython-dev:amd64            2.7.5-5ubuntu3    amd64
ii  libpython-stdlib:amd64         2.7.5-5ubuntu3    amd64
ii  libpython2.7:amd64             2.7.6-8           amd64
ii  libpython2.7-dev:amd64         2.7.6-8           amd64
ii  libpython2.7-minimal:amd64     2.7.6-8           amd64
ii  libpython2.7-stdlib:amd64      2.7.6-8           amd64
ii  libpython3-dev:amd64           3.4.0-0ubuntu2    amd64
ii  libpython3-stdlib:amd64        3.4.0-0ubuntu2    amd64
ii  libpython3.4:amd64             3.4.0-2ubuntu1    amd64
ii  libpython3.4-dev:amd64         3.4.0-2ubuntu1    amd64
ii  libpython3.4-minimal:amd64     3.4.0-2ubuntu1    amd64
ii  libpython3.4-stdlib:amd64      3.4.0-2ubuntu1    amd64
ii  python                         2.7.5-5ubuntu3    amd64
ii  python-dev                     2.7.5-5ubuntu3    amd64
ii  python2.7                      2.7.6-8           amd64
ii  python2.7-dev                  2.7.6-8           amd64
ii  python2.7-minimal              2.7.6-8           amd64
ii  python3                        3.4.0-0ubuntu2    amd64
ii  python3-dev                    3.4.0-0ubuntu2    amd64
ii  python3.4                      3.4.0-2ubuntu1    amd64
ii  python3.4-dev                  3.4.0-2ubuntu1    amd64
ii  python3.4-minimal              3.4.0-2ubuntu1    amd64
Code:
$ cd /usr/lib
$ ls -d1 py*
pymodules
pyshared
python2.6
python2.7
python3
python3.4
I tried using 'set -x' in configure in the hope that it would give me an explicit command that would tell me what to look for, but no such luck. Too much stuff is in variables.

gnome15 supports the Logitech G series gaming keyboards. I looked in the normal repos but only the g15daemon and g15macro components for my keyboard (G510s) are present. Not enough. I tried to access the pps:
Code:
 # add-apt-repository ppa:tanktarta/gnome15
Cannot add PPA: 'No JSON object could be decoded'.
Is there other support for the G510s?

Thanks
 
Old 11-28-2014, 06:58 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
http://www.gnu.org/software/automake...Explained.html
 
Old 11-30-2014, 02:39 AM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Does this mean that I have to install autoconf and automake and try to create the missing configure?

Last edited by CollieJim; 11-30-2014 at 03:13 AM.
 
  


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
[SOLVED] Python TypeError when calling Python program from a Bash script noppeli Programming 2 01-15-2013 08:06 AM
[SOLVED] python 2.6.4 [make test] giving error: janakiramulu Linux From Scratch 2 05-22-2011 02:09 AM
[SOLVED] Segfault in Python 3.x test script grail Programming 6 03-28-2010 01:18 AM
Python test script yields 'Connection refused' BigNate37 Linux - Server 1 12-03-2007 09:45 PM
My Link Directory Application: Please Help Beta Test This vharishankar General 12 07-18-2005 10:46 AM

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

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