Good Linux distro for Ror

Hi All,

I am very new to rails but am a relatively savvy linux user. My question is regards to a good linux distribution that works well with most rails. I am currently running ubuntu which works ok but just ok, there are a few things that could work better. One being the script/console and although I was able to install the mysql binding it was a painful process. So one does anyone know how to fix the script/console issue in ubuntu? or is there anyone out there using other distros which work well with ror.

Thanks,
Baldur

Baldur Gudbjornsson wrote:

I am very new to rails but am a relatively savvy linux user. My question is
regards to a good linux distribution that works well with most rails. I am
currently running ubuntu which works ok but just ok, there are a few things
that could work better. One being the script/console and although I was able
to install the mysql binding it was a painful process. So one does anyone
know how to fix the script/console issue in ubuntu? or is there anyone out
there using other distros which work well with ror.

Ive had great painless installations with Gentoo.

Gentoo++

-- Ezra Zygmuntowicz-- Lead Rails Evangelist
-- ez@engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)

Debian Etch…although I will say Sarge was killing me for awhile with its lag for getting things up to speed with Mongrel. Etch solved all my problems.

What exactly were the issues you have had with 'script/console' or
MySQL? are you using ubuntu as a development environment or a
production server? I've used Ruby/Rails on Ubuntu 6.06 LTS (Dapper) and
6.10 (Edgy) without any real issues. I've found Ubuntu to be very easy
to use, plus the user community is quite large and very helpful for
those edge cases when something doesn't 'just work'. But that's not to
say that it's perfect for everyone. Anyway, let us know what issues
you've had and perhaps one of us could help straighten out what issues
you're having with ubuntu/ror.

j-s

I am using ubuntu Edgy Eft 6.10, as a development workstation. I managed to solve the mysql issue which was fairly well documented but the console thing I had a harder time locating the issue. But any pointers in regards to those two things would be greatly appreciated, especially the console thing. See errors I get when I try to run it. Any help is be appreciated.

b

baldur@baldur-laptop:~/ror_project$ script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load – readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10

    from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
    from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
    from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'

    from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
    from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
    from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
    from /usr/local/bin/irb:13

Asking "what's the best..." type questions will get you nothing more
than people's opinions. What one person likes another hates.

Rails isn't going to care what distribution of linux you are running.
It's really just a matter of personal taste and comfort level although
package availability can play a part. I seriously doubt that any of
the major distributions have any issues getting Ruby/Rails up and
running.

If you are new to linux in general, I would most likely say that
Ubuntu is probably the best choice as was already said, with openSUSE
and Fedora being next, and Debian/Gentoo being last. Not that Debian
or Gentoo are bad or anything, just that there is more involved in
running those distributions and I wouldn't recommend them to those new
(or fairly new) to linux.

Chris

Baldur Gudbjornsson wrote:

I am using ubuntu Edgy Eft 6.10, as a development workstation. I managed to
solve the mysql issue which was fairly well documented but the console thing
I had a harder time locating the issue. But any pointers in regards to those
two things would be greatly appreciated, especially the console thing. See
errors I get when I try to run it. Any help is be appreciated.
b

baldur@baldur-laptop:~/ror_project$ script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to
load -- readline (LoadError)
        from /usr/local/lib/ruby/1.8/irb/completion.rb:10
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
        from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
        from /usr/local/bin/irb:13

I fixed this problem by making the ext libraries static (commenting everything out in ext/Setup). This assumes you are compiling Ruby from scratch. This is on Ubuntu 6.06 server. I have the Ubuntu readline packages installed but that didn't seem to help when I originally built Ruby.

Anyone running FreeBSD 6.2 yet?

Isak

Baldur:

I am using ubuntu Edgy Eft 6.10, as a development workstation. I
managed to solve the mysql issue which was fairly well documented
but the console thing I had a harder time locating the issue. But any
pointers in regards to those two things would be greatly appreciated,
especially the console thing. See
errors I get when I try to run it. Any help is be appreciated.

http://www.ubuntuforums.org/showthread.php?t=169891
(read the "Fixing Ubuntu Console readline problem" paragraph)

   -- Jean-François.

Sergio Bayona wrote:

Those with strong opinions about particular distros, could you briefly
elaborate as to why they think is better? (i'd particularly like to
listen to Ezra's view on Gentoo)

My reasons:

a) Its a fairly minimal distro so you install only what you need.

b) Updates are very fast compared to Debian, RH, Ubuntu, et al.

c) Its very easy to customize packages - the package system is
briiliant.

That would be kind'a hard since it's not out yet :wink: But I will be once
it is released. Not that it should matter much in regard to Rails.

there is no such thing as a good distro for RoR, there are good distro
for You though.
If you know little about linux, then go for mandriva or opensuse.
Otherwise there is debian, ubuntu, gentoo etc... they're all good.
My advice is, take the one you're most confortable with

Are you trying to start a flame war? Here, have some gasoline for that fire:
http://funroll-loops.org/

Actually, the site appears to be down at the moment. Oh, well. You can find
the Google cached page if you care.

--Greg

mix wrote:

and what about gentoo versus debian? where stability and comfortable to
update (not only one server, but a lot) are important ?
i think that gentoo is harder than debian to get the same stability,
what do you think ?

I worked for almost 4.5 years as a systems administrator for an ISP in
New York and I ran Gentoo on almost all of our Unix boxes. Its rock
solid, so I dont know what you mean. And updates are much faster and
easier than any other non-commercial distro out there since Gentoo
packages operate at the source code level (no waiting for binary
package and backporting nonsense - just build it already).

I am currently running a vanilla mephisto on OpenBSD and will shortly
deploy my Rails app on another OpenBSD box. works like a charm and
spins like a cat and is easy to install.

My fellow partner installed on ubuntu on his pc-laptop but that OS came
with a useless default screen resolution (~15" wide) and could not
connect to our open wireless office network and so it had to go (I'll
get him a proper Mac once i get rich!)

I scribbled the process of installation down at -->
http://84.55.110.163/2007/1/8/mephisto-on-openbsd-in-60minutes

work hard, play hard!
love/j =)

Baldur Gudbjornsson wrote:

+1

our startup went with gentoo at the recommendation of our sysadmin,
and it was such a wonderful user experience that I switched my home
machine from fedora to gentoo too.

martin

Gentoo++
It’s been painless getting the full rails stack up and running quickly,
and we’re running 64bit with 4 cores. I’m sure 32bit is even easier.
I’ve always had to look at some tutorial, or just build from source
to get it running on Debian/Ubuntu, the way their package management
breaks up ruby is annoying.

I use Edgy without problems. As far as I know the problem you have was
back with the Breezy version of Ubuntu.

Anyway, this page talks about your problem with a solution:

http://ubuntuforums.org/showthread.php?t=169891

Baldur Gudbjornsson wrote: