ROR setup on ubuntu machine

146 views
Skip to first unread message

amvis

unread,
Oct 12, 2011, 12:46:44 AM10/12/11
to rubyonra...@googlegroups.com
I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some steps to follow for ROR? or some effective tutorials link to setup this?

saikiran mothe

unread,
Oct 12, 2011, 2:58:00 AM10/12/11
to rubyonra...@googlegroups.com
http://rubyhyderabad.blogspot.com/

On Wed, Oct 12, 2011 at 10:16 AM, amvis <vgrkr...@gmail.com> wrote:
I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some steps to follow for ROR? or some effective tutorials link to setup this?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ciRx6txsgY4J.
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.

mg1313

unread,
Oct 12, 2011, 2:59:29 AM10/12/11
to rubyonra...@googlegroups.com
I can send you a tutorial I just made for Ubuntu 11.04 with Ruby on Rails (Ruby 1.9.2 and Rails 3.1) and the default web server WEBrick and database SQLite3.
I have also a tutorial for Apache web server and MySQL database.

On what email should I send you? It's a text file, I haven't had the time to add images but it should be pretty self explanatory.

0v3rr!d3

unread,
Oct 12, 2011, 4:53:13 AM10/12/11
to Ruby on Rails: Talk
Hi,
You can find tons of tutorial for starting rails. I guess you can
find following blog post helpful for setting up rails.
http://goo.gl/fhgqV
Feel free to comment if any problem arise.

Regards;
Kshitiz

Colin Law

unread,
Oct 12, 2011, 4:58:30 AM10/12/11
to rubyonra...@googlegroups.com
On 12 October 2011 09:53, 0v3rr!d3 <nirva...@gmail.com> wrote:
> Hi,
>   You can find tons of tutorial for starting rails. I guess you can
> find following blog post helpful for setting up rails.
> http://goo.gl/fhgqV
> Feel free to comment if any problem arise.

*Do* use one that uses rvm (as that one does), it may seem like
additional complication initially but it will repay the time very
quickly.

Colin

>
> Regards;
> Kshitiz
>
> On Oct 12, 9:46 am, amvis <vgrkrish...@gmail.com> wrote:
>> I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some
>> steps to follow for ROR? or some effective tutorials link to setup this?
>

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

--
gplus.to/clanlaw

Owajigbanam Ogbuluijah

unread,
Oct 12, 2011, 5:57:23 AM10/12/11
to rubyonra...@googlegroups.com
rvm would not work on ubuntu. they take pride in their Synaptic Package Manager.

last time I installed rails (2.3.8) on my unubtu 10.4 lts, I installed them using the `sudo apt-get <package-name>' commands


On 2011-10-12, at 10:02 AM, Yifan Zhai wrote:

> I recommend you to install ror via rvm.
>
> tutorials links: http://beginrescueend.com/rvm/install/
>
> --
> Posted via http://www.ruby-forum.com/.

ajibanda

unread,
Oct 12, 2011, 6:00:15 AM10/12/11
to Ruby on Rails: Talk
This might help, This runs apache2, ruby on rails, and passenger

http://www.ajibanda.com/2010/12/install-ruby-on-rails-in-ubuntu-server.html

just make the right adjustment since I made this tutorial a year ago,
though the versions are different, the steps should be the same.

Colin Law

unread,
Oct 12, 2011, 6:02:43 AM10/12/11
to rubyonra...@googlegroups.com
On 12 October 2011 10:57, Owajigbanam Ogbuluijah <xigb...@gmail.com> wrote:
> rvm would not work on ubuntu. they take pride in their Synaptic Package Manager.
>
> last time I installed rails (2.3.8) on my unubtu 10.4 lts, I installed them using the `sudo apt-get <package-name>' commands

No, don't do that, it is much better in my opinion to use rvm, which
definitely does work on Ubuntu. Then you have the flexibility of
gemsets, mutliple ruby versions and so on.

Colin

>
>
> On 2011-10-12, at 10:02 AM, Yifan Zhai wrote:
>
>> I recommend you to install ror via rvm.
>>
>> tutorials links: http://beginrescueend.com/rvm/install/
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> --
>> 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.
>>
>
> --
> 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.
>
>

--
gplus.to/clanlaw

Colin Law

unread,
Oct 12, 2011, 6:04:42 AM10/12/11
to rubyonra...@googlegroups.com
On 12 October 2011 11:00, ajibanda <ajib...@gmail.com> wrote:
> This might help, This runs apache2, ruby on rails, and passenger
>
> http://www.ajibanda.com/2010/12/install-ruby-on-rails-in-ubuntu-server.html

You won't need apache and passenger unless you want to run a
webserver. If you are just doing development and test on your pc then
they are not necessary.

Why is everybody top posting today?

Colin

