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 [email protected] dependencies field should be hash of
<name>:<version-range> pairs
npm WARN [email protected] 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
> [email protected] preinstall /home/khine/sandboxes/livestats/node_modules/geoip
> 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 <[email protected]> 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. -I/usr/local/include (to find the header(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
>
--
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"