Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trouble installing ruby 1.9.3-p194

I was making some edits to my app on a separate machine, I deployed to production on heroku which caused some errors, and now all of the sudden I am getting a bunch of errors on my main machine.

According to the command line, my issue is that I do not have ruby 1.9.3-p194 installed. I'm not sure what I can do to resolve this issue.

$ rvm install ruby-1.9.3-p194
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.

Installing Ruby from source to: /Users/glider/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/glider/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/glider/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/glider/.rvm/rubies/ruby-1.9.3-p194',
please read /Users/glider/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
like image 869
John Marbach Avatar asked Oct 10 '12 20:10

John Marbach


1 Answers

If you installed rails using railsinstaller.org, there is a bug in /etc/rvmrc. Open up that file and change the single string where rvm_configure_env is defined into three separate strings.

This is the default code with the bug:

rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include  CPATH=/opt/sm/pkg/active/include')

This is the corrected code:

rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
like image 101
Addie Avatar answered Sep 19 '22 09:09

Addie