On Mac OSX 10.10 Yosemite
$ rvm -v
rvm 1.26.10 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
$ rvm list
rvm rubies
* ruby-1.9.2-p320 [ x86_64 ]
=> ruby-1.9.3-p551 [ x86_64 ]
ruby-2.0.0-p451 [ x86_64 ]
ruby-2.1.1 [ x86_64 ]
$ gem install fastthread -v '1.0.7'
Building native extensions. This could take a while...
ERROR: Error installing fastthread:
ERROR: Failed to build gem native extension.
/Users/joel/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20150217-53934-1vamxar.rb extconf.rb
extconf.rb:13: Use RbConfig instead of obsolete and deprecated Config.
make clean
Makefile:81: *** missing separator. Stop.
make
Makefile:81: *** missing separator. Stop.
make failed, exit code 2
Gem files will remain installed in /Users/joel/.rvm/gems/ruby-1.9.3-p551/gems/fastthread-1.0.7 for inspection.
Results logged to /Users/joel/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-14/1.9.1/fastthread-1.0.7/gem_make.out
Any help or pointer is most welcome.
fastthread
only works on MRI. It replaces/hooks into the private internal implementation details of MRI's green threads implementation. It does not work on any other Ruby implementation. In particular, it won't work on YARV, which you are using, because YARV has a completely different threading implementation based on native OS threads, not green threads.
Note that maintenance on MRI ended on July 31st, 2014. You really shouldn't be using MRI anymore. Plus, MRI only implements Ruby 1.8, whose maintenance also ended July 31st, 2014.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With