delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/03/08/05:50:28

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6
X-Exmh-Isig-CompType: comp
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: [geda-user] geda-gaf, python2 not found
Mime-Version: 1.0
Message-Id: <20180308104827.CA0F4807DEB9@turkos.aspodata.se>
Date: Thu, 8 Mar 2018 11:48:27 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com

 The configure script says it finds python2 and the it says not found.

$ cd /Net/git/geda-gaf
$ git pull 
Already up to date.
Current branch master is up to date.
$ ./configure 
...
checking for a Python interpreter with version >= 2.7... python2
checking for python2... /usr/bin/python2
checking for python2 version... 2.7
checking for python2 platform... linux2
checking for python2 script directory... ${prefix}/lib64/python2.7/site-packages
checking for python2 extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for python2 >= 2.7... no
configure: error: Package requirements (python2 >= 2.7) were not met:

No package 'python2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
configure: error: ./configure failed for xorn

$ python2.7 -V
Python 2.7.14
$ /usr/bin/python2 -V
Python 2.7.14

Looking in xorn/configure.ac I find:
    AM_PATH_PYTHON([2.7])
    PKG_CHECK_MODULES([PYTHON], [python2 >= 2.7])

I have /usr/lib64/pkgconfig/python-2.7.pc, and
$ pkg-config --cflags --libs python-2.7
-I/usr/include/python2.7 -lpython2.7
$

Doning
# ln -s /usr/lib64/pkgconfig/python-2.7.pc /usr/local/lib/pkgconfig/python2.pc
makes configure work, so there is a name confusion going on:
python2    configure.ac
python2.7  binary
python-2.7 pkg-config

What is the best way to solve this?

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019