On Aug 30, 2010, at 18:07 , Doug Cutting wrote:

> I added the list of packages I needed to install to the BUILD.txt in the src 
> tarball.  It was just php5, phpunit and php5-gmp.  Perhaps this information 
> should be duplicated in PHP's README too.

I've created a patch to do this:

https://issues.apache.org/jira/browse/AVRO-645

> 
>> I'm unfamiliar with Ruby, and it is complaining about yajl meanwhile
>> 'gem install' doesn't know what yajl is

I believe the gem name is yajl-ruby (which is spelled correctly in BUILD.txt 
and in lang/ruby/Rakefile). I believe what's confusing here is that the 
required *library* is called 'yajl', which is what gets reported in the 
exception:

$ rake test
(in /Users/grzm/src/avro-svn/lang/ruby)
/Users/grzm/src/avro-svn/lang/ruby/rakefile:19: warning: already initialized 
constant VERSION
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
-Ilib:ext:bin:test 
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb"
 "test/test_datafile.rb" "test/test_help.rb" "test/test_io.rb" 
"test/test_protocol.rb" "test/test_socket_transport.rb" 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
 `gem_original_require': no such file to load -- yajl (LoadError)

The require line could probably be wrapped in a begin/rescue block and report a 
more useful error message, but this wouldn't be very idiomatic. Then again, the 
naming is unfortunate and not very helpful if you're unfamiliar with Ruby and 
gem.

Michael Glaesemann
grzm seespotcode net



Reply via email to