Basically you're going to want to write a .gyp file for libgeoip, and then
add that file as a "dependency" in node-geoip's binding.gyp file. I wrote a
blog post laying out my method for doing this a while ago:
http://n8.io/converting-a-c-library-to-gyp/


On Tue, Apr 30, 2013 at 7:42 PM, kuno <[email protected]> wrote:

> Hi all:
>   As some of you might know, I am the author of `GeoIP`, the libgeoip
> binding for nodejs.
>
> Currently, if you want to install geoip, if required you have the libgeoip
> C library pre-installed on somewhere in you system, otherwise, this module
> wont be able to build.
>
> But with this way, it caused a lot of confuses for the users of this
> module. Because it seems a lot of users dose not fully aware of it required
> libgeoip pre-installed.
>
> So I decide to include the libgeoip source code into the module itself,
> and use `node-gyp` to build, rather than depending on system wide
> pre-installation.
>
> But to be honest, I have virtually no idea how to do so, Can someone kind
> enough to give some advices on this, or point me to some useful resource or
> similar node project that I can refer to?
>
> -- Thanks
>
> -- kuno
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to