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
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
This is in part due to Oracle’s missing definitions of the JRE8 VM capabilities. In case you don’t want to install JRE6 at all and simply use JRE8 without symlinking it to the JRE6 either you can do the following: Copy the Info.plist located at the path named below to e.g. ~/Downloads/: /Library/Java/JavaVirtualMachines/jdk.1.8.<…>/Contents/ and then … Read more
If you decide to use a newer therubyracer gem version, you will no longer have this problem Otherwise: brew tap homebrew/dupes # Thanks Tom brew install apple-gcc42 export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2 export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2 brew uninstall v8 gem uninstall libv8 gem install therubyracer -v ‘0.10.2’ # specify version
I know that this is a late answer, but in my case this command solved the issue: sudo xcode-select –switch /Applications/Xcode.app/Contents/Developer
You can also install Nokogiri on Mac OS X 10.9 Mavericks with full XCode Install using: gem install nokogiri — –with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2 Update For those using Yosemite the following command will work: gem install nokogiri — –with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 –use-system-libraries or, it might actually be in your MacOSX10.11.sdk folder (mine was as of 18-Sep-2015) anyways, so even if … Read more
If you want to avoid using MacPorts, you can download the Postgres App and place it into the Application directory. Then, specify the location of newly downloaded pg_config: gem install pg — –with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config If you run in to missing headers problem, try specifying the include directory of the app: gem install pg — –with-pg-include=”/Applications/Postgres.app/Contents/Versions/latest/include/”
I had used home-brew to install 2.7 on OS X 10.10 and the new install was missing the sym links. I ran brew link –overwrite python as mentioned in How to symlink python in Homebrew? and it solved the problem.
I had the same problem and solved it by running the following command: sudo /Library/StartupItems/VirtualBox/VirtualBox restart In later versions, the command is sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart Make sure you’ve unblocked VirtualBox’s kernel extensions in System Preferences->Security and Privacy->General (You’ll get a popup when you install VirtualBox).
I suggest you run: $ brew update && brew upgrade Until couple of minutes ago I had this problem, too. Because I have an up to date PHP version, I solved it with: $ brew reinstall php55 Hope that helps.
Following worked for me: ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /usr/local/include/X11 sudo pip install pil UPDATE: But there is more correct solution below, provided by Will. open your terminal and execute: xcode-select –install