From owner-freebsd-questions@FreeBSD.ORG Fri May 13 05:39:41 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5034106564A for ; Fri, 13 May 2011 05:39:41 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 1A2AB8FC18 for ; Fri, 13 May 2011 05:39:40 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id p4D5dbsW039683 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 13 May 2011 06:39:37 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p4D5dbsW039683 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1305265177; bh=7UyxYqJtUMXU+ap/W+Hm1AQ6EpHKRikil8ogTXEeKF0=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4DCCC412.1010004@infracaninophile.co.uk>|Date:=20F ri,=2013=20May=202011=2006:39:30=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.17)=20Gecko/20110414=20Thunderbird/3.1.10|MIME-Version:=20 1.0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20How=20do= 20you=20"install"=20utility=20built=20using=20gnu=20toolchain?|Ref erences:=20|In-Reply-To:=20|X-Enigmail-Version:=201.1.1|OpenPGP:=20id= 3D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1 =3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boun dary=3D"------------enig8F9F4ECA3E680B904FC16F92"; b=hWSfoLsoAtr+J/xj+IP0ZSyytvi4Y8y1gFGijFVH3/MmFev/fL+F9CNZ8qATRb0/e tHMh8XHrB9VWnSxG755wz9G9KoclfjH9F7qTZBlYGdCZXAQsqaR0i6OuNuMOVTRpce BPhpJP+raQ2a23ZomrPAkdw92YcOx8ivsC1tlYNQ= Message-ID: <4DCCC412.1010004@infracaninophile.co.uk> Date: Fri, 13 May 2011 06:39:30 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8F9F4ECA3E680B904FC16F92" X-Virus-Scanned: clamav-milter 0.97 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: How do you "install" utility built using gnu toolchain? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 05:39:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8F9F4ECA3E680B904FC16F92 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/05/2011 05:29, Dale Scott wrote: > It's pretty general question, but is it typically standard procedure > for a utility building using the GNU tool chain to be able to install > itself into /usr/local/bin? E.g. "# gmake install" ?? Is there > anything a newb can check for without having to fully understand the > complete build procedure (and not destroy my system in the process)? >=20 > The mdbtools port is based on the last official release of the > project - v0.5 in 2003. I've compiled the current head of the project > from github in a personal directory and tests have passed (I'm using > a php app with mdb-export to copy data from a Jet4 database to > MySQL). Now I'd like to put the executables in /usr/local/bin for > shared access (in place of the utilities installed by the > mdbtools-0.5 port). The project builds using the GNU tool chain > without any customizations (using config and gmake). I'd prefer to do > this properly with a port, but until the project has had an official > release and I've learned how to create a port, are there any > shortcuts? I naively tried copying what I thought were the > executables, and then discovered they were shell scripts that only > ran from the build directory. Huh? >=20 > Could it be as simple as "# gmake install" (and that not be a > horribly stupid thing to try)? If you're using autotools for the configuration part (which is pretty standard) then essentially, yes: 'gmake install' should put binaries into appropriate locations. Make sure that you specify /usr/local as the prefix when running configure. It should be the default, but there's no guarrantee. Cheers, Matthew PS. You might be able to preview the installation action without installling anything by 'gmake -n install' -- sometimes this gives useful info, others not. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig8F9F4ECA3E680B904FC16F92 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3MxBkACgkQ8Mjk52CukIwc3gCfSEEzGy7h/mVZPqaPZ2mSc/vB qBsAnjRnaJh2BFZ8lK23WaYiEAaCHkyi =V8EF -----END PGP SIGNATURE----- --------------enig8F9F4ECA3E680B904FC16F92--