webp-ffi: Error installing on MacOS
I’ve sucessfully installed the dependencies via brew…
Installing webp-ffi 0.2.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/viegas/.rvm/rubies/ruby-2.2.4/bin/ruby -rubygems /Users/viegas/.rvm/gems/ruby-2.2.4/gems/rake-12.0.0/exe/rake RUBYARCHDIR=/Users/viegas/.rvm/gems/ruby-2.2.4/extensions/x86_64-darwin-15/2.2.0/webp-ffi-0.2.5 RUBYLIBDIR=/Users/viegas/.rvm/gems/ruby-2.2.4/extensions/x86_64-darwin-15/2.2.0/webp-ffi-0.2.5
mkdir -p x86_64-darwin
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -arch x86_64 -DHAVE_PUTS=1 -DHAVE_WEBPDECODERCONFIG=1 -DHAVE_WEBPGETINFO=1 -DHAVE_STDIO_H=1 -o x86_64-darwin/jpegdec.o -c ./jpegdec.c
In file included from ./jpegdec.c:1:
././jpegdec.h:3:10: fatal error: 'webp/encode.h' file not found
#include "webp/encode.h"
^
1 error generated.
rake aborted!
Command failed with status (1): [gcc -fexceptions -O -fno-omit-frame-pointe...]
/Users/viegas/.rvm/gems/ruby-2.2.4/gems/ffi-compiler-1.0.1/lib/ffi-compiler/compile_task.rb:133:in `block (2 levels) in define_task!'
/Users/viegas/.rvm/gems/ruby-2.2.4/gems/rake-12.0.0/exe/rake:27:in `<main>'
Tasks: TOP => default => x86_64-darwin/libwebp_ffi.bundle => x86_64-darwin/jpegdec.o
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /Users/viegas/.rvm/gems/ruby-2.2.4/gems/webp-ffi-0.2.5 for inspection.
Results logged to /Users/viegas/.rvm/gems/ruby-2.2.4/extensions/x86_64-darwin-15/2.2.0/webp-ffi-0.2.5/gem_make.out
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 22 (10 by maintainers)
@le0pard Thanks so much for the quick reply. The final working configs are
And bumping to > 0.3.1
sudo apt install libwebp-dev
Or just add in bashrc/zshrc
Having the same issue on an Apple M1
This returns the identical running error from above. I tried installing webp on both x86 and arm64 brews too. Same results.
Any ideas?