From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 20:05:40 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE41F1065674 for ; Mon, 5 Mar 2012 20:05:40 +0000 (UTC) (envelope-from norman@khine.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7AB98FC14 for ; Mon, 5 Mar 2012 20:05:40 +0000 (UTC) Received: by iahk25 with SMTP id k25so8164676iah.13 for ; Mon, 05 Mar 2012 12:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of norman@khine.net designates 10.42.157.69 as permitted sender) client-ip=10.42.157.69; Authentication-Results: mr.google.com; spf=pass (google.com: domain of norman@khine.net designates 10.42.157.69 as permitted sender) smtp.mail=norman@khine.net Received: from mr.google.com ([10.42.157.69]) by 10.42.157.69 with SMTP id c5mr14337044icx.17.1330977940431 (num_hops = 1); Mon, 05 Mar 2012 12:05:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.157.69 with SMTP id c5mr11817341icx.17.1330977940351; Mon, 05 Mar 2012 12:05:40 -0800 (PST) Received: by 10.50.170.106 with HTTP; Mon, 5 Mar 2012 12:05:40 -0800 (PST) In-Reply-To: <4F5509E4.4040808@FreeBSD.org> References: <4F54FD0B.9070401@acsalaska.net> <4F5509E4.4040808@FreeBSD.org> Date: Mon, 5 Mar 2012 21:05:40 +0100 Message-ID: From: Norman Khine To: Ade Lovett Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlb9inMsMjobvNIyH99RZ+UB2W+Bt6WYVKcyNorxGE6UD18+8C7rrtaGxJ4Q4pBwWdBv1si Cc: freebsd-ports@freebsd.org Subject: Re: installing GeoIP X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 20:05:40 -0000 so the problem is not my freebsd box but the package GeoIP that does not buid on my box? as when i do this: $ npm install geoip npm WARN node-static@0.5.9 dependencies field should be hash of : pairs npm WARN riak-js@0.4.1 package.json: bugs['web'] should probably be bugs['url'] npm http GET https://registry.npmjs.org/geoip npm http 304 https://registry.npmjs.org/geoip > geoip@0.4.5 preinstall /home/khine/sandboxes/livestats/node_modules/g= eoip > node-waf clean || (exit 0); node-waf configure build Nothing to clean (project not configured) Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok Checking for node path : not found Checking for node prefix : ok /home/khine 'configure' finished successfully (0.019s) Waf: Entering directory `/home/khine/sandboxes/livestats/node_modules/geoip/build' so, would i need to change this file https://github.com/kuno/GeoIP/blob/master/wscript as is not finding the correct paths to the llibrararies? On Mon, Mar 5, 2012 at 7:45 PM, Ade Lovett wrote: > On 3/5/2012 10:32, Norman Khine wrote: >> >> when i run >> >> $ /usr/bin/ld -lGeoIP >> /usr/bin/ld: cannot find -lGeoIP >> >> perhaps i have a problem with the settings of my location of the >> headers in my linker path. >> >> how do i verify this? > > > As has already been explained. =C2=A0-I/usr/local/include (to find the he= ader(s)) > and -L/usr/local/lib (to find the library) > > cc -I/usr/local/include -o example example.c -L/usr/local/lib -lGeoIP > > This is "Compilation of Stuff 101" -- it most likely isn't an issue on > Linux, since there's a tendency to just stuff everything in /usr/include, > /usr/lib and friends which will be poked at by the compiler by default. > > -aDe > --=20 %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )