Install Ruby 1.9.2 and rails

18 views
Skip to first unread message

Bruno Meira

unread,
Aug 11, 2011, 7:09:56 AM8/11/11
to Ruby on Rails: Talk
I tried everything to install this version of ruby and rails 3 in my
s.o. All the the tutorials that I found don't work.
Sb know how to install this version of RoR in my S.O. I'm using
Debian.
Thx ;D

John Winters

unread,
Aug 11, 2011, 7:22:39 AM8/11/11
to rubyonra...@googlegroups.com

I strongly suggest you use rvm. See http://beginrescueend.com/

HTH
John

Bruno Meira

unread,
Aug 11, 2011, 7:52:14 AM8/11/11
to Ruby on Rails: Talk
I already tried it. But the "ruby -v" only works in non-root mode and
"rails -v" doesn't work in any mode ;/

John Winters

unread,
Aug 11, 2011, 9:15:51 AM8/11/11
to rubyonra...@googlegroups.com
On 11/08/11 12:52, Bruno Meira wrote:
> I already tried it. But the "ruby -v" only works in non-root mode and
> "rails -v" doesn't work in any mode ;/

You'll have to give a bit more information than that if you want any
useful help.

Do you have rvm installed and working? Does your installation pass the
"type rvm | head -1" test?

How then did you install ruby? And rails? What do you see when you
type "ruby -v"? And "rails -v"?

What do you mean by "S.O."?

John

Bruno Meira

unread,
Aug 11, 2011, 9:34:20 AM8/11/11
to Ruby on Rails: Talk
yeah, I already type "rvm | head -1", and everything works good.
I installed ruby using rvm. "rvm install 1.9.2".
It works well but when I type "ruby -v" in console, if I'm on sudo
mode it shows me a message telling me that this command does not find.
Otherwise if I'm not on sudo mode it works well.
I tried again something of one blog and "rails -v" now works in any
mode, but "ruby -v" problem continues.
That's the first time that I'm using rvm, so all the time that I need
to use "rake db:migrate" or "rails -s", I need to type "rvm rake
db:migrate" and "rvm rails -s"?

Sorry by the word "S.O", I'm brazilian guy. And here "operating system
= O.S" is equals to "S.O".

Thx :D


Bruno Meira

unread,
Aug 11, 2011, 9:49:00 AM8/11/11
to Ruby on Rails: Talk
Now it works!
I follow again some steps of one blog and it works!
all the time that I need to use "rake db:migrate" I type "rvm rake
db:migrate" isn't it?
"ruby -v" doesn't appears in root mode, but if it works is not a
problem :P
thx for the help
:D

Hassan Schroeder

unread,
Aug 11, 2011, 9:56:58 AM8/11/11
to rubyonra...@googlegroups.com
On Thu, Aug 11, 2011 at 6:49 AM, Bruno Meira <goes...@gmail.com> wrote:

> all the time that I need to use "rake db:migrate" I type "rvm rake
> db:migrate" isn't it?

No -- just `rake db:migrate` will work.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Colin Law

unread,
Aug 11, 2011, 10:16:37 AM8/11/11
to rubyonra...@googlegroups.com

I believe that normally rvm would not be used in root mode, that is
part of the point I think. It allows ruby and gems to be installed on
a per-user basis.

Colin

John Winters

unread,
Aug 11, 2011, 10:34:54 AM8/11/11
to rubyonra...@googlegroups.com
On 11/08/11 14:34, Bruno Meira wrote:
> yeah, I already type "rvm | head -1", and everything works good.
> I installed ruby using rvm. "rvm install 1.9.2".
> It works well but when I type "ruby -v" in console, if I'm on sudo
> mode it shows me a message telling me that this command does not find.
> Otherwise if I'm not on sudo mode it works well.

The whole point of rvm is that it installs your own private environment.
You don't need to use su or sudo at all.

> I tried again something of one blog and "rails -v" now works in any
> mode, but "ruby -v" problem continues.
> That's the first time that I'm using rvm, so all the time that I need
> to use "rake db:migrate" or "rails -s", I need to type "rvm rake
> db:migrate" and "rvm rails -s"?

No. Simply type:

rvm use 1.9.2

and then for the rest of your session you'll have the environment which
you need. You just type:

rake db:migrate

or:

rails server

or whatever you want.

Cheers,
John

rahul patil

unread,
Aug 11, 2011, 11:04:40 AM8/11/11
to rubyonra...@googlegroups.com
rvm is the best way to install ruby

follow this blog

http://mazi-bakhar.blogspot.com/

There i have written a blog, which contains a shell script at then end, which will solve your all the doubt.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
Regards,
Rahul Patil

Bruno Meira

unread,
Aug 11, 2011, 12:13:55 PM8/11/11
to Ruby on Rails: Talk
Thx for the help guys!
I will read more about rvm and try to follow the steps of rahul's
blog
:D
Reply all
Reply to author
Forward
0 new messages