[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ubuntu as a Ruby dev environment?

joviyach

8/12/2007 2:13:00 PM

Developing using things like MySQL, PHP, and Ruby has been an absolute
nightmare on my Windows XP environment. I was wondering if Ubuntu, or
some other flavour of Linux would be much better? I like what I have
seen from Ubuntu, so far, but wonder how "RoR friendly" it is?

<RANT>With Windows, I seem to spend more time trying to make the
development environment actually work, than doing any development.
It's really quite aggravating.</RANT>

Any advice appreciated.

Thanks,

Jim

38 Answers

Alex Young

8/12/2007 2:18:00 PM

0

joviyach wrote:
> Developing using things like MySQL, PHP, and Ruby has been an absolute
> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> some other flavour of Linux would be much better? I like what I have
> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
>
> <RANT>With Windows, I seem to spend more time trying to make the
> development environment actually work, than doing any development.
> It's really quite aggravating.</RANT>
Ubuntu's great, as long as you're aware of the gotchas (which pretty
much amount to "remember to install all the -dev packages and all the
parts that Ruby was split into"). Alternatively, take a look at
InstantRails - it's a Windows package with MySQL, Rails and PHP already
set up and easy to use.

--
Alex

Trans

8/12/2007 2:37:00 PM

0



On Aug 12, 7:15 am, joviyach <joviy...@gmail.com> wrote:
> Developing using things like MySQL, PHP, and Ruby has been an absolute
> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> some other flavour of Linux would be much better? I like what I have
> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
>
> <RANT>With Windows, I seem to spend more time trying to make the
> development environment actually work, than doing any development.
> It's really quite aggravating.</RANT>
>
> Any advice appreciated.

Get Linux. Use Linux. Push yourself thru the initial learning curve.
In 2 to 4 weeks you'll have a smile plastered from ear to ear and
wondering why the hell you didn't do this sooner.

T.


Robert Dober

8/12/2007 3:00:00 PM

0

On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
> joviyach wrote:
> > Developing using things like MySQL, PHP, and Ruby has been an absolute
> > nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> > some other flavour of Linux would be much better? I like what I have
> > seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
> >
> > <RANT>With Windows, I seem to spend more time trying to make the
> > development environment actually work, than doing any development.
> > It's really quite aggravating.</RANT>
> Ubuntu's great, as long as you're aware of the gotchas (which pretty
> much amount to "remember to install all the -dev packages and all the
> parts that Ruby was split into").
That is because Ubuntu is not made for development platforms, so my
first answer would be, look somewhere else, Debian unstable (which
means stable of course, that is just Debian jargon), or probably the
best choice for development: Gentoo.

But still there are many distros around, I am quite happy with Zenwalk
(Slack based) for *simple* development.

As Tom said it so well, it is probably worth going through a steep
learning curve and if you are willing to do so opt for Gentoo.
If not get a "standard distro" and do some installations as Alex has
pointed out.

I have no problem with Ubuntu but it is not good for Ubuntu either to
be taken as the one catches them all platform as it is not (and there
will be no such platform of course ;).

HTH
Robert

Alternatively, take a look at
> InstantRails - it's a Windows package with MySQL, Rails and PHP already
> set up and easy to use.
>
> --
> Alex
>
>


--
[...] as simple as possible, but no simpler.
-- Attributed to Albert Einstein

Alex Young

8/12/2007 3:35:00 PM

0

Robert Dober wrote:
> On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
>> joviyach wrote:
>>> Developing using things like MySQL, PHP, and Ruby has been an absolute
>>> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
>>> some other flavour of Linux would be much better? I like what I have
>>> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
>>>
>>> <RANT>With Windows, I seem to spend more time trying to make the
>>> development environment actually work, than doing any development.
>>> It's really quite aggravating.</RANT>
>> Ubuntu's great, as long as you're aware of the gotchas (which pretty
>> much amount to "remember to install all the -dev packages and all the
>> parts that Ruby was split into").
> That is because Ubuntu is not made for development platforms, so my
> first answer would be, look somewhere else, Debian unstable (which
> means stable of course, that is just Debian jargon),
Debian makes the same choice. Unless that's changed in unstable, of
course...

--
Alex

James Britt

8/12/2007 4:09:00 PM

0

joviyach wrote:
> Developing using things like MySQL, PHP, and Ruby has been an absolute
> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> some other flavour of Linux would be much better? I like what I have
> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?

Install Ruby from source and skip the debs. You'll get the most current
version. And don't look for "RoR friendly", look for developer
friendly; it's a big world and you're doing yourself a disservice to
focus on any one tool.

>
> <RANT>With Windows, I seem to spend more time trying to make the
> development environment actually work, than doing any development.
> It's really quite aggravating.</RANT>
>

Getting Ruby running on WinXP is snake simple. There are some binaries
that are a pain to install, but I was doing Ruby dev on Win32 since 2001.

In the long run I migrated to Ubuntu, largely because there were some
annoying quirks when building Web apps in WinXP but deploying to CentOS.


--
James Britt

"We are using here a powerful strategy of synthesis: wishful thinking."
- H. Abelson and G. Sussman
(in "The Structure and Interpretation of Computer Programs)

Robert Dober

8/12/2007 4:50:00 PM

0

On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
> Robert Dober wrote:
> > On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
> >> joviyach wrote:
> >>> Developing using things like MySQL, PHP, and Ruby has been an absolute
> >>> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> >>> some other flavour of Linux would be much better? I like what I have
> >>> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
> >>>
> >>> <RANT>With Windows, I seem to spend more time trying to make the
> >>> development environment actually work, than doing any development.
> >>> It's really quite aggravating.</RANT>
> >> Ubuntu's great, as long as you're aware of the gotchas (which pretty
> >> much amount to "remember to install all the -dev packages and all the
> >> parts that Ruby was split into").
> > That is because Ubuntu is not made for development platforms, so my
> > first answer would be, look somewhere else, Debian unstable (which
> > means stable of course, that is just Debian jargon),
> Debian makes the same choice. Unless that's changed in unstable, of
> course...

Hmm hopefully that is not OT, but if one choses Debian, unstable is a
must, I feel.
So you are right Alex if you opt for stable, but really that is a crazy choice.

I just came up with a little File Server app we need for file sharing,
(thx to the list and Pit Capitain in particular). I deployed it on
Gentoo with no pain at all.
Than I wanted it to share with a different dept, they use Debian
stable, no way to get a decent Ruby version to run let alone with
openssl...
So right now I am lobbying for Debian unstable in that dept. to get my
Ruby foot into the door ....

With Debian stable it is virtually impossible to get up to date
versions and security fixes, just forget it.

Cheers
Robert
>
> --
> Alex
>
>


--
[...] as simple as possible, but no simpler.
-- Attributed to Albert Einstein

Alex Young

8/12/2007 5:03:00 PM

0

Robert Dober wrote:
> On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
>> Robert Dober wrote:
>>> On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
>>>> joviyach wrote:
>>>>> Developing using things like MySQL, PHP, and Ruby has been an absolute
>>>>> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
>>>>> some other flavour of Linux would be much better? I like what I have
>>>>> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
>>>>>
>>>>> <RANT>With Windows, I seem to spend more time trying to make the
>>>>> development environment actually work, than doing any development.
>>>>> It's really quite aggravating.</RANT>
>>>> Ubuntu's great, as long as you're aware of the gotchas (which pretty
>>>> much amount to "remember to install all the -dev packages and all the
>>>> parts that Ruby was split into").
>>> That is because Ubuntu is not made for development platforms, so my
>>> first answer would be, look somewhere else, Debian unstable (which
>>> means stable of course, that is just Debian jargon),
>> Debian makes the same choice. Unless that's changed in unstable, of
>> course...
>
> Hmm hopefully that is not OT, but if one choses Debian, unstable is a
> must, I feel.
> So you are right Alex if you opt for stable, but really that is a crazy choice.
Hardly. I've still got sarge boxes that I'm deploying to, and I'm
happily developing on etch day-to-day. Which features (or fixed bugs)
have changed since the distro's release? That's the only relevant
question, really...

> I just came up with a little File Server app we need for file sharing,
> (thx to the list and Pit Capitain in particular). I deployed it on
> Gentoo with no pain at all.
> Than I wanted it to share with a different dept, they use Debian
> stable, no way to get a decent Ruby version to run let alone with
> openssl...
Etch has 1.8.4 out of the box. That's really not that bad, thread bugs
notwithstanding. I've yet to run into anything that I need which
*requires* 1.8.5, although it sounds like your experience is different.
I have in the past used backports when it was essential to get >1.8.2
onto a sarge box, but only because that was quicker than ripping
everything out and building from source.

> So right now I am lobbying for Debian unstable in that dept. to get my
> Ruby foot into the door ....
>
> With Debian stable it is virtually impossible to get up to date
> versions and security fixes, just forget it.
If you're really worried about getting the latest and greatest onto a
Debian box, there's always checkinstall.

--
Alex

Robert Dober

8/12/2007 5:20:00 PM

0

On 8/12/07, Alex Young <alex@blackkettle.org> wrote:
Good to learn some positive points about it, and I am happy to learn
that things have evolved, however how do you get your security patches
installed???

Robert

M. Edward (Ed) Borasky

8/12/2007 5:44:00 PM

0

joviyach wrote:
> Developing using things like MySQL, PHP, and Ruby has been an absolute
> nightmare on my Windows XP environment. I was wondering if Ubuntu, or
> some other flavour of Linux would be much better? I like what I have
> seen from Ubuntu, so far, but wonder how "RoR friendly" it is?
>
> <RANT>With Windows, I seem to spend more time trying to make the
> development environment actually work, than doing any development.
> It's really quite aggravating.</RANT>
>
> Any advice appreciated.
>
> Thanks,
>
> Jim

Some *general* advice:

1. Develop with portability in mind. That is, if you are building
something that must be cross-platform, make sure your actually *have*
the platforms and you test religiously on them.

2. Conversely, if you are *never* going to go to another platform, make
sure your marketing folks understand that. Yes, even open-source
projects have marketing folks. :)

Now a couple of specifics:

1. It isn't clear at all what your user base is from what you've said.
If your user base is Windows users (or even potentially includes them)
then you must not only be comfortable developing and testing on a
Windows platform, but *fluent* in it. In short, get over it -- learn how
to do it and quit bitching about what a pain in the ass it is!

2. Linux users tend to have their favorite distros and think nearly all
others (and Windows) are demon spawn. Linux *customers*, on the other
hand, tend to prefer stability, security and ease of use, and thus
gravitate to Red Hat and the commercially-supported version of SuSE from
Novell. Ubuntu is clearly making inroads into this market, as evidenced
by the deal with Dell. Money talks, you know. :)

My own *personal* preference in distros for working with Ruby in
general, as it is for other open source applications, is Gentoo. Because
it's compiled from source, you get more recent versions of the major
packages in the *stable* distribution than you would in most other
stable distributions, and you get the most recent versions for testing
within a few days of their release for the small popular ones, and as
soon as the more adventurous are willing to test them for the large
popular ones.

In addition, they have nearly all the major Ruby packages and gems in
the Portage repository already, including, of course, Rails, rake, and
rubygems itself, but *also* including RSpec, ZenTest and all of the
other goodies out of the Seattle genius pool, Nitro, Camping, etc.
(Which reminds me -- I need to file a bug to get them to package Ruport.)

But if your target user base is running Red Hat or Ubuntu or Etch RoR
servers, *that's* what you need to be developing on, not Gentoo. Sorry
about that. :)

Alexey Verkhovsky

8/12/2007 6:47:00 PM

0

> In 2 to 4 weeks you'll have a smile plastered from ear to ear

Unless you start on Gentoo, as someone else suggested. Then in 2 to 4
weeks you may manage to get it to the point where printer and sound
card work. I'm not bashing Gentoo, but it's a distro for hardcore
Linux tinkerers. Suggesting it as a first distro to a newbie is a sure
way to scare people away from Linux.

Ubuntu is a good choice because it is probably the nearest thing to a
"decent desktop OS that my mom could install and use" in the Linux
world today. Why is that a good thing? Because, as a Rails developer
you want to spend time on productive pursuits, rather than trying to
figure out how to make your VPN connection or MP3 player work.

As far as Rails development is concerned, I saw next to no difference
between Ubuntu and Debian. Except that you have to install more
packages on Debian to make it all click together. Please enlighten me
if there actually is any.

There is no point in building your own Ruby. You can safely use what
Ubuntu provides. Building your own Ruby *well* (i.e., with support of
zlib, openssl, readline etc) is not too hard, but actually is not easy
for a Linux noob.

Ruby development in Windows is not such a big pain, either. Sure,
command-line experience sucks and your unit tests take longer to run,
but none of it is really unbearable. As long as you use One-Click
Installer Ruby, and not Cygwin's.

--
Alex Verkhovsky