Created
June 16, 2010 08:31
-
-
Save thewoolleyman/440334 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's a few more links for future googlers. For now, I'm giving up | |
and using system ruby for this app which needs hpricot: | |
* Crosspost on hpricot list: | |
http://librelist.com/browser//hpricot/2010/6/19/re-hpricot-fwd-hpricot-bundle-won-t-load-on-snow-leopard/ | |
* Link from i5m on hpricot list: | |
http://i5m.co.uk/post/470222727/snow-leopard-and-gems-wrong-architecture | |
* Stack overflow article: | |
http://stackoverflow.com/questions/1367380/snow-leopard-64-bit-ruby-gem-problem/#comment-1214390 | |
* Discussion on 64bit support in Snow Leopard: | |
http://www.macobserver.com/tmo/article/checking_32_or_64-bit_kernel_boot_mode_in_snow_leopard/ | |
http://www.osnews.com/story/22009/Snow_Leopard_Seeds_Use_32bit_Kernel_Drivers_by_Default | |
Looks like under RVM the gem builds the hpricot_scan.bundle as x86_64 | |
arch, while the one which comes with snow leopard is universal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solved this. Root cause was that RVM/Ruby had compiled for i386 architecture rather than x86_64: http://gist.github.com/456916#file_6._solved | |
Thanks for the help... | |
-- Chad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
black:tracker woolley$ env ARCHFLAGS="-arch x86_64" gem install hpricot --version=0.6.164 --platform ruby | |
Building native extensions. This could take a while... | |
Successfully installed hpricot-0.6.164 | |
1 gem installed | |
Installing ri documentation for hpricot-0.6.164... | |
Installing RDoc documentation for hpricot-0.6.164... | |
black:tracker woolley$ | |
black:tracker woolley$ | |
black:tracker woolley$ irb | |
ruby-1.8.7-p174 > require 'hpricot_scan' | |
LoadError: dlopen(/Users/woolley/.rvm/gems/ruby-1.8.7-p174/gems/hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.bundle, 9): no suitable image found. Did find: | |
/Users/woolley/.rvm/gems/ruby-1.8.7-p174/gems/hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.bundle: mach-o, but wrong architecture - /Users/woolley/.rvm/gems/ruby-1.8.7-p174/gems/hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.bundle | |
from /Users/woolley/.rvm/gems/ruby-1.8.7-p174/gems/hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.bundle | |
from /Users/woolley/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
from (irb):1 | |
ruby-1.8.7-p174 > quit | |
black:tracker woolley$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.7 | |
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.6.0] | |
- INSTALLATION DIRECTORY: /Users/woolley/.rvm/gems/ruby-1.8.7-p174 | |
- RUBY EXECUTABLE: /Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin/ruby | |
- EXECUTABLE DIRECTORY: /Users/woolley/.rvm/gems/ruby-1.8.7-p174/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86-darwin-9 | |
- GEM PATHS: | |
- /Users/woolley/.rvm/gems/ruby-1.8.7-p174 | |
- /Users/woolley/.rvm/gems/ruby-1.8.7-p174@global | |
- GEM CONFIGURATION: | |
- :update_sources => true | |
- :verbose => true | |
- :benchmark => false | |
- :backtrace => false | |
- :bulk_threshold => 1000 | |
- REMOTE SOURCES: | |
- http://rubygems.org/ | |
black:tracker woolley$ rvm info | |
ruby-1.8.7-p174: | |
system: | |
uname: "Darwin black.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.48(1)-release" | |
rvm: | |
version: "rvm 0.1.38 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]" | |
ruby: | |
interpreter: "ruby" | |
version: "1.8.7" | |
date: "2009-06-12" | |
platform: "i686-darwin9.6.0" | |
patchlevel: "2009-06-12 patchlevel 174" | |
full_version: "ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.6.0]" | |
homes: | |
gem: "/Users/woolley/.rvm/gems/ruby-1.8.7-p174" | |
ruby: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174" | |
binaries: | |
ruby: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin/ruby" | |
irb: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin/irb" | |
gem: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin/gem" | |
rake: "/Users/woolley/.rvm/gems/ruby-1.8.7-p174/bin/rake" | |
environment: | |
PATH: "/Users/woolley/.rvm/bin:/Users/woolley/.rvm/gems/ruby-1.8.7-p174/bin:/Users/woolley/.rvm/gems/ruby-1.8.7-p174@global/bin:/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin:/Users/woolley/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/TextMate.app/Contents/Resources:/Users/woolley/bin:/usr/X11/bin" | |
GEM_HOME: "/Users/woolley/.rvm/gems/ruby-1.8.7-p174" | |
GEM_PATH: "/Users/woolley/.rvm/gems/ruby-1.8.7-p174:/Users/woolley/.rvm/gems/ruby-1.8.7-p174@global" | |
BUNDLE_PATH: "/Users/woolley/.rvm/gems/ruby-1.8.7-p174" | |
MY_RUBY_HOME: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174" | |
IRBRC: "/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/.irbrc" | |
RUBYOPT: "" | |
gemset: "" | |
######################################################## | |
BUT THE ONE WHICH COMES WITH SNOW LEOPARD WORKS: | |
black:~ woolley$ rvm system | |
black:~ woolley$ irb | |
>> require 'hpricot_scan' | |
=> true | |
>> quit | |
black:~ woolley$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.7 | |
- RUBY VERSION: 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0] | |
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 | |
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
- EXECUTABLE DIRECTORY: /usr/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- universal-darwin-10 | |
- GEM PATHS: | |
- /Library/Ruby/Gems/1.8 | |
- /Users/woolley/.gem/ruby/1.8 | |
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 | |
- GEM CONFIGURATION: | |
- :update_sources => true | |
- :verbose => true | |
- :benchmark => false | |
- :backtrace => false | |
- :bulk_threshold => 1000 | |
- REMOTE SOURCES: | |
- http://rubygems.org/ | |
black:~ woolley$ rvm info | |
system: | |
system: | |
uname: "Darwin black.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.48(1)-release" | |
rvm: | |
version: "rvm 0.1.38 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]" | |
ruby: | |
interpreter: "ruby" | |
version: "1.8.7" | |
date: "2009-06-08" | |
platform: "universal-darwin10.0" | |
patchlevel: "2009-06-08 patchlevel 173" | |
full_version: "ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]" | |
homes: | |
gem: "'not set'" | |
ruby: "'not set'" | |
binaries: | |
ruby: "/usr/bin/ruby" | |
irb: "/usr/bin/irb" | |
gem: "/usr/bin/gem" | |
rake: "/usr/bin/rake" | |
environment: | |
PATH: "/Users/woolley/.rvm/bin:/Users/woolley/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/TextMate.app/Contents/Resources:/Users/woolley/bin:/usr/X11/bin" | |
GEM_HOME: "" | |
GEM_PATH: "" | |
BUNDLE_PATH: "" | |
MY_RUBY_HOME: "" | |
IRBRC: "" | |
RUBYOPT: "" | |
gemset: "" | |
######################################################## | |
TRIED COPYING hpricot_scan.bundle FROM WORKING SYSTEM GEMS, BUT IT SEGFAULTS: | |
black:~ woolley$ cd /Users/woolley/.rvm/gems/ruby-1.8.7-p174/gems/hpricot-0.6.164/lib/universal-java1.6 | |
black:universal-java1.6 woolley$ cp /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.bundle . | |
black:universal-java1.6 woolley$ irb | |
ruby-1.8.7-p174 > require 'hpricot_scan' | |
./hpricot_scan.bundle: [BUG] Bus Error | |
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.6.0] | |
Abort trap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment