Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2012 21:05:40 +0100
From:      Norman Khine <norman@khine.net>
To:        Ade Lovett <ade@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: installing GeoIP
Message-ID:  <CAKgQ7UJj55_N7Tsv1ywS9Jky8RLCgZsdQ_wYgUDdV2tfAFaKKQ@mail.gmail.com>
In-Reply-To: <4F5509E4.4040808@FreeBSD.org>
References:  <CAKgQ7UJogA3iH=XiFGz46NBLTdj-bet=Bv=CWuuQeYsr0rXeuQ@mail.gmail.com> <4F54FD0B.9070401@acsalaska.net> <CAKgQ7U%2BGRyR0L7hS4WMAgJRABFVe%2BGiy0hOsROEo3n807tqLPg@mail.gmail.com> <CAKgQ7UJffa951O-k-LqA7E72eEPkQE3JwkZh%2Bom0-1Ky89EJ4Q@mail.gmail.com> <4F5509E4.4040808@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<name>:<version-range> 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 <ade@freebsd.org> 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" ] )



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