Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 12:13:11 +0800
From:      Li-Wen Hsu <lwhsu@freebsd.org>
To:        John Klos <john@ziaspace.com>
Cc:        FreeBSD Python Team <freebsd-python@freebsd.org>
Subject:   Re: VirtualBox won't build from ports
Message-ID:  <CAKBkRUyRnLX1QGJx%2Bcs1jHXZjcyDrUxuM_2%2BMQ5f9S91-f%2B-=A@mail.gmail.com>
In-Reply-To: <Pine.NEB.4.64.1701262015120.20145@andromeda.zia.io>
References:  <Pine.NEB.4.64.1701262015120.20145@andromeda.zia.io>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 27, 2017 at 11:28 AM, John Klos <john@ziaspace.com> wrote:
> Hi,
>
> I find it a little odd that a clean install of FreeBSD 11.0 on amd64
> followed by:
>
> portsnap fetch ; portsnap extract
> echo "DISABLE_LICENSES=yes" > /etc/make.conf
> echo "BATCH=yes" >> /etc/make.conf
> cd /usr/ports/emulators/virtualbox-ose
> make install clean
>
> fails. What's the recommended (and non-embarrassing) way to set up a clean
> FreeBSD installation with VirtualBox?
>
> Here's the error:
>
> ...
> /bin/ln -sf python-2.7.pc
> /usr/ports/lang/python3/work/stage/usr/local/libdata/pkgconfig/python2.pc
> ====> Compressing man pages (compress-man)
> ===>  Installing for python3-2_3
> ===>  Checking if python3 already installed
> ===>   Registering installation for python3-2_3 as automatic
> Installing python3-2_3...
> pkg-static: python3-2_3 conflicts with python2-2_3 (installs files into the
> same place).  Problematic file: /usr/local/bin/2to3-2
> *** Error code 70
>
> Stop.
> make[6]: stopped in /usr/ports/lang/python3
> *** Error code 1
>
> Stop.
> ...
>

(Add freebsd-python@, move freebsd-virtualization@ to BCC)

This is not emulators/virtualbox-ose's fault.  It's because it needs
python2 to build, but it conflictes with python3 which is installed on
your system.

We might need to check why both python2 and python3 install
/usr/local/bin/2to3-2, this should be suffixed.

FWIW, if there you have no special requirements, I would suggest you
to install pre-built packages with pkg(1).

Best,
Li-Wen

-- 
Li-Wen Hsu <lwhsu@FreeBSD.org>
https://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKBkRUyRnLX1QGJx%2Bcs1jHXZjcyDrUxuM_2%2BMQ5f9S91-f%2B-=A>