lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Ruby client fails to build
Date Wed, 20 Jan 2010 10:49:42 GMT
Where are you getting your solr-ruby code from?  You can simply "gem  
install" it to pull in an already pre-built gem.

I just ran the tests on trunk, all passed, with the output pasted below.

	Erik

~/dev/solr/client/ruby/solr-ruby: rake test
(in /Users/erikhatcher/dev/solr/client/ruby/solr-ruby)
/opt/local/bin/ruby -I"/Users/erikhatcher/dev/solr/client/ruby/solr- 
ruby/lib" -r solr -r test/unit -Itest/unit "/opt/local/lib/ruby/gems/ 
1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/unit/ 
add_document_test.rb" "test/unit/array_mapper_test.rb" "test/unit/ 
changes_yaml_test.rb" "test/unit/commit_test.rb" "test/unit/ 
connection_test.rb" "test/unit/data_mapper_test.rb" "test/unit/ 
delete_test.rb" "test/unit/delimited_file_source_test.rb" "test/unit/ 
dismax_request_test.rb" "test/unit/document_test.rb" "test/unit/ 
field_test.rb" "test/unit/hpricot_mapper_test.rb" "test/unit/ 
indexer_test.rb" "test/unit/modify_document_test.rb" "test/unit/ 
ping_test.rb" "test/unit/request_test.rb" "test/unit/response_test.rb"  
"test/unit/select_test.rb" "test/unit/spellcheck_response_test.rb"  
"test/unit/spellchecker_request_test.rb" "test/unit/ 
standard_request_test.rb" "test/unit/standard_response_test.rb" "test/ 
unit/util_test.rb" "test/unit/xpath_mapper_test.rb"
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ 
rake_test_loader
Started
....................................................................................
Finished in 0.038171 seconds.

84 tests, 239 assertions, 0 failures, 0 errors
rm -rf test/data
starting solr server on i686-darwin9
jetty_home: /Users/erikhatcher/dev/solr/example
solr_home: /Users/erikhatcher/dev/solr/client/ruby/solr-ruby/test
jetty_command: java -Djetty.port=8888 -Dsolr.solr.home=/Users/ 
erikhatcher/dev/solr/client/ruby/solr-ruby/test -jar start.jar
#<TestSolrServer:0x5e9214 @pid=nil, @jetty_home="/Users/erikhatcher/ 
dev/solr/example", @solr_home="/Users/erikhatcher/dev/solr/client/ruby/ 
solr-ruby/test", @port=8888, @quiet=true>
/opt/local/bin/ruby -I"/Users/erikhatcher/dev/solr/client/ruby/solr- 
ruby/lib" -r solr -r test/unit -Itest/functional "/opt/local/lib/ruby/ 
gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/ 
functional/server_test.rb"
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ 
rake_test_loader
Started
.................
Finished in 1.561094 seconds.

17 tests, 27 assertions, 0 failures, 0 errors
stopping solr server



On Jan 20, 2010, at 4:04 AM, Siddhant Goel wrote:

> Hi,
>
> I'm using Solr 1.4 (and trying to use the Ruby client (solr-ruby) to  
> access
> it). The problem is that I just cant get it to work. :-)
>
> If I run the tests (rake test), it fails giving me the following  
> output -
> /path/to/solr-ruby/test/unit/delete_test.rb:52: invalid multibyte char
> (US-ASCII)
> /path/to/solr-ruby/test/unit/delete_test.rb:52: syntax error,  
> unexpected
> $end, expecting ')'
>    request = Solr::Request::Delete.new(:query => 'ëäïöü')
>                                                     ^
>    from
> /home/mango/.gem/ruby/1.9.1/gems/rake-0.8.7/lib/rake/ 
> rake_test_loader.rb:5:in
> `block in <main>'
>    from
> /home/mango/.gem/ruby/1.9.1/gems/rake-0.8.7/lib/rake/ 
> rake_test_loader.rb:5:in
> `each'
>    from
> /home/mango/.gem/ruby/1.9.1/gems/rake-0.8.7/lib/rake/ 
> rake_test_loader.rb:5:in
> `<main>'
> rake aborted!
> Command failed with status (1): [/usr/bin/ruby -I"lib" -r solr -r
> test/unit...]
>
>
> And If I try to build the gem anyway, it fails giving me the  
> following error
> (after quite a few lines of output) -
> rake aborted!
> private method `rm_f' called for File:Class
> /path/to/solr-ruby/Rakefile:79:in `block (2 levels) in <top  
> (required)>'
>
>
> Could anyone please tell me what am I missing here?
>
> Thanks,
>
>
> -- 
> - Siddhant


Mime
View raw message