adhearsion / ruby_speech

A ruby library for TTS & ASR document preparation
MIT License
101 stars 41 forks source link

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

Closed scarver2 closed 11 years ago

scarver2 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

scarver2 commented 11 years ago

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 commented 11 years ago

Fixed :)

wyaldalex commented 6 years ago

Thanks a lot :+1: