Install ruby on the mac

hello,
total mac newby here. i’m traying to install ruby via rvm but i’m not
having much success. git is already installed. What I do:

  1. open terminal
  2. enter the command

bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head)

and here’s what i get:

% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
106 426 106 426 0 0 1338 0 --:–:-- --:–:--
–:--:-- 3203
bash: line 18: git: command not found
bash: line 20: cd: rvm: No such file or directory
bash: ./scripts/install: No such file or directory

wish there’s a oneclickinstall of ruby on the mac.

thanks!

On Oct 3, 2010, at 1:01 PM, Basi L. wrote:

bash: line 20: cd: rvm: No such file or directory
bash: ./scripts/install: No such file or directory

You are missing the “git” command which is required for checking out the
latest version of rvm. You may want to look at macports.org which lets
you easily install UNIX tools like git using the “port” command. After
installing macports, install git and try the rvm installation again.

cr

On Oct 3, 2:55 pm, Basi L. [email protected] wrote:

hello,
total mac newby here. i’m traying to install ruby via rvm but i’m not
having much success. git is already installed. What I do:

How you installed git? It is available in the PATH? (which git)

Also check the prerequisites page of RVM:

http://rvm.beginrescueend.com/rvm/prerequisites/

A working Xcode installation also is needed.

If youre using snow leopard all you need is Xcode. Rubygems is already
installed so if you want version 1.8.7 just issue the following command

sudo gem install ruby

That should so it. If you want ruby 1.9.2 that’s a little different of
course.

Best,
Steve

Sent from my iPhone

Steve,
Thank you for the reply. I’ll likely go for 1.9.2 to avoid the hassle
of upgrade from an earlier version. I’m having a problem downloading
xcode. As it turned out, we got suckered into an internet-cable
connection in which the internet and two TV boxes split the signlas.
Upgrade to a faster speed will cost extra $13 a month. Don’t you just
love them providers, eh?
basi

Thanks for the reply. So I’m downloading Xcode … but for some
reasons it’s taking a long time (8 hrs! believe it or not) to download
on DSL 2.9GB. That is unusual…

On Oct 3, 2010, at 11:01 , Basi L. wrote:

total mac newby here. i’m traying to install ruby via rvm but i’m not
having much success. git is already installed. What I do:

You already have ruby. If all you want to do is learn ruby, then do
nothing. Open your terminal, type ‘irb’ and hit return:

% irb

1 + 1
=> 2

“this is a test”.scan(/\w+/)
=> [“this”, “is”, “a”, “test”]

rubygems is already installed. You really need not do anything at this
point.

sudo gem update --system
sudo gem update ruby
sudo gem install sinatra

Sent from my iPhone

Hey, thanks. Yes, indeed, Ruby is installed, rubygems is installed.
Amazing. Now I’d like to install Sinatra and play with it.

On Oct 3, 2010, at 19:01 , Steven Elliott Jr wrote:

sudo gem update ruby

there is no ‘ruby’ gem. That doesn’t do anything that you’re suggesting
it does.

On Oct 3, 2010, at 7:01 PM, Steven Elliott Jr [email protected]
wrote:

sudo gem update --system
sudo gem update ruby

What does gem update ruby do? I’ve never seen that before.

Ben

On Oct 3, 2010, at 5:15 PM, Basi L. wrote:

having much success. git is already installed. What I do:

How you installed git? It is available in the PATH? (which git)

Also check the prerequisites page of RVM:

http://rvm.beginrescueend.com/rvm/prerequisites/

A working Xcode installation also is needed.

If you still have the install disks for your computer, Xcode is on disk
2. Install from there and then run software update.

cr

there is no ‘ruby’ gem. That doesn’t do anything that you’re suggesting it does.

You’re right, I messed up. Sometimes writing from the iPhone is not
good. Sorry for the confusion.

Thanks all, guys. With all this help, I feel very much welcome. I’m
all set to try and enjoy the Mac.

basi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs