Custom install of Ruby not being used


#1

I am trying to get rails to use my own custom version of Ruby. I have setup my server by using the instructions on this page: http://wiki.dreamhost.com/Ruby

and can confirm my environment is setup fine.

[coneybeare]$ which ruby
/home/mconeybeare/bin/ruby
[coneybeare]$ echo $PATH
/home/mconeybeare/bin:/home/mconeybeare/run/bin:/home/mconeybeare/.gems/bin:/home/mconeybeare/.gems:/usr/lib/ruby/gems/1.8:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[coneybeare]$ grep ruby public/dispatch.fcgi
#!/home/mconeybeare/bin/ruby

I am using mongrel to run my server and everything works great… until I go to code.coneybeare.net/flickr

In the error stack I see this (note that the ruby used is NOT my local copy):

Processing FlickrController#index (for 64.81.49.249 at 2008-08-05 13:40:22) [GET]
Session ID: BAh7CDoQZmxpY2tyX3BhZ2VpBjoMcmNjX2VyciIAIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA–b44adad0a07e15a8e417a421a67527e767b4734a
Parameters: {“action”=>“index”, “controller”=>“flickr”}
Rendering template within layouts/code
Rendering flickr/index

ActionView::TemplateError (Bignum is too big! Must be signed 32-bit integer!) on line #19 of flickr/index.rhtml:
16:
17:
18:


19: <%= link_to photo_image_tag(set.primary()), :action => “set”, :id => set.id %>
20:

21:
22: <% end -%>

/usr/lib/ruby/1.8/xmlrpc/create.rb:191:in conv2value' /usr/lib/ruby/1.8/xmlrpc/create.rb:230:inconv2value’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:602:in collect' /usr/lib/ruby/1.8/xmlrpc/create.rb:227:ineach’
/usr/lib/ruby/1.8/xmlrpc/create.rb:227:in collect' /usr/lib/ruby/1.8/xmlrpc/create.rb:227:inconv2value’
/usr/lib/ruby/1.8/xmlrpc/create.rb:118:in methodCall' /usr/lib/ruby/1.8/xmlrpc/create.rb:117:incollect’
/usr/lib/ruby/1.8/xmlrpc/create.rb:117:in methodCall' /usr/lib/ruby/1.8/xmlrpc/client.rb:419:incall2’
/usr/lib/ruby/1.8/xmlrpc/client.rb:410:in call' /home/mconeybeare/.gems/gems/rflickr-2006.02.01/lib/flickr/base.rb:153:incall_unauth_method’
/home/mconeybeare/.gems/gems/rflickr-2006.02.01/lib/flickr/base.rb:175:in call_auth_method' /home/mconeybeare/.gems/gems/rflickr-2006.02.01/lib/flickr/base.rb:139:incall_method’
/home/mconeybeare/.gems/gems/rflickr-2006.02.01/lib/flickr/photos.rb:178:in getInfo' /home/mconeybeare/.gems/gems/rflickr-2006.02.01/lib/flickr/base.rb:748:inprimary’
app/views/flickr/index.rhtml:19:in _run_erb_47app47views47flickr47index46rhtml' app/views/flickr/index.rhtml:10:ineach’
app/views/flickr/index.rhtml:10:in _run_erb_47app47views47flickr47index46rhtml' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in compile_and_render_template' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:365:inrender_template’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1100:inrender_for_file’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:836:in render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/layout.rb:262:inrender_without_benchmark’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in render' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in render' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1153:indefault_render’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1159:in perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:incall_filters’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in perform_action_without_caching' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:inperform_action’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in cache' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:incache’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:inprocess’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in handle_request' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:indispatch’
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in dispatch_cgi' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:indispatch’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in process' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:insynchronize’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in process' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:159:inprocess_client’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:158:in each' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:158:inprocess_client’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:285:in run' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:285:ininitialize’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:285:in new' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:285:inrun’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:268:in initialize' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:268:innew’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel.rb:268:in run' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:inrun’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in each' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:inrun’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/bin/mongrel_rails:128:in run' /home/mconeybeare/.gems/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:inrun’
/home/mconeybeare/.gems/gems/mongrel-1.1.4/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load’
/usr/bin/mongrel_rails:19

Rendering /home/.walt/mconeybeare/blog.coneybeare.net/releases/20080805064625/public/500.html (500 Internal Server Error)

Does anybody know what is going on?

Thanks in advance,
Matt