I''m install ruby 1.8.7 from rvm on FreeBSD 9 RELEASE, and then I parse xml I get this error: no such file to load -- rexml/encodings/UTF8.rb Here is response (cyrillic symbols): <trip> <Round num="151">АС ЖИТОМИР - ОСТ АП БОРИСПІЛЬ</Round> <regularity>93</regularity> <bus>ГАЗЕЛЬ</bus> <distance>121</distance> <ArrFromPoint time=""/> Here is my gems list: gem list *** LOCAL GEMS *** actionmailer (2.3.5) actionpack (2.3.5) activemodel (3.2.2) activerecord (2.3.5) activeresource (2.3.5) activesupport (3.2.2, 2.3.5) arel (3.0.2) bson (1.6.1, 1.4.0) bson_ext (1.6.1) builder (3.0.0) bundler (1.1.2) chronic (0.6.7) crack (0.3.1) dalli (1.1.5) datanoise-actionwebservice (2.3.5) erubis (2.7.0) hike (1.2.1) htmlentities (4.3.1) i18n (0.6.0) javan-whenever (0.3.7) jnunemaker-validatable (1.8.4) journey (1.0.3) libxml-ruby (2.3.2) mail (1.6.0) mime-types (1.18) modularity (0.6.1) mongo (1.4.0) mongo_ext (0.19.3) mongo_mapper (0.8.6) mongoid (2.4.7) multi_json (1.1.0) mysql (2.8.1) net-scp (1.0.4) net-sftp (2.0.5) net-ssh (2.3.0) nokogiri (1.5.2) plucky (0.3.8) rack (1.4.1, 1.0.1) rack-cache (1.2) rack-test (0.6.1) rails (2.3.5) rake (0.9.2) rmagick (2.13.1) ruby-hmac (0.4.0) rubygems-update (1.5.3) rubyzip (0.9.6.1) savon (0.7.9) searchlogic (2.4.28) sprockets (2.1.2) tilt (1.3.3) tzinfo (0.3.32) unicode (0.4.2) xml-simple (1.1.1) ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-freebsd9.0] -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
God damn.. c''mon..>> activesupport (3.2.2, 2.3.5)For what you''re using rvm? for collecting branch of gems version in one gemset? Remove 3.2.2 version.. and ensure that you have installed rexml lib. On Thursday, March 22, 2012 11:04:56 AM UTC+2, Ruby-Forum.com User wrote:> I''m install ruby 1.8.7 from rvm on FreeBSD 9 RELEASE, and then I parse > xml I get this error: > no such file to load -- rexml/encodings/UTF8.rb > > Here is response (cyrillic symbols): > > <trip> > <Round num="151">АС ЖИТОМИР - ОСТ АП БОРИСПІЛЬ</Round> > <regularity>93</regularity> > <bus>ГАЗЕЛЬ</bus> > <distance>121</distance> > <ArrFromPoint time=""/> > > Here is my gems list: > > gem list > > *** LOCAL GEMS *** > > actionmailer (2.3.5) > actionpack (2.3.5) > activemodel (3.2.2) > activerecord (2.3.5) > activeresource (2.3.5) > activesupport (3.2.2, 2.3.5) > arel (3.0.2) > bson (1.6.1, 1.4.0) > bson_ext (1.6.1) > builder (3.0.0) > bundler (1.1.2) > chronic (0.6.7) > crack (0.3.1) > dalli (1.1.5) > datanoise-actionwebservice (2.3.5) > erubis (2.7.0) > hike (1.2.1) > htmlentities (4.3.1) > i18n (0.6.0) > javan-whenever (0.3.7) > jnunemaker-validatable (1.8.4) > journey (1.0.3) > libxml-ruby (2.3.2) > mail (1.6.0) > mime-types (1.18) > modularity (0.6.1) > mongo (1.4.0) > mongo_ext (0.19.3) > mongo_mapper (0.8.6) > mongoid (2.4.7) > multi_json (1.1.0) > mysql (2.8.1) > net-scp (1.0.4) > net-sftp (2.0.5) > net-ssh (2.3.0) > nokogiri (1.5.2) > plucky (0.3.8) > rack (1.4.1, 1.0.1) > rack-cache (1.2) > rack-test (0.6.1) > rails (2.3.5) > rake (0.9.2) > rmagick (2.13.1) > ruby-hmac (0.4.0) > rubygems-update (1.5.3) > rubyzip (0.9.6.1) > savon (0.7.9) > searchlogic (2.4.28) > sprockets (2.1.2) > tilt (1.3.3) > tzinfo (0.3.32) > unicode (0.4.2) > xml-simple (1.1.1) > > ruby -v > ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-freebsd9.0] > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/TtEEFNqcVvMJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No, it''s don''t work. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
How do you run the parser? Is it in the Rails app or a single script? Try including rexml directly in (irb or rails)console and post the response четверг, 22 марта 2012 г., 11:04:56 UTC+2 пользователь Ruby-Forum.com User написал:> > I''m install ruby 1.8.7 from rvm on FreeBSD 9 RELEASE, and then I parse > xml I get this error: > no such file to load -- rexml/encodings/UTF8.rb > > Here is response (cyrillic symbols): > > <trip> > <Round num="151">АС ЖИТОМИР - ОСТ АП БОРИСПІЛЬ</Round> > <regularity>93</regularity> > <bus>ГАЗЕЛЬ</bus> > <distance>121</distance> > <ArrFromPoint time=""/> > > Here is my gems list: > > gem list > > *** LOCAL GEMS *** > > actionmailer (2.3.5) > actionpack (2.3.5) > activemodel (3.2.2) > activerecord (2.3.5) > activeresource (2.3.5) > activesupport (3.2.2, 2.3.5) > arel (3.0.2) > bson (1.6.1, 1.4.0) > bson_ext (1.6.1) > builder (3.0.0) > bundler (1.1.2) > chronic (0.6.7) > crack (0.3.1) > dalli (1.1.5) > datanoise-actionwebservice (2.3.5) > erubis (2.7.0) > hike (1.2.1) > htmlentities (4.3.1) > i18n (0.6.0) > javan-whenever (0.3.7) > jnunemaker-validatable (1.8.4) > journey (1.0.3) > libxml-ruby (2.3.2) > mail (1.6.0) > mime-types (1.18) > modularity (0.6.1) > mongo (1.4.0) > mongo_ext (0.19.3) > mongo_mapper (0.8.6) > mongoid (2.4.7) > multi_json (1.1.0) > mysql (2.8.1) > net-scp (1.0.4) > net-sftp (2.0.5) > net-ssh (2.3.0) > nokogiri (1.5.2) > plucky (0.3.8) > rack (1.4.1, 1.0.1) > rack-cache (1.2) > rack-test (0.6.1) > rails (2.3.5) > rake (0.9.2) > rmagick (2.13.1) > ruby-hmac (0.4.0) > rubygems-update (1.5.3) > rubyzip (0.9.6.1) > savon (0.7.9) > searchlogic (2.4.28) > sprockets (2.1.2) > tilt (1.3.3) > tzinfo (0.3.32) > unicode (0.4.2) > xml-simple (1.1.1) > > ruby -v > ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-freebsd9.0] > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/itP600EWjccJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
We include REXML directly in console, same result, this is Rails app, here is example what we do:>> include REXML=> Object and after that we post request to our provider and parse answer from him, and get error: no such file to load -- rexml/encodings/UTF8.rb NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] On Ubuntu it works fine, on FreeBSD 8.2 or FreeBSD 9.0 we get error :( -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.