atmos / heroku-buildpack-ruby

my changes to the default heroku buildpack for rubby
MIT License
1 stars 1 forks source link

Cannot compile charlock_holmes #1

Open maca opened 11 years ago

maca commented 11 years ago

Hi, thanks for the buildpack.

I am not being able to compile charlock_holmes using your buildpack:

   Using carrierwave_backgrounder (0.0.7)
   Installing charlock_holmes (0.6.9)
   Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
   /usr/local/bin/ruby extconf.rb --with-icu-dir=/app/vendor/icu4c
   checking for main() in -licui18n... no
   checking for main() in -licui18n... no
   *************************************************************************
   *********** icu required (brew install icu4c or apt-get install libicu-dev) ***********
   ***************************************************************************************
   *** extconf.rb failed ***
   Could not create Makefile due to some reason, probably lack of
   necessary libraries and/or headers.  Check the mkmf.log file for more
   details.  You may need configuration options.
   Provided configuration options:
   --with-opt-dir
   --without-opt-dir
   --with-opt-include
   --without-opt-include=${opt-dir}/include
   --with-opt-lib
   --without-opt-lib=${opt-dir}/lib
   --with-make-prog
   --without-make-prog
   --srcdir=.
   --curdir
   --ruby=/usr/local/bin/ruby
   --with-icu-dir
   --with-icu-include
   --without-icu-include=${icu-dir}/include
   --with-icu-lib
   --without-icu-lib=${icu-dir}/lib
   --with-icui18nlib
   --without-icui18nlib
   --with-icui18nlib
   --without-icui18nlib
   Gem files will remain installed in /tmp/build_20yynd0t1x6xl/vendor/bundle/ruby/1.9.1/gems/charlock_holmes 0.6.9 for inspection.
   Results logged to /tmp/build_20yynd0t1x6xl/vendor/bundle/ruby/1.9.1/gems/charlock_holmes0.6.9/ext/charlock_holmes/gem_make.out
   An error occurred while installing charlock_holmes (0.6.9), and Bundler cannot continue.
   Make sure that `gem install charlock_holmes -v '0.6.9'` succeeds before bundling.
   !
   !     Failed to install gems via Bundler.
   !
   !     Heroku push rejected, failed to compile Ruby/rails app
witwall commented 11 years ago

have a look this url, https://github.com/brianmario/charlock_holmes you need run this first bundle config build.charlock_holmes --with-icu-dir=/path/to/installed/icu4c of course make sure you have install icu4c,http://site.icu-project.org/