Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2017 20:58:31 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        "Sijmen J. Mulder" <ik@sjmulder.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Best way to set up a build environment in /compat/linux
Message-ID:  <20171127205831.730be29d@kalimero.tijl.coosemans.org>
In-Reply-To: <1a02e783-b99e-fbc5-3809-91b452ab699d@sjmulder.nl>
References:  <1a02e783-b99e-fbc5-3809-91b452ab699d@sjmulder.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 21 Nov 2017 12:49:25 +0100 "Sijmen J. Mulder" <ik@sjmulder.nl> wrote:
> With Linux emulation enabled I can successfully run a statically linked 
> Linux binary that I built on an Ubuntu system (with musl libc).
> 
> I'd like to install the necessary development tools (compilers, 
> libraries, headers, etc) in the Linux compat environment. It appears 
> that linux_base-c6 does not contain a package manager (yum or dnf). 
> What's the best way to install these tools? Did people have success 
> installing and using a package manager, or should I manually download 
> RPMs, or even compile from source?
> 
> The wiki has this guide: https://wiki.freebsd.org/VIMAGE/Linux/CentOS55 
> but it's rather old and I couldn't learn much from it.
> 
> Alternatively I'd also be interested in cross compiling to Linux 
> directly from FreeBSD, if that's more practical. Still I'd need the 
> headers and libraries.

Installing linux-c6-devtools will give you a C compiler.  There are
many other linux-c6-* ports that install additional libraries, but
none of them install the corresponding headers.  You could download
-devel packages from http://mirror.centos.org/centos/6.9/ (os/ and
updates/ subdirectories) and unpack them with tar.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171127205831.730be29d>