Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2012 17:41:45 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Bernard Muluuta <bmuluuta@i3c.co.ug>
Cc:        python@freebsd.org
Subject:   Re: Failure to install Python2.7
Message-ID:  <CAKBkRUzqGobiGVSrKg_y5F6gokOWQb-jQYtFKt3CL=urdogHgg@mail.gmail.com>
In-Reply-To: <4FF27FC5.9010506@i3c.co.ug>
References:  <4FF27FC5.9010506@i3c.co.ug>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 3, 2012 at 1:14 PM, Bernard Muluuta <bmuluuta@i3c.co.ug> wrote:
> Hello,
>
> I have a FreeBSD machine:
>
> uname -a
>
> FreeBSD nemesis 7.1-RELEASE FreeBSD 7.1-RELEASE #2: Mon Feb 22 13:55:21 EAT
> 2010     root:/usr/obj/usr/src/sys/GENERIC  i386
>
>
> I have tried to install Python2.7 but it always fails at the same point.
> Here is my output of *make*.
>
> I have also attached config.log
>
> [root@nemesis /usr/ports/lang/python27]# make
>
> ===>  Found saved configuration for python27-2.7.3_2
>
> ===>  Extracting for python27-2.7.3_2
>
> => SHA256 Checksum OK for python/Python-2.7.3.tgz.
>
> /bin/chmod -R og=u-w /usr/ports/lang/python27/work/Python-2.7.3/Tools
> /usr/ports/lang/python27/work/Python-2.7.3/Demo
>
> ===>  Patching for python27-2.7.3_2
>
> /bin/cp -r /usr/ports/lang/python27/work/Python-2.7.3/Lib/plat-freebsd8
> /usr/ports/lang/python27/work/Python-2.7.3/Lib/plat-freebsd9
>
> /bin/cp -r /usr/ports/lang/python27/work/Python-2.7.3/Lib/plat-freebsd8
> /usr/ports/lang/python27/work/Python-2.7.3/Lib/plat-freebsd10
>
> /bin/mkdir -p /usr/ports/lang/python27/work/Python-2.7.3/portbld.static
> /usr/ports/lang/python27/work/Python-2.7.3/portbld.shared/Modules
>
> /bin/ln /usr/ports/lang/python27/work/Python-2.7.3/Lib/smtpd.py
> /usr/ports/lang/python27/work/Python-2.7.3/Tools/scripts/
>
> /usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.7,'
> /usr/ports/lang/python27/work/Python-2.7.3/Tools/scripts/2to3  >
> /usr/ports/lang/python27/work/`echo 2to3 | /usr/bin/sed -E -e
> 's,smtpd,smtpd2.7,'  -e 's,2to3,2to3-2.7,'  -e
> 's,(idle|pydoc|python-shared|python),\12.7,'`
>
> /usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.7,'
> /usr/ports/lang/python27/work/Python-2.7.3/Tools/scripts/idle  >
> /usr/ports/lang/python27/work/`echo idle | /usr/bin/sed -E -e
> 's,smtpd,smtpd2.7,'  -e 's,2to3,2to3-2.7,'  -e
> 's,(idle|pydoc|python-shared|python),\12.7,'`
>
> /usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.7,'
> /usr/ports/lang/python27/work/Python-2.7.3/Tools/scripts/pydoc  >
> /usr/ports/lang/python27/work/`echo pydoc | /usr/bin/sed -E -e
> 's,smtpd,smtpd2.7,'  -e 's,2to3,2to3-2.7,'  -e
> 's,(idle|pydoc|python-shared|python),\12.7,'`
>
> /usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.7,'
> /usr/ports/lang/python27/work/Python-2.7.3/Tools/scripts/smtpd.py  >
> /usr/ports/lang/python27/work/`echo smtpd.py | /usr/bin/sed -E -e
> 's,smtpd,smtpd2.7,'  -e 's,2to3,2to3-2.7,'  -e
> 's,(idle|pydoc|python-shared|python),\12.7,'`
>
> /usr/bin/sed -i.bak -e
> 's,/usr/doc/python-docs-,/usr/local/share/doc/python,g'
> /usr/ports/lang/python27/work/Python-2.7.3/Lib/pydoc.py
>
> /usr/bin/sed -i.bak -e  's|^\( *prefixes = .*\)\]$|\1, "/usr/local"]|g'
> /usr/ports/lang/python27/work/Python-2.7.3/Lib/site.py
>
> /usr/bin/sed -i.bak -e  's|^ \(..ASDLGEN.*\)$|  true|g;
> s|[(]LIBDIR[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
> /usr/ports/lang/python27/work/Python-2.7.3/Makefile.pre.in
>
> /usr/bin/sed -i.bak -e  's|*\(..INSTALL_SCRIPT.*\)python-config$|#port \1|'
> /usr/ports/lang/python27/work/Python-2.7.3/Makefile.pre.in
>
> /usr/bin/sed -e 's|^#!.*|#!/usr/local/bin/python2.7|'
> /usr/ports/lang/python27/work/Python-2.7.3/Misc/python-config.in >
> /usr/ports/lang/python27/work/python2.7-config
>
> /usr/bin/sed -e 's|^#!.*|#!/usr/local/bin/python-shared2.7|'
> /usr/ports/lang/python27/work/Python-2.7.3/Misc/python-config.in >
> /usr/ports/lang/python27/work/python-shared2.7-config
>
> ===>  Applying FreeBSD patches for python27-2.7.3_2
>
> ===>   python27-2.7.3_2 depends on shared library: intl - found
>
> ===>  Configuring for python27-2.7.3_2
>
> checking for --enable-universalsdk... no
>
> checking for --with-universal-archs... 32-bit
>
> checking MACHDEP... freebsd7
>
> checking EXTRAPLATDIR...
>
> checking machine type as reported by uname -m... i386
>
> checking for --without-gcc... no
>
> checking for gcc... gcc42
>
> checking whether the C compiler works... no
>
> configure: error: in
> `/usr/ports/lang/python27/work/Python-2.7.3/portbld.static':
>
> configure: error: C compiler cannot create executables
>
> See `config.log' for more details
>
> ===>  Script "../configure" failed unexpectedly.
>
> Please report the problem to python@FreeBSD.org [maintainer] and attach the
>
> "/usr/ports/lang/python27/work/Python-2.7.3/portbld.static/config.log"
>
> including the output of the failure of your make command. Also, it might be
>
> a good idea to provide an overview of all packages installed on your system
>
> (e.g. an `ls /var/db/pkg`).
>
> *** Error code 1
>
> Stop in /usr/ports/lang/python27.
>
> *** Error code 1
>
> Stop in /usr/ports/lang/python27.
>
>
>
>
> [root@nemesis /usr/ports/lang/python27]# ls /var/db/pkg/
> alpine-2.00_1                libX11-1.1.3_1,1
> p5-Convert-UUlib-1.11,1      p5-TimeDate-1.16,1
> amavisd-new-2.6.1_1,1        libXau-1.0.3_2
> p5-Crypt-OpenSSL-Bignum-0.04 p5-URI-1.37
> apache-2.2.9_5               libXdmcp-1.0.2_1
> p5-Crypt-OpenSSL-RSA-0.25    p5-Unix-Syslog-1.1
> arc-5.21o_1                  libXext-1.0.3,1
> p5-Crypt-OpenSSL-Random-0.04 p5-YAML-0.66
> arj-3.10.22_1                libXi-1.1.3,1
> p5-Digest-HMAC-1.01          p5-gettext-1.05_2
> aspell-0.60.6_2              libXinerama-1.0.2,1
> p5-Digest-MD5-2.36_1         p5-libwww-5.814
> autoconf-2.62                libXp-1.0.0,1                p5-Digest-SHA-5.47
> p7zip-4.58
> autoconf-wrapper-20071109    libXt-1.0.5_1
> p5-Digest-SHA1-2.11          pcre-7.7_1
> avahi-app-0.6.23             libXtst-1.0.3_1
> p5-Encode-Detect-1.01        perl-5.8.8_1
> bash-3.2.39_1                libassuan-1.0.4
> p5-ExtUtils-CBuilder-0.24    pico-alpine-2.00_1
> bigreqsproto-1.0.2           libcheck-0.9.8
> p5-ExtUtils-ParseXS-2.19     pkg-config-0.23_1
> cabextract-1.2               libdaemon-0.12               p5-File-Temp-0.20
> pkgdb.db
> clamav-0.97.3_1              libgcrypt-1.4.1_1            p5-File-Which-0.05
> pop-before-smtp-1.42
> clamfilter-0.5_2             libgmp-4.2.3                 p5-GSSAPI-0.26
> popa3d-standalone-1.0.2_1
> curl-7.18.0                  libgpg-error-1.6_1
> p5-HTML-Parser-3.56_1        portaudit-0.5.12
> db41-4.1.25_4                libiconv-1.11_1
> p5-HTML-Tagset-3.20          portupgrade-2.4.6,2
> db42-4.2.52_5                libidn-1.8_2                 p5-HTML-Tree-3.23
> postfix-2.5.4,1
> dbus-1.2.1                   libiodbc-3.52.6
> p5-IO-Compress-Base-2.015    printproto-1.0.3
> dbus-glib-0.76               libksba-1.0.3
> p5-IO-Compress-Zlib-2.015    pth-2.0.7
> diablo-jdk-1.6.0.07.02       libltdl-2.4_1
> p5-IO-Multiplex-1.09         qmake-3.3.8_1
> ejabberd-2.1.5               libmng-1.0.10
> p5-IO-Socket-INET6-2.52      razor-agents-2.84
> erlang-r12b4,1               libtool-1.5.26
> p5-IO-Socket-SSL-1.15        recordproto-1.13.2
> expat-2.0.1                  libtool-2.4_1                p5-IO-String-1.08
> ripole-0.2.0
> file-4.25                    libxml2-2.6.32               p5-IO-Zlib-1.09
> rpm2cpio-1.2_2
> freeze-2.5_2                 linux_base-fc-4_13
> p5-IO-stringy-2.110          ruby-1.8.6.287,1
> gamin-0.1.9_2                lsof-4.81D,2
> p5-MIME-Base64-3.07          ruby18-bdb-0.6.4
> gdbm-1.8.3_3                 lynx-2.8.6.5_4,1
> p5-MIME-Tools-5.427,2        sudo-1.6.9.17
> gettext-0.17_1               lzo2-2.03_2                  p5-Mail-DKIM-0.32
> tcl-8.4.19,1
> gio-fam-backend-2.16.5       lzop-1.02.r1
> p5-Mail-SpamAssassin-3.2.5   tftp-hpa-0.48_1
> glib-2.16.5                  m4-1.4.11,1                  p5-Mail-Tools-2.02
> tk-8.4.19,2
> gmake-3.81_3                 mDNSResponder-108
> p5-Math-BigInt-1.89          unrar-3.80.b2,5
> gnome_subr-1.0               mailman-2.1.11
> p5-Module-Build-0.28.08_2    unzoo-4.4_2
> gnupg-2.0.9_2                mtools-3.9.10_4              p5-Net-1.22,1
> varnish-2.0.6
> help2man-1.36.4_2            mysql-client-5.1.28_1        p5-Net-DNS-0.63
> vim-lite-7.2.14
> inputproto-1.4.2.1           mysql-server-5.1.28_1        p5-Net-IP-1.25
> vsftpd-ssl-2.0.7
> isc-dhcp3-server-3.0.5_2     openwebmail-2.53
> p5-Net-Netmask-1.9015        xcmiscproto-1.1.2
> ispell-3.3.02_4              p5-Archive-Tar-1.38_1        p5-Net-SSLeay-1.35
> xextproto-7.0.2
> javavmwrapper-2.3.2          p5-Archive-Zip-1.24          p5-Net-Server-0.97
> xf86bigfontproto-1.1.2
> jpeg-6b_7                    p5-Authen-SASL-2.12
> p5-PathTools-3.2701          xineramaproto-1.1.2
> kbproto-1.0.3                p5-BerkeleyDB-0.34           p5-Socket6-0.22
> xproto-7.0.10_1
> lcms-1.17,1                  p5-Compress-Raw-Zlib-2.015   p5-Spiffy-0.30
> xtrans-1.0.4
> lha-1.14i_6                  p5-Compress-Zlib-2.015
> p5-Test-Base-0.54_1          zoo-2.10.1_2
> libICE-1.0.4_1,1             p5-Convert-BinHex-1.119      p5-Text-Iconv-1.7
> zsh-4.3.6_7
> libSM-1.0.3_1,1              p5-Convert-TNEF-0.17
> p5-Time-HiRes-1.9715,1
>

I've just built python27-2.7.3_2 successfully on an amd64 7.1-RELEASE
jail with following dependencies:

gettext-0.18.1.1
libiconv-1.14
libtool-2.4.2

Could you update the related ports and try again?
BTW, 7.1 is not officially supported, please consider upgrade your system.

-- 
Li-Wen Hsu
http://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKBkRUzqGobiGVSrKg_y5F6gokOWQb-jQYtFKt3CL=urdogHgg>