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:
p 8.2
and get 8.199999999999999
.Racc_Runtime_Version
that will need to be cleaned up.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.
Sam,
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.
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)
Sam,
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.....
Hi oldroy,
Same problem here with Leopard Mac installation... some news about?