Rails3 on Ubuntu! (Can Linux be a first class citizen?)

August 14, 2010 at 9:29 am (Apple, Free Software, Linux, Mac, Microsoft, Open Web, Opensource, Programming, Ruby, Ruby on Rails, Technology, Ubuntu) (, , , , , , )

I know there are people developing Ruby and Rails on Linux and probably a good number. I am a newbie to programming and while learning Ruby and Rails, besides being what I’m interested in, has become a good way for me to build real usable applications and not get bogged down in “hello world” land forever. Can anyone out there relate?

Anyway since I started using Linux about a year and a half ago I always hoped to eventually become a very active commiter to an opensource project(s). I just haven’t been able to get myself to a comfortable level to be helpful in the programming side of things and at times I get somewhat discouraged. Rails and Ruby has brought wind to my sails!

As I said I know there are Rails developers using Linux or more specifically Ubuntu. I also notice that at the very least the Mac is the primary platform being used by Rails and probably Ruby developers and I will admit I probably would do the same if I could afford it but that’s another story. I would like to find like minded people out there who are passionate to make Ubuntu a first class platform in the Rails community. To the point that when new developers or even wanna be developers come along that may be testing opensource or Linux they find that Ruby/Rails is Linux friendly to the point that the tutorials or blogs don’t have to always end with “I’m using Mac but there is probably some help on the web for Linux users”.

Let’s make a landing point for Ubuntu Rails developers and work together to keep packaging, tutorials, and overall community attention fresh and focused on making Ubuntu second to none when it comes to being used with other open source projects. I’ve said it myself before I know that the Mac has answered to alot of users concerns on the Linux desktop or can I say has become the best of both worlds for developers who want the Unix tools they would have with Linux but coupled it with a pleasing stable graphical desktop experience. Heck even Linux/Gnome developers are using Macs to develop free software. Now I don’t want this to be misunderstood as a Apple hater story it is far from that. I just believe that as an opensource platform what better scenario would there be to be able to develop in a first class setting, the software you know and love, and is also open source software. I know in a perfect world being able to use an open desktop with other open source software has got to be better for open source at large then open source software on a proprietary operating system.

Please don’t hesitate to contact me if you catch the vision. Let’s make Ubuntu the best answer to the Unix that so many are using the Mac for.(not to ignore some of the visual design things that I believe the Ubuntu community is working on as well.) Let’s keep open up and down the stack from the programming languages to the browsers to the desktop OS itself. We can do it with the same charisma that the Ruby community uses to make programmers happy using Ruby. Let’s make Ubuntu and Ruby/Rails the number one answer to the developers looking for the best answer to the questions they have. There are quite a few .Net and Windows developers all over the net talking about trying to get Ruby and Rails working on Windows let’s give them a reason why they don’t need to.

Thanks for listening

Permalink Leave a Comment

Ubuntu 10.04,Ruby on Rails Tutorial v3 dependency fix!

August 8, 2010 at 5:27 am (Free Software, General Info, Linux, Opensource, Programming, Ruby, Ruby on Rails, Technology, Ubuntu, Web2.0)

I’ve been following the awesome Rails 3 tutorial by Michael Hartl at http://railstutorial.org/book. I highly recommend anyone wanting to learn Ruby or Rails (even some other languages thrown in as well) to go to this site and you will learn from a thoroughly professional free online gem of a book. I also¬†recommend¬†anyone who can, to purchase the PDF or hardcover that is being offered to show the appreciation for all the hard work put in to this by the author.

Anyway as I was working through Chapter 3 when setting up the initial gem file for bundler to install all the project’s dependencies I kept getting a screen full of errors. After reading the errors I noticed that the gem install was failing while installing the nokogiri package. After Googling as we all do I noticed on the Nokogiri web site that Ubuntu/Debian required two packages to install the nokogiri package. I was hesitant to install them through the normal apt-get packaging tool because I didn’t want the Ruby Version Manager setup to not be able to find the dependencies since the rubies I use through RVM are installed in my /home/me/.rvm directory. Well after installing the two dendencies the classic Debian/Ubuntu way I was pleasantly surprised that all was well and my gem installs were able to finish without a hitch allowing me to continue with the awesome tutorial.

The two packages needed on Ubuntu/Debian can be installed as follows:

sudo apt-get install libxslt-dev libxml2-dev

*the Nokogiri site has details for a fix without running the RVM setup, be careful not to follow as is on the site if you are using the tutorial as directed on the rails tutorial web site.

And as a reminder make sure RVM is setup as Michael instructs in the tutorial.

Just a few words of caution, when following the instructions for the setup at the beginning of the Rails tutorial be very careful to follow them word for word and with this dependency exception on Linux, everything else works as expected.

Permalink Leave a Comment