The compiler failed to generate an executable file. (RuntimeError)
It turns out this is a bug in RailsInstaller OSX 1.0.3 - (Found that out while reading Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile)
I needed to change /etc/rvmrc
to contain this:
umask g+w
export -a rvm_configure_env
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
For more info see: https://github.com/railsinstaller/railsinstaller-nix/issues/10
Installing ruby debug19. Compiler failed to generate an executable file
I had a similar problem, but with installing the nokogiri
gem, and I solved it with the following:
cd /usr/bin
sudo ln -s llvm-gcc-4.2 gcc-4.2
See Bundle update & install fail after OS X lion upgrade - Rails 3
Problem installing old version of Rails 5.2.2 - Failed to build gem native extension
The problem occurred when ruby was installed using sudo apt install ruby
.
Solution: Install ruby via RVM.
Related Topics
How to Make Httparty Ignore Ssl
Ruby - Digest::Digest Is Deprecated; Use Digest
Ruby: Split String at Character, Counting from the Right Side
Form_For Error Messages in Ruby on Rails
How Does Require Rubygems Help Find Rubygem Files
Why Does Ruby's String#To_I Sometimes Return 0 When the String Contains a Number
Breaking Up Long Strings on Multiple Lines in Ruby Without Stripping Newlines
How to Remove the String "\N" from Within a Ruby String
In Ruby, How to Make a Hash from an Array
How to Generate Links with Trailing Slash in Rails 3
Use of Caret Symbol (^) in Ruby
How to Use Params with Slashes with Sinatra