Cannot Compile Ruby 1.9.3

Cannot compile ruby 1.9.3

you are using clang, according to this ticket http://bugs.ruby-lang.org/issues/5883 - it's not "fully" supported - you need to try using gcc-4.2, you get instructions for homebrew with running rvm requirements.

here is RVM ticket for this problem https://github.com/wayneeseguin/rvm/issues/1480

UPDATE: Ruby-2.0.0 actually compiles better with clang then with gcc-4.2, more details here: https://stackoverflow.com/a/15655034/497756

Trouble installing ruby 1.9.3 because of a configuration issue

First goal should be to get the app back up running.

Therefore I would suggest to reset your app's configuration to the last working stand.
If this is not possible, please install ruby using rvm with the --with-gg=clang-option like this:

rvm install 1.9.3 --with-gcc=clang

Then use the installed ruby version by listing all installed rubies (running rvm list) and choosing the 1.9.3 version provided (e.g. 1.9.3-p448) with the following command:

rvm --default use 1.9.3-p484

Please update your Gemfile with the ruby '1.9.3-p484' line and make sure, you're in the login shell (to change to it, use /bin/bash --login). After that your rvm commands should work again.

Cannot install Ruby 1.9.3-p194 via RBEnv due SSL_OP_MSIE_SSLV2_RSA_PADDING undeclared

It looks like the define was dropped sometime after 1.0.1e-2+deb7u6, certainly is not present in 1.0.1e-2+deb7u10.

I worked around this by adding

#define SSL_OP_MSIE_SSLV2_RSA_PADDING           0x00000040L /* no effect since 0.9.7h and 0.9.8b */ 

back to /usr/include/openssl/ssl.h. (Picked from 1.0.1e-2+deb7u6)

Do at your own risk, I have not investigated what will happen if that value is passed.

Error while installing ruby ruby-1.9.3-p551

Try this:

rvm install 1.9.3 --with-gcc=clang

Reference: https://stackoverflow.com/a/14072970/5515449

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

This is a bug in RailsInstaller OSX 1.0.3 - https://github.com/railsinstaller/railsinstaller-nix/issues/10

you need 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')

I will prepare new version of the installer when binary ruby is available for 2.0.0.

UPDATE: for new version of RVM 1.19+ /etc/rvmrc should be changed to:

umask g+w
export rvm_autolibs_flag=smf

And run rvm get stabel #OR: head

Can't compile 1.9.3 with rvm using gcc

This is known bug in ruby-1.9.3-p125 and another known bug in RVM,

please upgrade RVM:

rvm get head # or starting form April 2012:
rvm get stable

fix for this was introduced after releasing RVM 1.10.3 so you need to call rvm get stable again.



Related Topics



Leave a reply



Submit