X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Virus-Scanned: Debian amavisd-new at mail.linetec.nl Content-Type: multipart/alternative; boundary="------------X0T68W0RrdPK0IEi2nJBOkwF" Message-ID: <16de0564-4ae8-3d2f-d8d3-fce9cf17e4a8@linetec.nl> Date: Mon, 20 Jun 2022 16:42:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [geda-user] Installing geda, pcb from scratch Content-Language: en-US To: geda-user AT delorie DOT com References: <400b3366-05cb-9377-8211-0a6cf0a9753d AT linetec DOT nl> From: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" In-Reply-To: Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk This is a multi-part message in MIME format. --------------X0T68W0RrdPK0IEi2nJBOkwF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Roland, Thank you for your quick reply! Op 20-06-2022 om 15:27 schreef Roland Lutz: > Hi Richard, > > On Mon, 20 Jun 2022, Richard Rasker (rasker AT linetec DOT nl) [via > geda-user AT delorie DOT com] wrote: >> As a result of a long-overdue Linux upgrade (to Kubuntu 20.04), I'm >> trying >> to install pcb and geda (most notably gschem) from scratch, but I'm >> running >> into some problems. >> >> As there are no packages for this distribution, I need to build >> everything >> from source. Some time ago, I already got a development version from >> a git >> repo, but unfortunately, trying to update it results in an error >> message: >> >>       ~/electron/pcb-development/pcb$ git pull >>       fatal: unable to connect to git.geda-project.org: >>       git.geda-project.org[0: 159.250.13.27]: errno=Connection Refused >> >> What am I doing wrong? Or if the repo is indeed inaccessible, then >> where can >> I find the sources for the latest stable versions? > > the recommended way to install gEDA/gaf is from the source tarball: > > http://ftp.geda-project.org/geda-gaf/stable/v1.10/1.10.2/geda-gaf-1.10.2.tar.gz OK, I downloaded and extracted this one. However, ./configure fails on python: 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}/lib/python2.7/dist-packages checking for python2 extension module directory... ${exec_prefix}/lib/python2.7/dist-packages checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for PYTHON... no checking for PYTHON... 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 This is weird. First it finds python 2.7 just fine, but then it says it isn't there? I checked, and python2 is present where I would expect it, in /usr/bin: $ which python2 /usr/bin/python2 What am I doing wrong? I also tried running ./autogen.sh before ./configure, but that didn't change anything. Unfortunately, I am not at home in software development at all (the last time I fired up gcc was several years ago, for a test version of pcb), so I really need to have these things spelled out in detail. This is also why I hesitated upgrading my machine for well over two years, because in my experience, it can take quite a few hours and a lot of stress to get these things properly running when building them from source. And oh, could you provide a link to the sources of a stable version of PCB as well? Anyway, your help is much appreciated! > Git access to the repository at > >     git://git.geda-project.org/geda-gaf.git > > seems to be currently broken; you can use my GitHub repository instead: > > https://github.com/rlutz/geda-gaf > > It may be preferable to switch to the "stable-1.10" branch before > building from the repository unless you want the latest development > version.  Make sure to install the additional dependencies (it may be > necessary to clean the repository if you tried to build before > installing them) and run ./autogen.sh before running ./configure. > >> Also, when installing the dependencies listed here: >> http://wiki.geda-project.org/geda:gaf_building_git_version , I could not >> locate a suitable gtk+ candidate in Kubuntu's package management, but >> maybe >> I overlooked it. > > This would be "libgtk2.0-dev". > >> The easiest would of course be pcb / geda package versions for >> Kubuntu 20.04 "Focal Fossa". > > Kai-Martin built a Debian package some while ago: > > https://salsa.debian.org/kmk/geda-gaf > > If you are comfortable with building Debian/Ubuntu packages from > source, you may want to give this a try. > > Be warned that GTK looks somewhat broken by default on Ubuntu 20.04. > This can probably be fixed by installing the proper theme, but I > haven't looked into the details yet. > > Roland > --------------X0T68W0RrdPK0IEi2nJBOkwF Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Roland,

Thank you for your quick reply!

Op 20-06-2022 om 15:27 schreef Roland Lutz:
Hi Richard,

On Mon, 20 Jun 2022, Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com] wrote:
As a result of a long-overdue Linux upgrade (to Kubuntu 20.04), I'm trying
to install pcb and geda (most notably gschem) from scratch, but I'm running
into some problems.

As there are no packages for this distribution, I need to build everything
from source. Some time ago, I already got a development version from a git
repo, but unfortunately, trying to update it results in an error message:

      ~/electron/pcb-development/pcb$ git pull
      fatal: unable to connect to git.geda-project.org:
      git.geda-project.org[0: 159.250.13.27]: errno=Connection Refused

What am I doing wrong? Or if the repo is indeed inaccessible, then where can
I find the sources for the latest stable versions?

the recommended way to install gEDA/gaf is from the source tarball:

    http://ftp.geda-project.org/geda-gaf/stable/v1.10/1.10.2/geda-gaf-1.10.2.tar.gz

OK, I downloaded and extracted this one. However, ./configure fails on python:

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}/lib/python2.7/dist-packages
checking for python2 extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PYTHON... no
checking for PYTHON... 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

This is weird. First it finds python 2.7 just fine, but then it says it isn't there?

I checked, and python2 is present where I would expect it, in /usr/bin:

$ which python2
/usr/bin/python2

What am I doing wrong? I also tried running ./autogen.sh before ./configure, but that didn't change anything. Unfortunately, I am not at home in software development at all (the last time I fired up gcc was several years ago, for a test version of pcb), so I really need to have these things spelled out in detail.

This is also why I hesitated upgrading my machine for well over two years, because in my experience, it can take quite a few hours and a lot of stress to get these things properly running when building them from source.

And oh, could you provide a link to the sources of a stable version of PCB as well?

Anyway, your help is much appreciated!


Git access to the repository at

    git://git.geda-project.org/geda-gaf.git

seems to be currently broken; you can use my GitHub repository instead:

    https://github.com/rlutz/geda-gaf

It may be preferable to switch to the "stable-1.10" branch before building from the repository unless you want the latest development version.  Make sure to install the additional dependencies (it may be necessary to clean the repository if you tried to build before installing them) and run ./autogen.sh before running ./configure.

Also, when installing the dependencies listed here:
http://wiki.geda-project.org/geda:gaf_building_git_version , I could not
locate a suitable gtk+ candidate in Kubuntu's package management, but maybe
I overlooked it.

This would be "libgtk2.0-dev".

The easiest would of course be pcb / geda package versions for Kubuntu 20.04 "Focal Fossa".

Kai-Martin built a Debian package some while ago:

    https://salsa.debian.org/kmk/geda-gaf

If you are comfortable with building Debian/Ubuntu packages from source, you may want to give this a try.

Be warned that GTK looks somewhat broken by default on Ubuntu 20.04. This can probably be fixed by installing the proper theme, but I haven't looked into the details yet.

Roland


  


--------------X0T68W0RrdPK0IEi2nJBOkwF--