gree / lwfs

LWFS - LWF conversion/preview system for designers/developers
Other
59 stars 16 forks source link

Can't install using install.md #10

Closed hectoraofl closed 8 years ago

hectoraofl commented 8 years ago

The last command I run gives me this error: bundle install --no-cache Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Resolving dependencies... Using actioncompiler 1.0.2 Using daemons 1.2.3 Using eventmachine 1.0.8 Using httpclient 2.6.0.1 Using libxml-ruby 2.8.0 Using rack 1.6.4 Using rack-protection 1.5.3 Using rb-fsevent 0.9.6 Installing rb-img 0.0.9 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/Users/hector.llanos/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151103-17333-1vtsjfz.rb extconf.rb

checking for zlib.h... yes checking for png.h... no checking for jpeglib.h... no checking for main() in -lz... yes checking for main() in -lpng... no checking for main() in -ljpeg... no creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling img.c img.c:13:10: fatal error: 'png.h' file not found

include

     ^

1 error generated. make: *\ [img.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/hector.llanos/.rvm/gems/ruby-2.2.1/gems/rb-img-0.0.9 for inspection. Results logged to /Users/hector.llanos/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/rb-img-0.0.9/gem_make.out An error occurred while installing rb-img (0.0.9), and Bundler cannot continue. Make sure that gem install rb-img -v '0.0.9' succeeds before bundling.

KojiNakamaru commented 8 years ago

Please install jpeglib and libpng. If you use homebrew, you can install them as below:

brew install jpeg libpng

Also, please check https://github.com/gree/lwfs/releases/tag/20150716-1509 . If you want to utilize LWFS as is, it should be sufficient to utilize these prebuilt binaries.

hectoraofl commented 8 years ago

ah thank you. Yes I am using the prebuilt now too.