Can't install ruby_speech gem, checking for pcre.h... no #11

Closed
scarver2 opened this Issue May 22, 2013 · 4 comments

Projects

None yet

2 participants

@scarver2

For anyone attempting to gem install ruby_speech, you must have the pcre library installed first.

On OSX with Homebrew,
brew install pcre

On Ubuntu,
sudo apt-get install libpcre3 libpcre3-dev

If you `gem install ruby_speech and get the following error, this applies to you:

/Users/username/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
checking for pcre.h... no
*** 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
    --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=/Users/username/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
extconf.rb:5:in `<main>': undefined local variable or method `lib' for main:Object (NameError)
@benlangfeld
Member

Thanks Stan, I'll make sure this is mentioned in the docs and see if we can make the build error any more friendly.

@benlangfeld
Member

I think documenting this is all we can do, I don't think there's a way to make the error friendlier :(

@scarver2

Thanks, Ben. Now that we have dialoged about this, Google will help anyone searching for "can't install ruby speech gem"

On Jun 20, 2013, at 12:14 PM, Ben Langfeld notifications@github.com wrote:

I think documenting this is all we can do, I don't think there's a way to make the error friendlier :(


Reply to this email directly or view it on GitHub.

@benlangfeld
Member

Fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment