Re: pgadmin4: The python-config executable could not be found.

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>
Cc: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgadmin4: The python-config executable could not be found.
Date: 2016-04-19 10:04:52
Message-ID: CAKoxK+6Z16mHS8iti_uwUDFETqaRw1O0jiEM9z7+PsskpxMung@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Tue, Apr 19, 2016 at 11:00 AM, Neel Patel
<neel(dot)patel(at)enterprisedb(dot)com> wrote:
> Remove the "-lpython3.4m" from LFLAGS in Makefile and add it at the end in
> "LIBS" variable after linking of Qt libraries as below.

While it compiles with python 2.7 it does not with 3.5.1 (I report
this in the case it is useful):

In file included from qrc_pgAdmin4.cpp:9:0:
qrc_pgAdmin4.cpp:2373:44: warning:
‘qInitResources_pgAdmin4__init_variable__’ defined but not used
[-Wunused-variable]
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
^
/usr/include/qt4/QtCore/qglobal.h:941:21: note: in definition of macro
‘Q_CONSTRUCTOR_FUNCTION0’
static const int AFUNC ## __init_variable__ = AFUNC();
^
qrc_pgAdmin4.cpp:2373:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
^
qrc_pgAdmin4.cpp:2373:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_pgAdmin4))
^
g++ -m64 -L/usr/local/Python-3.5.1/lib/python3.5/config-3.5m
-L/usr/local/Python-3.5.1/lib -lpthread -ldl -lutil -lm -Xlinker
-export-dynamic -Wl,-O1 -o pgAdmin4 pgAdmin4.o BrowserWindow.o
Server.o TabWindow.o WebViewWindow.o ConfigWindow.o
moc_BrowserWindow.o moc_Server.o moc_TabWindow.o moc_WebViewWindow.o
moc_ConfigWindow.o qrc_pgAdmin4.o -L/usr/lib/x86_64-linux-gnu
-lQtWebKit -lQtGui -lQtNetwork -lQtCore -lpthread -lpython3.5m
/usr/bin/ld: /usr/local/Python-3.5.1/lib/python3.5/config-3.5m/libpython3.5m.a(signalmodule.o):
undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:124: recipe for target 'pgAdmin4' failed
make: *** [pgAdmin4] Error 1

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Mark Csaba 2016-04-19 10:08:08 Re: pgadmin4: The python-config executable could not be found.
Previous Message Neel Patel 2016-04-19 09:00:02 Re: pgadmin4: The python-config executable could not be found.