>
> just make the right adjustment since I made this tutorial a year ago,
> though the versions are different, the steps should be the same.
>
> On Oct 12, 12:46 pm, amvis <vgrkrish...@gmail.com> wrote:
>> I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some
>> steps to follow for ROR? or some effective tutorials link to setup this?
>

Yifan Zhai

unread,
Oct 12, 2011, 5:02:12 AM10/12/11
to rubyonra...@googlegroups.com

Norbert Melzer

unread,
Oct 12, 2011, 6:53:58 AM10/12/11
to rubyonra...@googlegroups.com

Rvm is working with Ubuntu. Did that with 10.4 and 11.4

There were no problems at all, but read the hole setup manual and after that begin again and do what it says. You must be sure to have all requirements and it would help if you know what you are doing:)

Someone asked because topposting, I can only answer for me but I am using android email client that does not support inline quoting...

--
send by Samsung Galaxy Tab with Overcome Mod

Johann Aman

unread,
Oct 12, 2011, 5:42:03 AM10/12/11
to Ruby on Rails: Talk
I do not think it's ok for a beginner to deal with RVM.
amvis, take the latest versions of Ruby (1.9.2) and Rails (3.1) and
play with them as if they are the only ones:)))


On Oct 12, 12:58 pm, Colin Law <clan...@googlemail.com> wrote:

Noven Effendi

unread,
Oct 12, 2011, 5:47:31 AM10/12/11
to rubyonra...@googlegroups.com
Hello amvis,

you can try this http://railsapps.github.com/installing-rails-3-1.html . This tutorial is very clear and helpful.

Regards,
Noven

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

mg1313

unread,
Oct 12, 2011, 4:25:22 AM10/12/11
to Ruby on Rails: Talk
I read "aptitude" is better at package management than "apt-get"...

amvis

unread,
Oct 12, 2011, 7:43:57 AM10/12/11
to rubyonra...@googlegroups.com
thanks for the responds... also i have ubuntu 11.04.

my email ID is vgrkr...@gmail.com...

Max

unread,
Oct 12, 2011, 12:21:40 PM10/12/11
to Ruby on Rails: Talk
I am a total newbie.. after messing with cygwin and minw in windows i
installed ubuntu 11.04 on my laptop and did a lot of googling..

installed twice to get it to where it is (right? we'll see) but am
using rvm.. it wasn't that hard and went smoothly... there are some
specific install sites on the web that discus ruby, rails, rvm and
ubuntu. i don't have them handy but if i can find them anyone can :)

good luck!

On Oct 12, 5:43 am, amvis <vgrkrish...@gmail.com> wrote:
> thanks for the responds... also i have ubuntu 11.04.
>
> my email ID is vgrkrish...@gmail.com...

Jazmin

unread,
Oct 12, 2011, 12:30:56 PM10/12/11
to rubyonra...@googlegroups.com
This is a very good tutorial.
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

Hope it helps!

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




--
Jazmin

amvis

unread,
Oct 12, 2011, 12:32:44 PM10/12/11
to rubyonra...@googlegroups.com
after all my system have ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux], Rails 2.3.5, gems 1.3.7

but i cannot proceed from this stage, for creating a simple application..

how to solve this? can i reinstall the ubuntu


Thank u
amvis


Hassan Schroeder

unread,
Oct 12, 2011, 12:58:44 PM10/12/11
to rubyonra...@googlegroups.com
On Wed, Oct 12, 2011 at 9:32 AM, amvis <vgrkr...@gmail.com> wrote:
> after all my system have ruby 1.8.7 (2010-06-23 patchlevel 299)
> [i686-linux], Rails 2.3.5, gems 1.3.7
>
> but i cannot proceed from this stage, for creating a simple application..

Why not?

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

Mircea Goia

unread,
Oct 12, 2011, 1:43:14 PM10/12/11
to rubyonra...@googlegroups.com
Here are two tutorials which may help (video included):
http://www.rubyinside.com/how-to-install-ruby-1-9-2-and-rails-3-0-on-ubuntu-10-10-4148.html
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
 
Both are using latest Ruby and Rails on Ubuntu 10.10 (which works for Ubuntu 11.04 too).

Mircea

-- 
---------------------
Mircea Goia
Email: mirce...@gmail.com
Website: www.mirceagoia.com


amvis

unread,
Oct 12, 2011, 2:55:01 PM10/12/11
to rubyonra...@googlegroups.com
i followed this http://www.ruby-lang.org/en/documentation/quickstart/3/, and setup all the stuffs.

After i created a new  rails application, when i create a database i got one error like


cyberpro@ubuntu:~/blog$ rake db:create
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.

(See full trace by running task with --trace)


Mircea Goia

