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 none of it makes sense to me.
Here is what is in there:
[2012-04-15 18:35:22] ./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
configure: WARNING: unrecognized options: --with-libyaml
checking build system type… i386-apple-darwin11.3.0
checking host system type… i386-apple-darwin11.3.0
checking target system type… i386-apple-darwin11.3.0
checking whether the C compiler works… no
configure: error: in /Users/myname/.rvm/src/ruby-1.9.3-p125': configure: error: C compiler cannot create executables Seeconfig.log’ for more details

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:

[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 where you’ll
find Michal P. 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPi8EWAAoJEKpMeDHWT5ADOrYIAMdbqZmc+qX14t+R2OAX9fc7
C6BjPJjH3KIeU6g2AWNLROjAgMKM11RHe/Kw+mzwD4ASBk6eanY7sFbTWvhr4cXC
DE2VtflhrPJFGDtdBxTkTJI2Hh/GJHeISk33F30KcrzTxApADqP/MWsZ9OG/kQUn
umAceYBY11kJ96oLUEAeyJvXH4UAu+qNwYCM4X6JXtuRsRXN347NpU01YeC2rq1O
jNiXf6U/Yb3zDR36+CErZ1JYULGtMhkSwmxlnO/qcvkkrWFvVeiW6UFirv0VRKf+
SHR6IDNDBBncBU1fIt7n5/YvRqOju3WkJIvdw1gYdX1VWHTxJD2/JLYXmwfMFw0=
=3USV
-----END PGP SIGNATURE-----

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,

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…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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…

& 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPjAElAAoJEKpMeDHWT5ADLdAIAOYpxcP/Vfv1Nhz6bd3tDFxE
FJ8dvj3hIN4bKK3qN1Z1mMimnPLvOeVfP1h0U6nZ3GRTn6gXv6Kv+6YqrE6cnXTK
HgfqwlfjR2fQLFrhHUCyCu4VCCXOFNNs9FhalO7nHlG4QspWgygb9/Jc+X2JbS5t
oCHL/+OohY7F6iP4rHxYR7Ko7yM5NoKybiK/Xy/1gitAd5MZ/dspiKU3ZFdzGLa3
oymU+WwiyUhr8Xk+1MYIoaK5jQAGn8V8V4fXlN0N5I2UuGgHrgzNHblAyGR1MT+F
1j7a2DIeKKYPdjUZ504kxtLfGlrRvj0s1tkQO+0gjXShK/AfLjT0Efezjkqgdd4=
=5Hrm
-----END PGP SIGNATURE-----

Thanks!
Kind regards,
tucket