From owner-freebsd-ports@FreeBSD.ORG Sat Apr 5 10:12:34 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C077C12E for ; Sat, 5 Apr 2014 10:12:34 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 510829A6 for ; Sat, 5 Apr 2014 10:12:34 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 94BBD153448; Sat, 5 Apr 2014 12:12:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O-pZgW71Yztr; Sat, 5 Apr 2014 12:12:14 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:daa2:5eff:fe4e:36d2] (unknown [IPv6:2001:4cb8:3:1:daa2:5eff:fe4e:36d2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPS id 01C24153434; Sat, 5 Apr 2014 12:12:13 +0200 (CEST) References: <533EA19E.80905@digiware.nl> <533F7CF4.6070003@ShaneWare.Biz> In-Reply-To: <533F7CF4.6070003@ShaneWare.Biz> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPad Mail (9B206) From: Willem Jan Withagen Subject: Re: Python install catch 22 Date: Sat, 5 Apr 2014 12:12:14 +0200 To: Shane Ambler Cc: "ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2014 10:12:34 -0000 Op 5 apr. 2014 om 05:48 heeft Shane Ambler het volge= nde geschreven: > On 04/04/2014 22:42, Willem Jan Withagen wrote: >> Hi, >>=20 >> I've tried to upgrade my python 2.7 which did not work. >> Then I deinstalled all python stuff and tried to install python3 (aka 3.3= ) >=20 > You can install both versions of python (2.7 & 3.3) at the same time, > but currently you can only install a module to one of the versions at a > time. Sorry, I did not explain the situation clear enough. I was at 2.7, and wanted to install a 2.7 upgrade because of a bug. If memory serves me, from 2.7.3 to 2.7.6 But that started mounting about missing db stuff, and having to install a py= /db of choice. That is where I ran into the catch22, installing a db required py-tools, whi= ch in turn starts to try to upgrade python from 2.7.3 to 2.7.6. Then I cleaned/removed al python stuff, and tried again. First with 2.7 and when that did not work, I tried 3.3 with the same result.= I tried with portinstall/portupgrade as well as make && make install, but bo= th fail for the same reason. So atm I have no python at al. > So far there are still many modules that don't work with 3.x so you may > want to use 2.7 if you want python with more than the default modules. >=20 > The default python is still 2.7, if you want to use 3.3 then you might > want to add > DEFAULT_VERSIONS=3DPYTHON=3D3.3 PYTHON3=3D3.3 > to your /etc/make.conf >=20 >> The system everytime refuses to install because of missing a database: >>=20 >> pkg-static: >> lstat(/home2/usr/ports/lang/python33/work/stage/usr/local/lib/python3.3/l= ib-dynload/_dbm.so): >> No such file or directory >> *** [fake-pkg] Error code 74 >>=20 >> [ replace python33 by python27 te get the similar error for 2.7 ] >=20 > This would indicate that the dbm module wasn't built. It should be built > and is a module that gives access to others that may be installed from > the list below. The db modules below don't need to be installed first > for _dbm.so to be built. >=20 > This is an error compiling not related to the other modules. If your > using a gui then scrollback in the terminal to see the error - increase > scrollback limit if needed, from cli maybe use script to keep a log of > the build to look through. Using command line in putty. I will try again, and scan de build output for more errors. So there should b= e an error building the part in the stage tree? >=20 > gettext libiconv and gmake are the only things that need to be installed > before python to build. So where does it get the DBMS stuff from? > Maybe there is an issue with you not building > from /usr/ports ? That would be a first. This config is like this for about 6 years. And /user/ports links to this tree. >=20 >> And then hints: >> =3D=3D=3D=3D >> Note that some of the standard modules are provided as separate >> ports since they require extra dependencies: >>=20 >> gdbm databases/py-gdbm >> sqlite3 databases/py-sqlite3 >> tkinter x11-toolkits/py-tkinter >>=20 >> Install them as needed. >> =3D=3D=3D=3D >>=20 >> Which is nasty catch22, because one needs a recent/working python to >> actually be able to do this. >>=20 >> How do other cope with this? >>=20 >=20 > Could using pkg to install a prebuilt binary package be an option? That would be the alternative, but I only do that, if nothing else works. I've grown to always build my stuff. >=20 > What FreeBSD version are you using? I386 9.2-STABLE --WjW=