Renato Isidio wrote: > Adam wrote: >> On Wed, Sep 1, 2010 at 12:50 PM, Renato Isidio <[email protected]> >> wrote: >> >>> -Ilib:bin:test:. -e 'require "rubygems"; require "test/unit"; require >>> require "test/test_cookie_jar.rb"; require "test/test_cookies.rb"; >>> require "test/test_mech.rb"; require "test/test_mech_proxy.rb"; require >>> "test/test_select_all.rb"; require "test/test_select_none.rb"; require >>> 1) Error: >>> 2) Error: >>> 3) Error: >>> 4) Error: >>> 5) Error: >>> 6) Error: >>> 7) Error: >>> 309 tests, 1510 assertions, 0 failures, 7 errors >>> Thanks in advance. >>> >>> Renato >>> >> >> String#force_encoding ( >> http://rubydoc.info/docs/ruby-core/1.9.2/String#force_encoding-instance_method) >> is a Ruby 1.9 method, and you're using Ruby 1.8. It looks like the >> version >> you're trying to install is written only for Ruby 1.9. You probably need >> to >> find an older version. >> >> Adam > > > > Adam! > > thank you very much! > I`ve done that and it gives me now antoher error, but its more clearly > now! > > best regards! > > Renato
Adam, we`ve run rake and its ok right now with no errors anymore, but when I try to do a install_gem it gives me another error: fcor...@fcorrea-work:~/Desktop/xykoRuby/mechanize$ rake install_gem --trace (in /opt/Desktop/xykoRuby/mechanize) ** Invoke install_gem (first_time) ** Invoke clean (first_time) ** Invoke clobber_rcov (first_time) ** Execute clobber_rcov ** Invoke clobber_docs (first_time) ** Execute clobber_docs rm -r doc ** Invoke clobber_package (first_time) ** Execute clobber_package rm -r pkg ** Execute clean ** Invoke package (first_time) ** Invoke pkg/mechanize-1.0.0.tgz (first_time) ** Invoke pkg/mechanize-1.0.0 (first_time) ** Invoke CHANGELOG.rdoc (first_time, not_needed) ** Invoke EXAMPLES.rdoc (first_time, not_needed) ** Invoke FAQ.rdoc (first_time, not_needed) ** Invoke GUIDE.rdoc (first_time, not_needed) ** Invoke LICENSE.rdoc (first_time, not_needed) ** Invoke Manifest.txt (first_time, not_needed) ** Invoke README.rdoc (first_time, not_needed) ** Invoke Rakefile (first_time, not_needed) ** Invoke examples/flickr_upload.rb (first_time, not_needed) ** Invoke examples/mech-dump.rb (first_time, not_needed) ** Invoke examples/proxy_req.rb (first_time, not_needed) ** Invoke examples/rubyforge.rb (first_time, not_needed) ** Invoke examples/spider.rb (first_time, not_needed) ** Invoke lib/mechanize.rb (first_time, not_needed) ** Invoke lib/mechanize/chain.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/auth_headers.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/body_decoding_handler.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/connection_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/custom_headers.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/handler.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/header_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/parameter_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/post_connect_hook.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/pre_connect_hook.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/request_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/response_body_parser.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/response_header_handler.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/response_reader.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/ssl_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/chain/uri_resolver.rb (first_time, not_needed) ** Invoke lib/mechanize/content_type_error.rb (first_time, not_needed) ** Invoke lib/mechanize/cookie.rb (first_time, not_needed) ** Invoke lib/mechanize/cookie_jar.rb (first_time, not_needed) ** Invoke lib/mechanize/file.rb (first_time, not_needed) ** Invoke lib/mechanize/file_response.rb (first_time, not_needed) ** Invoke lib/mechanize/file_saver.rb (first_time, not_needed) ** Invoke lib/mechanize/form.rb (first_time, not_needed) ** Invoke lib/mechanize/form/button.rb (first_time, not_needed) ** Invoke lib/mechanize/form/check_box.rb (first_time, not_needed) ** Invoke lib/mechanize/form/field.rb (first_time, not_needed) ** Invoke lib/mechanize/form/file_upload.rb (first_time, not_needed) ** Invoke lib/mechanize/form/image_button.rb (first_time, not_needed) ** Invoke lib/mechanize/form/multi_select_list.rb (first_time, not_needed) ** Invoke lib/mechanize/form/option.rb (first_time, not_needed) ** Invoke lib/mechanize/form/radio_button.rb (first_time, not_needed) ** Invoke lib/mechanize/form/select_list.rb (first_time, not_needed) ** Invoke lib/mechanize/headers.rb (first_time, not_needed) ** Invoke lib/mechanize/history.rb (first_time, not_needed) ** Invoke lib/mechanize/inspect.rb (first_time, not_needed) ** Invoke lib/mechanize/monkey_patch.rb (first_time, not_needed) ** Invoke lib/mechanize/page.rb (first_time, not_needed) ** Invoke lib/mechanize/page/base.rb (first_time, not_needed) ** Invoke lib/mechanize/page/frame.rb (first_time, not_needed) ** Invoke lib/mechanize/page/image.rb (first_time, not_needed) ** Invoke lib/mechanize/page/label.rb (first_time, not_needed) ** Invoke lib/mechanize/page/link.rb (first_time, not_needed) ** Invoke lib/mechanize/page/meta.rb (first_time, not_needed) ** Invoke lib/mechanize/pluggable_parsers.rb (first_time, not_needed) ** Invoke lib/mechanize/redirect_limit_reached_error.rb (first_time, not_needed) ** Invoke lib/mechanize/redirect_not_get_or_head_error.rb (first_time, not_needed) ** Invoke lib/mechanize/response_code_error.rb (first_time, not_needed) ** Invoke lib/mechanize/unsupported_scheme_error.rb (first_time, not_needed) ** Invoke lib/mechanize/util.rb (first_time, not_needed) ** Invoke test/chain/test_argument_validator.rb (first_time, not_needed) ** Invoke test/chain/test_auth_headers.rb (first_time, not_needed) ** Invoke test/chain/test_custom_headers.rb (first_time, not_needed) ** Invoke test/chain/test_header_resolver.rb (first_time, not_needed) ** Invoke test/chain/test_parameter_resolver.rb (first_time, not_needed) ** Invoke test/chain/test_request_resolver.rb (first_time, not_needed) ** Invoke test/chain/test_response_reader.rb (first_time, not_needed) ** Invoke test/data/htpasswd (first_time, not_needed) ** Invoke test/data/server.crt (first_time, not_needed) ** Invoke test/data/server.csr (first_time, not_needed) ** Invoke test/data/server.key (first_time, not_needed) ** Invoke test/data/server.pem (first_time, not_needed) ** Invoke test/helper.rb (first_time, not_needed) ** Invoke test/htdocs/alt_text.html (first_time, not_needed) ** Invoke test/htdocs/bad_form_test.html (first_time, not_needed) ** Invoke test/htdocs/button.jpg (first_time, not_needed) ** Invoke test/htdocs/empty_form.html (first_time, not_needed) ** Invoke test/htdocs/file_upload.html (first_time, not_needed) ** Invoke test/htdocs/find_link.html (first_time, not_needed) ** Invoke test/htdocs/form_multi_select.html (first_time, not_needed) ** Invoke test/htdocs/form_multival.html (first_time, not_needed) ** Invoke test/htdocs/form_no_action.html (first_time, not_needed) ** Invoke test/htdocs/form_no_input_name.html (first_time, not_needed) ** Invoke test/htdocs/form_select.html (first_time, not_needed) ** Invoke test/htdocs/form_select_all.html (first_time, not_needed) ** Invoke test/htdocs/form_select_none.html (first_time, not_needed) ** Invoke test/htdocs/form_select_noopts.html (first_time, not_needed) ** Invoke test/htdocs/form_set_fields.html (first_time, not_needed) ** Invoke test/htdocs/form_test.html (first_time, not_needed) ** Invoke test/htdocs/frame_test.html (first_time, not_needed) ** Invoke test/htdocs/google.html (first_time, not_needed) ** Invoke test/htdocs/iframe_test.html (first_time, not_needed) ** Invoke test/htdocs/index.html (first_time, not_needed) ** Invoke test/htdocs/link with space.html (first_time, not_needed) ** Invoke test/htdocs/meta_cookie.html (first_time, not_needed) ** Invoke test/htdocs/no_title_test.html (first_time, not_needed) ** Invoke test/htdocs/relative/tc_relative_links.html (first_time, not_needed) ** Invoke test/htdocs/tc_bad_charset.html (first_time, not_needed) ** Invoke test/htdocs/tc_bad_links.html (first_time, not_needed) ** Invoke test/htdocs/tc_base_link.html (first_time, not_needed) ** Invoke test/htdocs/tc_blank_form.html (first_time, not_needed) ** Invoke test/htdocs/tc_charset.html (first_time, not_needed) ** Invoke test/htdocs/tc_checkboxes.html (first_time, not_needed) ** Invoke test/htdocs/tc_encoded_links.html (first_time, not_needed) ** Invoke test/htdocs/tc_field_precedence.html (first_time, not_needed) ** Invoke test/htdocs/tc_follow_meta.html (first_time, not_needed) ** Invoke test/htdocs/tc_form_action.html (first_time, not_needed) ** Invoke test/htdocs/tc_links.html (first_time, not_needed) ** Invoke test/htdocs/tc_meta_in_body.html (first_time, not_needed) ** Invoke test/htdocs/tc_no_attributes.html (first_time, not_needed) ** Invoke test/htdocs/tc_pretty_print.html (first_time, not_needed) ** Invoke test/htdocs/tc_radiobuttons.html (first_time, not_needed) ** Invoke test/htdocs/tc_referer.html (first_time, not_needed) ** Invoke test/htdocs/tc_relative_links.html (first_time, not_needed) ** Invoke test/htdocs/tc_textarea.html (first_time, not_needed) ** Invoke test/htdocs/test_bad_encoding.html (first_time, not_needed) ** Invoke test/htdocs/unusual______.html (first_time, not_needed) ** Invoke test/servlets.rb (first_time, not_needed) ** Invoke test/ssl_server.rb (first_time, not_needed) ** Invoke test/test_authenticate.rb (first_time, not_needed) ** Invoke test/test_bad_links.rb (first_time, not_needed) ** Invoke test/test_blank_form.rb (first_time, not_needed) ** Invoke test/test_checkboxes.rb (first_time, not_needed) ** Invoke test/test_content_type.rb (first_time, not_needed) ** Invoke test/test_cookie_class.rb (first_time, not_needed) ** Invoke test/test_cookie_jar.rb (first_time, not_needed) ** Invoke test/test_cookies.rb (first_time, not_needed) ** Invoke test/test_encoded_links.rb (first_time, not_needed) ** Invoke test/test_errors.rb (first_time, not_needed) ** Invoke test/test_field_precedence.rb (first_time, not_needed) ** Invoke test/test_follow_meta.rb (first_time, not_needed) ** Invoke test/test_form_action.rb (first_time, not_needed) ** Invoke test/test_form_as_hash.rb (first_time, not_needed) ** Invoke test/test_form_button.rb (first_time, not_needed) ** Invoke test/test_form_no_inputname.rb (first_time, not_needed) ** Invoke test/test_forms.rb (first_time, not_needed) ** Invoke test/test_frames.rb (first_time, not_needed) ** Invoke test/test_get_headers.rb (first_time, not_needed) ** Invoke test/test_gzipping.rb (first_time, not_needed) ** Invoke test/test_hash_api.rb (first_time, not_needed) ** Invoke test/test_history.rb (first_time, not_needed) ** Invoke test/test_history_added.rb (first_time, not_needed) ** Invoke test/test_html_unscape_forms.rb (first_time, not_needed) ** Invoke test/test_if_modified_since.rb (first_time, not_needed) rake aborted! Don't know how to build task 'test/test_keep_alive.rb' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1728:in `[]' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:605:in `block in invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/fcorrea/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/fcorrea/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/fcorrea/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `each' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain' /home/fcorrea/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/bin/rake:31:in `<top (required)>' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `load' /home/fcorrea/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `<main>' ty in advance! Renato -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

