dominictarr / feedopensource

Iteratively Fund Open Source Projects With Bitcoin
feedopensource.com
MIT License
142 stars 16 forks source link

[solution] fatal error: gif_lib.h: No such file or directory (during npm install) #25

Closed joates closed 10 years ago

joates commented 10 years ago

if you get this error during npm install of "canvas-progress-bar".. ( which is a dependency of btcprogress )

../src/Image.h:20:21: fatal error: gif_lib.h: No such file or directory

screenshot: canvas-progress-bar-fatal-error_screenshot

it's because you are missing the package libgif-dev

fix for ubuntu linux is: sudo apt-get install libgif-dev

joates commented 10 years ago

i'd guess the mac OSX fix is: brew install libgif-dev

but i cannot confirm as i am not a mac user.

anyway closing this as i'm just using it to document the fix/solution so that it is searchable.

dominictarr commented 10 years ago

see also node-canvas

franklinwise commented 9 years ago

brew install giflib

acrolink commented 7 years ago

I have managed to solve this issue under openSUSE by: A. Downloading latest giflib-devel rpm from: https://rpmfind.net/linux/rpm2html/search.php?query=giflib-devel B. Installing it using zypper install .rpm

mutantkeyboard commented 6 years ago

Sorry to reopen this, but apt install libgif-dev solves the problem on Debian based systems.