From owner-freebsd-questions@freebsd.org Tue Nov 21 11:49:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43871DEBBD3 for ; Tue, 21 Nov 2017 11:49:00 +0000 (UTC) (envelope-from ik@sjmulder.nl) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 170516AB00 for ; Tue, 21 Nov 2017 11:48:59 +0000 (UTC) (envelope-from ik@sjmulder.nl) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6B00A20C47 for ; Tue, 21 Nov 2017 06:48:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 21 Nov 2017 06:48:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sjmulder.nl; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=ugcyaXpHwpTAmwfYFcWcpWnWOvPjrbisgGUoJNT2rOg=; b=Krume y7iUuRm1yEUIzfPMuRCJl1+cgQyXb+JfZgb8lK6Y1iHwSK3fjYMTAb33u1o3MCEY 3VxxN83Jr9baQAwW+LkA9LKmeLjK1A2SK89VYQTDbEBjG9ZL4SZP1ycvB/HJH8ae 9TigzBVz8CiZELEuyml4Nwbaxp2mAhzAw4QzaI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=ugcyaXpHwpTAmwfYFcWcpWnWOvPjr bisgGUoJNT2rOg=; b=MgGReqlYDoD5UV0SWlCcPOXwStvyt/lyCR/igjy9SbERd gT4NnirXN36HzLMPkL1ACxFalamMN2JLEdi1VfDG2mPpcLKOhRtvHXwXCWlPmADx ZA1St2/fZPCINWnRSDfqkMEC2Xf1B76kmMEUXBwjmWOurHzWjFQp2bGyDUG0B/xJ MDTBnsAe4Wbqo+PQvhiVSJ1zwADjM6VXBEkz1AxnWtE7DLB5tRCTthNPc3WqB43i 1qJDNCnqAsPgT32EvWUE0EqHVTsQKG9JJyk/cjkYfeSg/zspWsiBVJBOigtZBdm+ Pa57PXUtks3NBVo26tpeeZ0j25f4G5ZMw1DFGj8JQ== X-ME-Sender: Received: from [10.50.6.46] (unknown [87.213.224.178]) by mail.messagingengine.com (Postfix) with ESMTPA id F245F7EF61 for ; Tue, 21 Nov 2017 06:48:57 -0500 (EST) To: freebsd-questions@freebsd.org From: "Sijmen J. Mulder" Subject: Best way to set up a build environment in /compat/linux Message-ID: <1a02e783-b99e-fbc5-3809-91b452ab699d@sjmulder.nl> Date: Tue, 21 Nov 2017 12:49:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 11:49:00 -0000 Hi all, 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. Cheers, Sijmen