install ruby on the mac

B

Basi Lambanog

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!
 
C

Chuck Remes

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

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
 
B

Basi Lambanog

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...
 
S

Steven Elliott Jr

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
 
B

Basi Lambanog

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
 
R

Ryan Davis

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=3D> ["this", "is", "a", "test"]

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

Basi Lambanog

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


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.
 
S

Steven Elliott Jr

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.


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.
 
C

Chuck Remes

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...

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

cr
 
B

Basi Lambanog

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

basi
 
S

Steven Elliott Jr

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top