Note that there are some explanatory texts on larger screens.

plurals
  1. POmissing rails gem: zlib not found on snow leopard, but shows in ports
    primarykey
    data
    text
    <p>Trying to start development on a snow leopard machine. Have reinstalled and built ruby and ruby on rails via</p> <p><a href="http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/" rel="nofollow noreferrer">hivelogic post</a></p> <p>Prior to sorting out my own rails app, I created a test app, and all the expected files showed up. But when I try to run it I get </p> <blockquote> <p>Missing the Rails 2.2.2 gem. Please <code>gem install -v=2.2.2 rails</code>, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.</p> </blockquote> <p>Trying to do so results in</p> <blockquote> <p>/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)</p> </blockquote> <p>Prior to installing the ruby and ruby on rails versions, I had run ports to install zlib with</p> <blockquote> <p>port install zlib +universal</p> </blockquote> <p>on the assumption that this might get around architecture problems</p> <p>and checking I see:</p> <pre><code>$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] </code></pre> <blockquote> <p>$ rails -v Rails 2.2.2</p> </blockquote> <pre><code>$ port list | grep 'zlib' zlib @1.2.3 archivers/zlib hs-zlib @0.5.0.0 devel/hs-zlib p5-compress-raw-zlib @2.021 perl/p5-compress-raw-zlib p5-io-zlib @1.10 perl/p5-io-zlib php5-zlib @5.3.0 php/php5-zlib py25-zlib @2.5.4 python/py25-zlib </code></pre> <p>so I'm stuck. the victim of my own incompetencer. The original objective was to get rmagick running, and somewhere along the way I'm pretty sure my ruby/RoR setup got hosed. Haven't tested it on the original Snow Leopard install, i can't say, but the machine is very new, upgraded the first day I owned it to 10.6. </p> <p>The eventual objective includes getting all this running under Mongrel, with rmagick and google-geocode. The production server is running earlier versions of all of this under Solaris and doing so fine, as was my previous machine's 10.5 setup. And yes, I've tried installing the latest Developer Tools and XCode, both from the Apple site and the SL install DVD</p> <p>Am I better off starting from scratch, or repairing from here... and where are starting points for either?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload