Good freaking lord.
While I'm having a good ole' time doing rails development, getting a slice up and running has been, well, a real pain in the ass.
After building a rails stack manually a couple times, I decided to go with a automated route using deprec. Which almost went smoothly. Only a couple hours of frustration.
First problem: Not really a problem, but installed Rails 2.0 instead of 1.2.6. However, since I'm a noob when it comes to rails, it took me a couple minutes to figure this out.
Second problem: "uninitialized constant Gem::GemRunner (NameError)"
Solution found here. To sum up, you need to edit the install_rubygems task in recipes.rb to include the following lines at the end of the task:
sudo "mv /usr/bin/gem /usr/bin/gem.old"
sudo "ln -s /usr/bin/gem1.8 /usr/bin/gem"
Third problem: "undefined method `require_gem' for main:Object (NoMethodError)"
Ugh. Shoot me in the face. Turns out, I needed to downgrade to rubygems .95. See how to do that here.
Beyond that, it actually wasn't all that bad. Took a few hours instead of 15 minutes, but it should go a little smoother next time.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home