therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension
This steps worked for me.
OS: Maverick
Ruby: 2.1.1
gem uninstall libv8
gem install therubyracer -v '0.11.3'
gem install libv8 -v '3.11.8.13' -- --with-system-v8
gem install libv8 -v '5.3.332.38.1' ... Error installing libv8: ERROR: Failed to build gem native extension
Try this (requires Homebrew):
brew install v8
gem install libv8 -- --with-system-v8
For a specific version:
gem install libv8 -v '5.3.332.38.1' -- --with-system-v8
but I'm assuming the version number would need to match whatever the Homebrew formula version of v8 is.
Can't install libv8 gem on Cygwin
Since your question mentioned Cygwin, I assume you are Windows user. Currently, there's no way to install therubyracer or libv8 in Windows as said by its maintainer: therubyracer gem on windows. Windows is not Rails land unfortunately.
If you do need libv8, you can try nodejs instead. It comes with a binary, handy for all platform.
Related Topics
How to Make a Specific Gem Version as Default
Ruby on Rails - Using Concerns in Controllers
How to Sort a Ruby Array of Strings by Length
Install Rvm "Bash /Root/.Rvm/Scripts/Rvm No Such File or Directory"
Dynamic CSS in Rails Asset Pipeline, Compile on Fly
How to Implement Options Hashes in Ruby
Postgres Range Fields + Rails Forms
How to Resolve Deprecation Warnings for Openssl::Cipher::Cipher#Encrypt
Rails Custom Validation - Only One Record Can Be True
Xpath Parent Attribute of Selection
How to Configure Config.Yml So That I Can Install Devkit
How to Make a Check Box Default to Being "Checked" in Rails 1.2.3
Deleting the Current Session with Rack::Session::Cookie
How to Test Instance Variable Was Instantiated in Controller with Rspec
How to Split String into Paragraphs Using First Comma
How to Elegantly Symbolize_Keys for a 'Nested' Hash