node-gd icon indicating copy to clipboard operation
node-gd copied to clipboard

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

Open pkyeck opened this issue 13 years ago • 4 comments

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

pkyeck avatar Jul 28 '11 22:07 pkyeck

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.

mattpowell avatar Mar 25 '12 07:03 mattpowell

see also: https://github.com/kaiwaldron/node-gd/commit/0abdf1325b2284d4a5980f6306a0a986b0c90e49

mikesmullin avatar Dec 28 '12 00:12 mikesmullin

I am using homebrew and I did :

$ brew install gd

after that npm install gd was working.

zaro avatar Mar 20 '13 11:03 zaro

thank you will add to README

mikesmullin avatar Mar 20 '13 19:03 mikesmullin