3

I can't seem to get gem install charlock_holmes -v 0.6.9.4 to work.

I can hand edit the ./ext/charlock_holmes/extconf.rb and includ

$INCFLAGS << " -I/usr/local/include "
$LDFLAGS << " -L/usr/local/lib "

execute make cleanly and re-write the spec file via

gem spec ../../cache/charlock_holmes-0.6.9.4.gem --ruby > ../../specifications/charlock_holmes-0.6.9.4.gemspec 

and make it a local gem.

  1. How do I get the gem to install?
  2. There must be a better way to append what amounts to CPPFLAGS and LDFLAGS to the gem install.

closed as off-topic by kce, Ward, Tim Brigham, mdpc, TheCleaner Feb 27 '14 at 14:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – kce, Ward, Tim Brigham, mdpc, TheCleaner
If this question can be reworded to fit the rules in the help center, please edit the question.

9

It appears the suffix --with-cppflags=-I/usr/local/include and --with-ldflags=-L/usr/local/lib resulting in

gem install charlock_holmes -v 0.6.9.4 -- --with-cppflags=-I/usr/local/include --with-ldflags=-L/usr/local/lib

Accomplishes both 1 & 2 from above.

Not the answer you're looking for? Browse other questions tagged or ask your own question.