On Tue, Jul 3, 2012 at 1:14 PM, Bernard Muluuta 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 pyt...@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_1libX11-1.1.3_1,1
> p5-Convert-UUlib-1.11,1 p5-TimeDate-1.16,1
> amavisd-new-2.6.1_1,1libXau-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.25p5-Unix-Syslog-1.1
> arc-5.21o_1