delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2014/06/05/11:32:23

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
Message-ID: <53908D54.2020209@philippklostermann.de>
Date: Thu, 05 Jun 2014 17:31:32 +0200
From: Philipp Klostermann <geda AT philippklostermann DOT de>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: geda-help AT delorie DOT com
Subject: [geda-help] xgsch2pcb & automake 1.11.6 Problems when trying to install
Reply-To: geda-help AT delorie DOT com

Hello again,

I tried to install xgsch2pcb on debian Wheezy, but I got the following
error:

albus:~/src/xgsch2pcb_2014-06-04/build# ./autogen.sh
processing .
autogen.sh running: intltoolize ...
autogen.sh running: aclocal  ...
autogen.sh running: automake  ...
Makefile.am:33: `pkglibdir' is not a legitimate directory for `PYTHON'
Makefile.am:25: `pkglibdir' is not a legitimate directory for `PYTHON'
autogen.sh running: autoconf ...
albus:~/src/xgsch2pcb_2014-06-04/build#

After a bit of googling and finding https://github.com/wdb/wdb/issues/36
(and some others) I tried to fix this by doing the following changes:

Makefile.am:
change
pkglib_PYTHON = lib/xgsch2pcb/pcbmanager.py
to
pkgpython_PYTHON = lib/xgsch2pcb/pcbmanager.py

change
nodist_pkglib_PYTHON = config.py
to
nodist_pkgpython_PYTHON = config.py

I tried to install again:

albus:~/src/xgsch2pcb_2014-06-04/build# ./autogen.sh
processing .
autogen.sh running: intltoolize ...
autogen.sh running: aclocal  ...
autogen.sh running: automake  ...
configure.ac:27: installing `./install-sh'
configure.ac:27: installing `./missing'
autogen.sh running: autoconf ...
albus:~/src/xgsch2pcb_2014-06-04/build# ./configure
...
albus:~/src/xgsch2pcb_2014-06-04/build# make
Making all in po
make[1]: Entering directory `/root/src/xgsch2pcb_2014-06-04/build/po'
...
albus:~/src/xgsch2pcb_2014-06-04/build# make install
...
make[2]: Entering directory `/root/src/xgsch2pcb_2014-06-04/build'
 /bin/mkdir -p '/usr/local/bin'
 /usr/bin/install -c xgsch2pcb '/usr/local/bin'
sed -e 's,[@]prefix[@],/usr/local,g' -e
's,[@]PYTHON[@],/usr/bin/python,g' -e 's,[@]VERSION[@],0.1.3,g' -e
's,[@]pkglibdir[@],/usr/local/lib/geda-xgsch2pcb,g' -e
's,[@]templatesdir[@],/usr/local/share/geda-xgsch2pcb/templates,g' -e
's,[@]PACKAGE[@],geda-xgsch2pcb,g' < ./lib/xgsch2pcb/config.py.in >
config.py
 /bin/mkdir -p '/usr/local/lib/python2.7/dist-packages/geda-xgsch2pcb'
 /usr/bin/install -c -m 644 config.py
'/usr/local/lib/python2.7/dist-packages/geda-xgsch2pcb'
./py-compile: Missing argument to --destdir.
make[2]: *** [install-nodist_pkgpythonPYTHON] Fehler 1
make[2]: Leaving directory `/root/src/xgsch2pcb_2014-06-04/build'
make[1]: *** [install-am] Fehler 2
make[1]: Leaving directory `/root/src/xgsch2pcb_2014-06-04/build'
make: *** [install-recursive] Fehler 1
albus:~/src/xgsch2pcb_2014-06-04/build#

After doing some resarch I found out, that the meaning of the --destdir
parameter had changed (sorry, but I can't find that, anymore), so I
outcommented that part in py-compile:

#      if test -z "$destdir"; then
#        echo "$0: Missing argument to --destdir." 1>&2
#        exit 1
#      fi

The installation showed no errors after this, but the compiled
python-modules (however you call them, sorry for misnaming!) were not
copied from lib/xgsch2pcb/ to the destination directory
/usr/local/lib/python2.7/dist-packages/geda-xgsch2pcb (?), so starting
xgsch2pcb lead to the following error.

phil AT albus:~/Dokumente$ xgsch2pcb
Traceback (most recent call last):
  File "/usr/local/bin/xgsch2pcb", line 44, in <module>
    from gui import *
ImportError: No module named gui
phil AT albus:~/Dokumente$

I guess, I could copy the .py files manually, but I think, a proper
solution could be interesting for others, too.

Thanks in advance!
Philipp

- Raw text -


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