[MacRuby] #679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri
#679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri ------------------------------+--------------------------------------------- Reporter: dmlary@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: nokogiri ------------------------------+--------------------------------------------- I managed to get nokogiri installed using: sudo macgem install nokogiri -- \ --with- xml2-include=/Developer/SDKs/MacOSX10.6.sdk/usr/include/libxml2/ \ --with-xml2-lib=/Developer/SDKs/MacOSX10.6.sdk/usr/lib \ --with-xslt-dir=/Developer/SDKs/MacOSX10.6.sdk/usr/ However, when loading nokogiri I get the following ICU errors: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'nokogiri' /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/lib/nokogiri/css/generated_tokenizer.rb:58: regexp `[-@]?([_A-Za-z]|[^\0-\177]|\\[0-9A- Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0-9A-Fa-f])([_A- Za-z0-9-]|[^\0-\177]|\\[0-9A-Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0 -9A-Fa-f])*\([\s\r\n\f]* 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/lib/nokogiri/css/generated_tokenizer.rb:61: regexp `[-@]?([_A-Za-z]|[^\0-\177]|\\[0-9A- Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0-9A-Fa-f])([_A- Za-z0-9-]|[^\0-\177]|\\[0-9A-Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0 -9A-Fa-f])* 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/lib/nokogiri/css/generated_tokenizer.rb:64: regexp `\#([_A-Za-z0-9-]|[^\0-\177]|\\[0-9A- Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0-9A-Fa-f])+ 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/lib/nokogiri/css/generated_tokenizer.rb:127: regexp `"([^\n\r\f"]|\n|\r\n|\r|\f|[^\0-\177]|\\[0-9A- Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0-9A- Fa-f])*"|'([^\n\r\f']|\n|\r\n|\r|\f|[^\0-\177]|\\[0-9A- Fa-f]{1,6}(\r\n|[\s\n\r\t\f])?|\\[^\n\r\f0-9A-Fa-f])*' 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE LoadError: no such file to load -- nokogiri from /Users/dmlary/(irb):2:in `<main>' -- Ticket URL: <http://www.macruby.org/trac/ticket/679> MacRuby <http://macruby.org/>
#679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri ------------------------------+--------------------------------------------- Reporter: dmlary@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: nokogiri ------------------------------+--------------------------------------------- Comment(by ted@…): I get a similar error trying to use [http://github.com/sporkmonger/addressable Addressable]: caelesta:addressable knowtheory$ macrake spec (in /Users/knowtheory/Code/ruby/addressable) /Users/knowtheory/Code/ruby/addressable/lib/addressable/idna.rb:4696: regexp `\0+\z 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE /Users/knowtheory/Code/ruby/addressable/spec/addressable/idna_spec.rb:25:in `<main>': compile error (SyntaxError) from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `block' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:9:in `load_files:' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/lib/spec/runner/options.rb:123:in `run_examples' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:6:in `run' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/bin/spec:2:in `<main>' rake aborted! Command /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/bin/macruby -I"lib:spec" "/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/rspec-1.3.0/bin/spec" "spec/addressable/idna_spec.rb" "spec/addressable/template_spec.rb" "spec/addressable/uri_spec.rb" --color --format specdoc failed -- Ticket URL: <http://www.macruby.org/trac/ticket/679#comment:1> MacRuby <http://macruby.org/>
#679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri ------------------------------+--------------------------------------------- Reporter: dmlary@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: duplicate Keywords: nokogiri | ------------------------------+--------------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => duplicate Comment: Hi! Thanks for the report. This is a duplicate of #612 -- Ticket URL: <http://www.macruby.org/trac/ticket/679#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby