The Compiler Failed to Generate an Executable File. (Runtimeerror)

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



Leave a reply



Submit