sferik / t-ruby

A command-line power tool for Twitter.
http://sferik.github.com/t
MIT License
5.43k stars 408 forks source link

Building t on OSX #312

Open tof92130 opened 8 years ago

tof92130 commented 8 years ago

Hello, I need some help, the installation of t works perfectly on OS X but sometime...

Building native extensions. This could take a while... ERROR: Error installing t: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/http_parser.rb-0.6.0 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser/gem_make.out

smalleel commented 8 years ago

Hi there!

Sounds like you probably need the ruby developer tools installed! On mac, you can do this with xcode. Try running the following:

xcode-select --install

Similarly, if you find this error on debian, try:

sudo apt-get install ruby-dev

I hope that helps! I'll see about adding a note in the docs regarding this.