unread,
Oct 12, 2011, 3:04:51 PM10/12/11
to rubyonra...@googlegroups.com
Try this:

*********
ExecJS::RuntimeUnavailable
*********

Add these two lines to you Gemfile text file located in your project directory. You can add them somewhere in the text file (you can add them after "gem 'sqlite3'" for example):
gem 'execjs'
gem 'therubyracer'

Save the file and the run bundle install again from the project directory:
$ bundle install

Start the Rails server again to see if it worked:
$ rails server  (or "rails s")


MIrcea


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/c2OTNLOeJvAJ.

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.

amvis

unread,
Oct 12, 2011, 3:24:56 PM10/12/11
to rubyonra...@googlegroups.com
Thanks for the response.   i think this question, which am going to put here, is a bad question,  anyway

when i start the server

cyberpro@ubuntu:~/blog$ rails server
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-10-12 15:15:12] INFO  WEBrick 1.3.1
[2011-10-12 15:15:12] INFO  ruby 1.9.2 (2011-07-09) [i686-linux]
[2011-10-12 15:15:12] INFO  WEBrick::HTTPServer#start: pid=9007 port=3000

my question is, how to move to the db creation ? i mean how to stop this. can i use this Call with -d to detach
=> Ctrl-C to shutdown server
and continue...

Am sorry for asking this type of question

Brandon Black

unread,
Oct 12, 2011, 3:40:58 PM10/12/11
to Ruby on Rails: Talk
Couldn't disagree more. RVM actually makes like a lot easier for
beginners IMO. The install is simple and easy (just run the script)
and works perfectly fine on pretty much any version of Ubuntu.

Using RVM allows beginners to tinker with various versions of Ruby in
a non-traumatic way and keeps each project in its own gemset to avoid
version conflicts and issues with dependencies. Once installed
correctly, with wrappers in place, it works identical to native ruby
only you don't have to "sudo" so much.

It's a great place to both start and finish as a ruby developer. I run
RVM locally and in production and I advise all the newbies I help out
to do the same. Particularly on an OS X dev environment, native ruby
is a pain and RVM alleviates most of those pain points.

Colin Law

unread,
Oct 12, 2011, 3:53:30 PM10/12/11
to rubyonra...@googlegroups.com

Work through some tutorials that will show you the basics of Rails.
railstutorial.org is good and is free to use online. Then you will
look back on the questions you are asking and not believe that you had
to ask them :)

Also look at the Rails Guides.

Colin

Mircea Goia

unread,
Oct 12, 2011, 4:02:47 PM10/12/11
to rubyonra...@googlegroups.com
If you want to stop WEBrick server then use CTRL+C (if that doesn't work try CTRL+Z).
OR, you can open another terminal window and work there to create your database (I recommend that).

Mircea

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/CLoqCZ_x-hcJ.

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.

amvis

unread,
Oct 12, 2011, 4:15:38 PM10/12/11
to rubyonra...@googlegroups.com
Thanks  all, thanks mg1313

amvis

unread,
Oct 13, 2011, 5:30:55 AM10/13/11
to rubyonra...@googlegroups.com
Advanced thanks to all, for  given some important links, which help me a lot, to start the ROR from scratch. After all the set-up, I have created one page. so next i need to integrate a simple application  with twitter. Simple application means  when i write something in a text box and click the  button, that will update into my twitter account. for that i have to use the twitter apis
 for the authentication purpose, i have got the token from twitter. But i have some confusing how to use it, And also this rails basically going with MVC. so where the code will write? and so on..
 I knw the MODEL is basically  connection with the database, and the VIEW for the presentation. and finally the CONTROLLER have the main function part. But where  will write the code for each one? If have any mistake in my understand, plz specify the issues?

also i got some link about dis
http://pedromtavares.wordpress.com/2010/06/21/integrating-rails-with-twitter/..

Thanks
Vishnu

Colin Law

unread,
Oct 13, 2011, 5:43:37 AM10/13/11
to rubyonra...@googlegroups.com
On 13 October 2011 10:30, amvis <vgrkr...@gmail.com> wrote:
> Advanced thanks to all, for  given some important links, which help me a
> lot, to start the ROR from scratch. After all the set-up, I have created one
> page. so next i need to integrate a simple application  with twitter. Simple
> application means  when i write something in a text box and click the
> button, that will update into my twitter account. for that i have to use the
> twitter apis
>  for the authentication purpose, i have got the token from twitter. But i
> have some confusing how to use it, And also this rails basically going with
> MVC. so where the code will write? and so on..
>  I knw the MODEL is basically  connection with the database, and the VIEW
> for the presentation. and finally the CONTROLLER have the main function
> part. But where  will write the code for each one? If have any mistake in my
> understand, plz specify the issues?

Have you worked right through some tutorials such as
railstutorial.org? This will answer most of these questions.

Colin

Daniel Nachbar

unread,
Oct 13, 2011, 8:52:18 AM10/13/11
to Ruby on Rails: Talk
On Oct 12, 3:40 pm, Brandon Black <brandonmbl...@gmail.com> wrote:
> Couldn't disagree more. RVM actually makes like a lot easier for
> beginners IMO. ...

> Particularly on an OS X dev environment, native ruby
> is a pain and RVM alleviates most of those pain points. ...

+1

Dan Nachbar

spinlock

unread,
Oct 14, 2011, 1:53:08 PM10/14/11
to Ruby on Rails: Talk
rvm > apt

I really like using rvm for different gemsets. When you want to test
out the latest version of rails for 1 project it makes life so much
easier. apt and rvm have declared a delicate truce on my machine. I
basically use apt for system wide packages and rvm for ruby and rails
so that I can have different versions on different projects.

On Oct 12, 2:57 am, Owajigbanam Ogbuluijah <xigba...@gmail.com> wrote:
> rvm would not work on ubuntu. they take pride in their Synaptic Package Manager.
>
> last time I installed rails (2.3.8) on my unubtu 10.4 lts, I installed them using the `sudo apt-get <package-name>' commands
>
> On 2011-10-12, at 10:02 AM, Yifan Zhai wrote:
>
>
>
>
>
>
>
> > I recommend you to install ror via rvm.
>
> > tutorials links:http://beginrescueend.com/rvm/install/
>
> > --
> > Posted viahttp://www.ruby-forum.com/.

amvis

unread,
Oct 16, 2011, 3:34:06 AM10/16/11
to rubyonra...@googlegroups.com
I followed this link  for integrate with twittter
http://cbpowell.wordpress.com/2011/03/17/twitter-oauth-and-ruby-on-rails-integrated-cookbook-style-in-the-console-updated-for-twitter-1-0/

but when i give this  in console i got the error like  this

>client = Twitter::Client.new
#<Twitter::Client:0x971a79c @adapter=:net_http, @consumer_key=nil, @consumer_secret=nil, @endpoint="https://api.twitter.com/", @format=:json, @gateway=nil, @oauth_token=nil, @oauth_token_secret=nil, @proxy=nil, @search_endpoint="https://search.twitter.com/", @user_agent="Twitter Ruby Gem 1.7.2", @media_endpoint="https://upload.twitter.com/", @faraday_options={}>

>client.update('Test post from the console')

Twitter::Unauthorized: POST https://api.twitter.com/1/statuses/update.json: 401: Could not authenticate you.
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/response/raise_http_4xx.rb:12:in `on_complete'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:9:in `block in call'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:62:in `on_complete'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:8:in `call'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/request/url_encoded.rb:14:in `call'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/request/multipart.rb:13:in `call'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/request/multipart_with_file.rb:18:in `call'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/connection.rb:207:in `run_request'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/connection.rb:94:in `post'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/request.rb:27:in `request'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/request.rb:10:in `post'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/client/tweets.rb:45:in `update'
    from (irb):23
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in `start'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in `start'
    from /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:40:in `<top (required)>'
    from script/rails:6:in `require'


Colin Law

unread,
Oct 16, 2011, 3:53:39 AM10/16/11
to rubyonra...@googlegroups.com

I suggest starting a new thread with an appropriate subject for this
question as it does not seem to be anything to do with the subject
line (ROR setup on ubuntu machine). In that way someone interested in
this subject is more likely to read the message.

Colin

amvis

unread,
Oct 24, 2011, 12:41:06 AM10/24/11
to rubyonra...@googlegroups.com, mirceag...@yahoo.com
 i had some problem with my ubuntu, so just i changed that into 11.10, now am setting up the RoR in ubuntu following this link
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ . But i got the wrong command error when i doing this command


sudo aptitude install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf

>>COMMAND NOT FOUND.

why like dis?, but i had  done the same thing earlier on my last ubuntu with no issues.

Thank You
Vishnu

Norbert Melzer

unread,
Oct 24, 2011, 12:55:29 AM10/24/11
to rubyonra...@googlegroups.com

Which command is not found?

Did you tried Europe apt-get install instead?

Or installed aptitude via apt-get?

--
send by Samsung Galaxy Tab with Overcome Mod

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/HjWlr8ZNX_EJ.

amvis

unread,
Oct 24, 2011, 1:35:01 AM10/24/11
to rubyonra...@googlegroups.com
thank you, i forgot to change that aptitude into apt-get.

Thank you
vishnu

Max

unread,
Oct 24, 2011, 9:46:40 AM10/24/11
to Ruby on Rails: Talk
or you can install aptitude using

sudo apt-get install aptitude

and then use it later...
Reply all
Reply to author
Forward
0 new messages