Problem With Ruby

Specs: XCode 4.3.2, Mac OS X 10.7.3, RVM 1.12.3 (stable).

I really need help with this so anything is appreciated.

I installed Ruby 1.8.7, then needed to update to 1.9.3 so I found RVM. I
installed RVM and then tried to update and this is the result:

    rvm install 1.9.3
    Fetching yaml-0.1.4.tar.gz to /Users/myname/.rvm/archives
    Extracting yaml-0.1.4.tar.gz to /Users/myname/.rvm/src
    Error running 'tar xmzf
/Users/myname/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/myname/.rvm/src
', please read /Users/myname/.rvm/log/ruby-1.9.3-p125/yaml/extract.log
    Configuring yaml in /Users/myname/.rvm/src/yaml-0.1.4.
    Error running ' ./configure
        --prefix="/Users/myname/.rvm/usr" ', please read
/Users/myname/.rvm/log/ruby-1.9.3-p125/yaml/configure.log Compiling yaml
in /Users/myname/.rvm/src/yaml-0.1.4.
    Error running 'make ', please read
/Users/myname/.rvm/log/ruby-1.9.3-p125/yaml/make.log

    Database file /Users/myname/.rvm/config/packages does not exist.

    Installing Ruby from source to:
/Users/myname/.rvm/rubies/ruby-1.9.3-p125,
    this may take a while depending on your cpu(s)...

    ruby-1.9.3-p125
    - #fetching ruby-1.9.3-p125
    - #extracted to /Users/myname/.rvm/src/ruby-1.9.3-p125 (already
extracted) ruby-1.9.3-p125
    - #configuring Error running ' ./configure
        --prefix=/Users/myname/.rvm/rubies/ruby-1.9.3-p125
--enable-shared --disable-install-doc --with-libyaml
--with-opt-dir=/Users/myname/.rvm/usr ',

    please read /Users/myname/.rvm/log/ruby-1.9.3-p125/configure.log
    There has been an error while running configure. Halting the
installation.
    ls: /Users/myname/.rvm/rubies/*/bin/ruby: No such file or directory

I just started Ruby 3 days ago so I am really confused... I tried
reading in the configure.log but There is nothing in /Users/myname/.rvm

···

--
Posted via http://www.ruby-forum.com/.

[snip for brevities sake]

If I'm reading that correctly, you didn't install via rvm
ruby-1.8.7p-358 first?

In order to use rvm, you have to install 1.8.7 via *rvm* first then you
can go ahead & install Ruby 1.9.*

Had you ran `rvm requirements` after installing rvm? You should really
as that would explain a lot of things you need to know about using rvm.

rvm has a Google group also
<http://groups.google.com/group/rubyversionmanager?hl=en&gt; where you'll
find Michal Papis one of its key developers if you run into any more
problems.

Cheers,

  Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

  Wm. Shakespeare - Much Ado About Nothing

···

On 16/04/2012 02:04, Tucketdog J. wrote:

Specs: XCode 4.3.2, Mac OS X 10.7.3, RVM 1.12.3 (stable).

I really need help with this so anything is appreciated.

I installed Ruby 1.8.7, then needed to update to 1.9.3 so I found RVM. I
installed RVM and then tried to update and this is the result:

I had been trying to install the way that the tutorial (a book) tells
me, and that is updating the version that I have preinstalled, sudo gem
update --system, but when I rails --version after that, it replies with
1.8.7 (2008-08-11). I ran the command again and the same result, it was
stuck on 1.8, where I couldent install rails. What I want in the end is
to run Ruby on Rails, but the first step would be installing ruby 1.9.*.
I was googling how to update to 1.9.3 and rvm came up, so I tried that,
and thus my problem above.

Any help is great,

···

--
Posted via http://www.ruby-forum.com/.

And I think Ruby comes preinstalled 1.8.7 on my Mac, its OS X 10.7.3,
but I might have screwed things up when I did: sudo gem update --system
like the book told me to. I have also tried installing an earlier
version of ruby, like 1.9, and it is the same result..

···

--
Posted via http://www.ruby-forum.com/.

Thanks!
Kind regards,
tucket

···

--
Posted via http://www.ruby-forum.com/.

& as I wrote earlier, if you want to use rvm to manage your rubies, you
have to install Ruby 1.8.7 first via rvm then install Ruby 1.9.* via rvm
& you should be good to go.

Cheers,

  Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

  Wm. Shakespeare - Much Ado About Nothing

···

On 16/04/2012 12:09, Tucketdog J. wrote:

And I think Ruby comes preinstalled 1.8.7 on my Mac, its OS X 10.7.3,
but I might have screwed things up when I did: sudo gem update --system
like the book told me to. I have also tried installing an earlier
version of ruby, like 1.9, and it is the same result..