It’s just data

RVM for Ubuntu Tip

sudo apt-get install libssl-dev libreadline5-dev

Do the above before installing any VM’s.  If you don’t it isn’t too late.

With that out of the way, rvm is highly recommended.

Installing 1.9.2 head.  Additional notes:

First install bison:

apt-get install bison

And after updating rvm, close the window and open a new shell window.

Rails mostly runs on ruby 1.9.2dev (2009-09-16 trunk 24965) (the latest revision available at this time), after setting RUBYLIB=. and installing the test/unit gem.  A few notes:

With a little cooperation, all of this looks like it is likely to be fixable this fall.  At a minimum, that would mean that a page like this one detailing what you will need to do to run the examples in Edition 4 using Ruby 1.9 could be produced.  At this point, I’m leery of putting that into the book itself as Ruby 1.9.x is likely to remain a moving target for a while longer.

Posted by Sam Ruby at

Got the beta book 4. It’s the first install I’ve been able to complete on ubuntu/kubuntu 9.10 and 10.04 betas. Everything works except for adding gems to the gem file and bundle install. At this point I’m not sure whether require statements are needed for some gems or not. The bottom line is that I can do bundle show and find my gems (paperclip), but rails doesn’t seem to find them. I keep getting “Could not find generator paperclip”. So I"m guessing something is failing in my install of 1.8.7 and rails 3.0.

The install instructions work fine for the book examples - just not for installing plugins by using the gemfile and bundler. Same for rvm and 1.9.2. Yes, I do like the idea of bundler. And after playing with it for a while it’s an easy thing to get along with. I just don’t know if I’m having bumbling bundler problems in getting paperclip to work, or if my ubuntu installations aren’t quite right.

Any chance you’ll be working on an updated “install 1.9.2 and rails 3.0 on ubuntu 10.04....” anytime soon? I know the book comes first, but if 30 or 40 percent of your readers with be on ubuntu, it would be good to update the install instructions - not in the book for a while, but here on the blog.

Posted by oldroy at

I do all of my development on Ubuntu (and then regression test on OS/X and Windows).  I also use rvm heavily.  Chapter 12 in the beta does demonstrate a plugin (no require required), and this has been tested on Ubuntu w/1.9.2.

Based on your description, I think that the problem is rather unlikely that to be with Ubuntu, or with Bundler, or even with Rails, but perhaps with paperclip itself.  (check out the input from ekosz)

Posted by Sam Ruby at

I think you are right. I added devise to the gemfile - bundle install - and devise shows in the “copying .gem files to vendor cache” list and the devise generators show up when I list generators with rails generate.

I guess I’ll look through the paperclip commits on github from the past week or two and see what might have been tinkered with that would make it break. I can’t believe I’d be the only one with the issue, but maybe people are waiting. Or maybe they are reading your beta book? I’ll be working through a chapter or two more tonight.

It might well be that my combination of rails 3.0 beta 3 and 1.9.2 latest, just might have something in it that breaks paperclip and I’m one of the few with that combination? Or maybe I’m more tenacious.....

Posted by oldroy at

Hi oldroy,

Same problem here with Leopard Mac installation... some news about?

Posted by Daniel at

I think my paperclip is actually working - it’s just that the generator doesn’t work. If you look at the migrations that paperclip generates in rails 2.3.5 and just create your own migration to match, it seems like paperclip works - although it sure would be more convenient if the generator worked on rails 3.0

Posted by oldroy at

RVM on Ubuntu Lucid

BridgeUtopia (Katherine G. Pe): Install RVM, Passenger, Nginx and Rails 3 on Ubuntu Lucid Lynx Ubuntu Forums: [SOLVED] Ruby and RVM (Ruby version manager) on Ubuntu from source Ruby Inside: Ruby Version Manager: Easily Use Multiple Ruby Versions At...

Excerpt from BLinkage.NET at

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.

Posted by seo companies los angeles at

I would like to say that this blog really convinced me to do it! Thanks, very good post.

Posted by Hero Instinct at

Keep up the good  work , I read few posts  on this  web site  and I  conceive that your blog  is very  interesting and has  sets  of  fantastic  information. Devotion System

Posted by Robinjack at

There is so much in this article that I would never have thought of on my own.  Your content gives readers things to think about in an interesting way.  Thank you for your clear information.

Posted by پنجره at

Add your comment