Installed Ruby 1.9.3 With Rvm But Command Line Doesn't Show Ruby -V

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

Having difficulty installing rvm 1.9.3 with xcode 4.3.2

It's a bug in recognizing Xcode version, I have created a ticket and it should be solved shortly -> https://github.com/wayneeseguin/rvm/issues/846

All Xcode 4.2+ have the same issue:

4.2:

  • is only supported by ruby 1.9.3+ using command line flag: --with-gcc=clang
  • it breaks gems with native extensions, especially DB drivers.

To solve use osx-gcc-installer:

You can use & download osx-gcc-installer: https://github.com/kennethreitz/osx-gcc-installer

brew installed Vim in Terminal with RVM (Ruby 1.9.3), MacVim and Command-T

I'm guessing that you installed the macvim package before you installed installed all the rest of that, and then installed the vim package afterwards. That'd explain why it works in terminal mode. These are two different packages, and they have their own build options.

Run:

vim --version

And compare the output to:

mvim --version

In particular, check out the last line (starts with Linking:). You'll probably see ruby-1.8 linked in for mvim, and ruby-1.9.1 linked in for vim (note that 1.9.3 reports 1.9.1; it's the C API version, not the Ruby version).

If all this is true, fix it by doing:

brew uninstall macvim
brew install macvim

It should build against your 1.9.3 config. Make sure rvm current reports 1.9.3 before you do that.

Lion ate my RVM and now I can't install Ruby

After you install Lion, you have to re-install Xcode/Developer tools. It is available from the app store.

http://itunes.apple.com/us/app/id448457090?mt=12

Ruby through RVM fails

Why are you using your root account?

[root@quackwall ~]

RVM is designed to work as a user's sandbox, unless you are doing a system wide install. For normal use installing using root permissions and paths will get it all screwed up.

Installing system wide is a lot more complicated so if it's just for you, use the standard install.

Also, notice that rvm use 1.9.2 points to:

/usr/local/rvm/gems/ruby-1.9.2-p136

but:

which ruby

has no /usr/local/rvm/gems/ruby-1.9.2-p136 in the search path:

/usr/bin/which: no ruby in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

If you intend to use system-wide installs, you either need to modify all ~/.bashrc or ~/.bash_profile files for all users, or adjust /etc/bashrc or /etc/profile.

Capistrano RVM and Ubuntu RVM is not a function, selecting rubies with 'rvm use ...' will not work

In my deploy.rb file, setting this line:

set :bundle_dir, "/usr/local/rvm/gems/ruby-1.9.3-p392"

before this line:

require 'bundler/capistrano'

seemed to help bundler know where to install the gems. Not sure why this is needed. I've never needed it before.



Related Topics



Leave a reply



Submit