我有一個乾淨安裝的山獅10.8.2,並安裝了rbenv和gem,安裝了wkpdf。當我嘗試運行wkpdf時,我收到以下消息: xxxx-MacBook-Pro:~ xxx$ wkpdf --help
Cannot load RubyCocoa library
wkpdf requires that RubyCocoa is installed, which is shipped by defa
在測試Rails應用程序時,我在Ruby控制檯中發現了此錯誤。 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib /mongrel.rb:285:
in `run': Ruby threads cannot be used in RubyCocoa
以下RubyCocoa是在Max OS X 10.6很好,但是當最高位沒有被設置在10.7 require 'osx/cocoa'
include OSX
bytes = [128].pack('i1')
NSData.alloc.initWithBytes_length(bytes, bytes.length)
在它的工作原理所有情況下段錯誤。實際上NSData.alloc在傳遞一個緩