Error While Installing Ruby-1.8.7 on Fedora 15

Failed to configure Ruby with RVM on Fedora15

I cannot run rvm to install any version of ruby with gcc-4.6.3.
Finally get it resolved via suggestion in the post:
install bundler using rvm, ruby 1.8.7 with gcc 4.7 on linux

Installing Ruby 1.8.7 on Intel MacOSX 10.5.8 - error with make

RVM currently requires Xcode version 3.2.1 at the least. Don't go over version 4.1 though. 4.2 has some serious issues with building rubies and gems, and some of the homebrew and macports packages. They're using an llvm-gcc which is breaking a lot of things.

As for your issue here. Are you running on a 64bit machine? The error in the make logs appear to be based on the architecture type being incorrect. RVM defaults to a x86_64 architecture because the vast majority of the people using it are using 64bit machines, so RVM sets the default to that.We set this in scripts/functions/build and scripts/selector.

We also look for a variable called rvm_arch_flags where you can set the architecture flag needed for your model. This might not be an issue for you if you are using a Core 2 Duo or something similar. Are you running a PPC or something? We usually have issues awith people running Leopard because they are running the early Intels which appear to have been 32bit. You need at least the core 2 duo or xeon based machines.

Now, looking deeper into this, I would try setting rvm_arch_flag='-arch i686' in your global .rvmrc and try rebuilding. if you still run into problems come find me in the #RVM channel on freenode irc. We'll see what we can do. Please also create me a gist of rvm --trace as well.

In addition, it appears to be having problems with the version of the Tcl/Tk frameworks that comes with your Xcode. This could also be due to it being 3.1 rather than 3.2.

Why do I get an error installing Ruby 1.8.7-p302 using RVM?

I suspect XCode needs to be in its default installation location. On all my Macs that has been in /Developer.

Also, you don't say what version of the OS you are running, but there are buggy versions of XCode so it helps to have the most current version for your OS.

install bundler using rvm, ruby 1.8.7 with gcc 4.7 on linux

The description of the problem in the links in the original question suggest installing older versions of gcc to build 1.8.7, this is not necessary.

$ rvm remove 1.8.7
$ CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls" rvm install 1.8.7
$ rvm use 1.8.7
$ gem install bundler

Solution derived from the following:

Bug #6383: Segfault in Timeout module when compiled with GCC 4.7

Why do I get an error while compiling IronRuby in Ruby 1.8.7?

It looks like the gem windows-pr is required before the pathname2 stuff succeeds. I did a gem install windows-pr in my Ruby 1.8.7 install and then was successfully able to run rake --tasks in IronRuby (it previously failed with the same "no such file to load" error).



Related Topics



Leave a reply



Submit