Skip to content
This repository has been archived by the owner on Mar 31, 2018. It is now read-only.

installed gd2 with macports but can't install node-gd using npm #6

Open
pkyeck opened this issue Jul 28, 2011 · 4 comments
Open

installed gd2 with macports but can't install node-gd using npm #6

pkyeck opened this issue Jul 28, 2011 · 4 comments

Comments

@pkyeck
Copy link

pkyeck commented Jul 28, 2011

hi,
title says it all: i installed gd2 with macports and am now trying to install node-gd with NPM - but it fails because it can't find the gd files in /usr/local/* (macports installs everything into /opt/local/*).

is there any way i can change /usr/local/ to /opt/local to get the installation to complete?

thx

@mattpowell
Copy link

Just ran in to this same issue. The fix is to run export CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' LDLIBS='-lgd' right before running node-waf configure build. I didn't try it, but, I believe this would work if you ran npm install node-gd too.

@mikesmullin
Copy link

see also: kaiwaldron@0abdf13

@zaro
Copy link

zaro commented Mar 20, 2013

I am using homebrew and I did :

$ brew install gd

after that npm install gd was working.

@mikesmullin
Copy link

thank you will add to README

zaro referenced this issue in zaro/node-gd Jun 13, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants