Rails on Ubuntu 10.4

73 views
Skip to first unread message

Nate

unread,
Sep 5, 2010, 1:05:17 PM9/5/10
to Saint Louis Ruby Users Group
I'm having a hell of a time trying to install Rails (any version)
on Ubuntu 10.4.

I'm trying to use rvm, and ruby version 1.8.7 to run Rails 2.3.8, and
keep getting
an error related to openssl.

Bottom line, I would like to know if anyone's running/developing Rails
apps on Ubuntu 10.4, and if so, how they set up their environment.

Maybe I could discuss this in person @ the next Ruby User's Group
meeting. Is there a September meeting scheduled?

Thanks,
--Nate

Mike Gaffney

unread,
Sep 5, 2010, 4:29:53 PM9/5/10
to stl...@googlegroups.com
you need to install ruby-openssl

-gaffo

James Carr

unread,
Sep 5, 2010, 3:08:09 PM9/5/10
to stl...@googlegroups.com
That and don't sudo-apt get install gems.

> --
> You received this message because you are subscribed to the Google Groups
> "Saint Louis Ruby Users Group" group.
> To post to this group, send email to stl...@googlegroups.com.
> To unsubscribe from this group, send email to
> stlruby+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/stlruby?hl=en.
>
>

Jeff Schmitz

unread,
Sep 6, 2010, 7:24:58 AM9/6/10
to stl...@googlegroups.com
RVM was mac-only for a time.  Did that change?

James Carr

unread,
Sep 6, 2010, 8:37:24 AM9/6/10
to stl...@googlegroups.com
Yes, it works on ubuntu now as well. Although the last time I
installed it I had to jump through a few hoops.

Thanks,
James

ogoldberg

unread,
Sep 6, 2010, 10:17:27 AM9/6/10
to Saint Louis Ruby Users Group
I'm going through this stuff too, right now. I managed to get passed
all the openssl stuff, but now, when I try to run rails server, it
crashes:

~/src/rails_projects/first_app$ rails server
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/rack-1.2.1/lib/
rack/server.rb:267:in `initialize': Permission denied - /home/oren/src/
rails_projects/first_app/tmp/pids/server.pid (Errno::EACCES)
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
rack-1.2.1/lib/rack/server.rb:267:in `open'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
rack-1.2.1/lib/rack/server.rb:267:in `write_pid'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
rack-1.2.1/lib/rack/server.rb:203:in `start'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
railties-3.0.0/lib/rails/commands/server.rb:65:in `start'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
railties-3.0.0/lib/rails/commands.rb:30:in `block in <top (required)>'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
railties-3.0.0/lib/rails/commands.rb:27:in `tap'
from /home/oren/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/
railties-3.0.0/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
~/src/rails_projects/first_app$


Anyone know what is going on here?
It works fine when I run sudo rails server, but it's running 1.8.7,
and I know you aren't supposed to run sudo with rvm.

Thanks,
Oren

On Sep 6, 7:37 am, James Carr <james.r.c...@gmail.com> wrote:
> Yes, it works on ubuntu now as well. Although the last time I
> installed it I had to jump through a few hoops.
>
> Thanks,
> James
>
> On Mon, Sep 6, 2010 at 7:24 AM, Jeff Schmitz
>
>
>
>
>
>
>
> <jeffrey.j.schm...@gmail.com> wrote:
> > RVM was mac-only for a time.  Did that change?
>

Craig Buchek

unread,
Sep 6, 2010, 11:19:41 AM9/6/10
to Saint Louis Ruby Users Group
> rack/server.rb:267:in `initialize': Permission denied - /home/oren/src/
> rails_projects/first_app/tmp/pids/server.pid (Errno::EACCES)

Take a closer look at that error message. It's a file permissions/
ownership problem. You need to have write access to the tmp/pids
directory.

Craig

Oren Goldberg

unread,
Sep 6, 2010, 11:31:13 AM9/6/10
to stl...@googlegroups.com
Thank you. I didn't quite understand that. Got it to work now. The tutorial I'm working through did not mention this at all. Is this something I will have to modify with every rails app I create?

Oren Goldberg

unread,
Sep 6, 2010, 11:53:45 AM9/6/10
to stl...@googlegroups.com
Nevermind. I see now that this was a symptom of my earlier installation issues.

rjordan

unread,
Sep 6, 2010, 3:48:09 PM9/6/10
to Saint Louis Ruby Users Group
I would recommend you eschew apt-get for ruby entirely. Debian
(Ubuntu's dad), really HATES alternate package managers, of which they
include gems. Use RVM to manage the whole shebang. Take a look at:
http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-rvm-server.
You may need a few more libs but then your whole tool chain, including
system ruby can be managed by RVM.

Jeff Barczewski

unread,
Sep 7, 2010, 1:58:17 PM9/7/10
to Saint Louis Ruby Users Group
I agree. I use rvm with ubuntu 9.10 and it works great. Made it easy
to install a whole slew of rubies.

On Sep 6, 2:48 pm, rjordan <rjorda...@gmail.com> wrote:
> I would recommend you eschew apt-get for ruby entirely. Debian
> (Ubuntu's dad), really HATES alternate package managers, of which they
> include gems.  Use RVM to manage the whole shebang.  Take a look at:http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-r....
Reply all
Reply to author
Forward
0 new messages