error installing libxml

Discussion in 'Ruby' started by Bu Mihai, Mar 28, 2008.

  1. Bu Mihai

    Bu Mihai Guest

    i have this error:


    gem install libxml-ruby
    Building native extensions. This could take a while...
    ERROR: Error installing libxml-ruby:
    ERROR: Failed to build gem native extension.

    c:/ruby/bin/ruby.exe extconf.rb install libxml-ruby
    extconf.rb:6:in `[]': stack level too deep (SystemStackError)
    from extconf.rb:6:in `method_missing'
    from extconf.rb:6:in `method_missing'
    from extconf.rb:34


    Gem files will remain installed in
    c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.
    5.4 for inspection.
    Results logged to
    c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.4/ext/libxml/ge
    m_make.out


    What can i do?
    Tnx
    --
    Posted via http://www.ruby-forum.com/.
     
    Bu Mihai, Mar 28, 2008
    #1
    1. Advertising

  2. Bu Mihai

    Trans Guest

    On Mar 28, 7:46 am, Bu Mihai <> wrote:
    > i have this error:
    >
    > gem install libxml-ruby
    > Building native extensions. This could take a while...
    > ERROR: Error installing libxml-ruby:
    > ERROR: Failed to build gem native extension.
    >
    > c:/ruby/bin/ruby.exe extconf.rb install libxml-ruby
    > extconf.rb:6:in `[]': stack level too deep (SystemStackError)
    > from extconf.rb:6:in `method_missing'
    > from extconf.rb:6:in `method_missing'
    > from extconf.rb:34
    >
    > Gem files will remain installed in
    > c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.
    > 5.4 for inspection.
    > Results logged to
    > c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.4/ext/libxml/ge
    > m_make.out
    >
    > What can i do?


    Change line 34 to:

    objs = srcs.collect do |srcfile|

    (ie. change src -> srcs)

    T.
     
    Trans, Mar 28, 2008
    #2
    1. Advertising

  3. Bu Mihai

    Bu Mihai Guest

    Trans wrote:
    > On Mar 28, 7:46 am, Bu Mihai <> wrote:
    >> from extconf.rb:6:in `method_missing'
    >> from extconf.rb:34
    >>
    >> Gem files will remain installed in
    >> c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.
    >> 5.4 for inspection.
    >> Results logged to
    >> c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.4/ext/libxml/ge
    >> m_make.out
    >>
    >> What can i do?

    >
    > Change line 34 to:
    >
    > objs = srcs.collect do |srcfile|
    >
    > (ie. change src -> srcs)
    >
    > T.


    Tnx, but now i have this error:
    C:\libxml\libxml-ruby-0.5.4\ext\libxml>ruby extconf.rb
    extconf.rb:51: (eval):11: compile error (SyntaxError)
    (eval):2: unknown regexp option - h
    (eval):9: syntax error, unexpected '.'
    (eval):11: syntax error, unexpected $undefined
    hdrdir = $(topdir)

    There is a gem to intall it without any error, or could u help me to
    install without gem install command?
    --
    Posted via http://www.ruby-forum.com/.
     
    Bu Mihai, Mar 28, 2008
    #3
  4. Bu Mihai

    Trans Guest

    On Mar 28, 5:25 pm, Bu Mihai <> wrote:
    > Trans wrote:
    > > On Mar 28, 7:46 am, Bu Mihai <> wrote:
    > >> from extconf.rb:6:in `method_missing'
    > >> from extconf.rb:34

    >
    > >> Gem files will remain installed in
    > >> c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.
    > >> 5.4 for inspection.
    > >> Results logged to
    > >> c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.4/ext/libxml/ge
    > >> m_make.out

    >
    > >> What can i do?

    >
    > > Change line 34 to:

    >
    > > objs = srcs.collect do |srcfile|

    >
    > > (ie. change src -> srcs)

    >
    > > T.

    >
    > Tnx, but now i have this error:
    > C:\libxml\libxml-ruby-0.5.4\ext\libxml>ruby extconf.rb
    > extconf.rb:51: (eval):11: compile error (SyntaxError)
    > (eval):2: unknown regexp option - h
    > (eval):9: syntax error, unexpected '.'
    > (eval):11: syntax error, unexpected $undefined
    > hdrdir = $(topdir)
    >
    > There is a gem to intall it without any error, or could u help me to
    > install without gem install command?


    Ah, you are installing on Windows. I'm afriad the extconf.rb code is
    "under development" with regard to Windows. Let me get back to you.

    T.
     
    Trans, Mar 28, 2008
    #4
  5. Bu Mihai

    Bu Mihai Guest

    Trans wrote:
    > On Mar 28, 5:25 pm, Bu Mihai <> wrote:
    >> >> m_make.out

    >>
    >> Tnx, but now i have this error:
    >> C:\libxml\libxml-ruby-0.5.4\ext\libxml>ruby extconf.rb
    >> extconf.rb:51: (eval):11: compile error (SyntaxError)
    >> (eval):2: unknown regexp option - h
    >> (eval):9: syntax error, unexpected '.'
    >> (eval):11: syntax error, unexpected $undefined
    >> hdrdir = $(topdir)
    >>
    >> There is a gem to intall it without any error, or could u help me to
    >> install without gem install command?

    >
    > Ah, you are installing on Windows. I'm afriad the extconf.rb code is
    > "under development" with regard to Windows. Let me get back to you.
    >
    > T.


    Yes im using windows. sorry for not telling that; i really need libxml
    because i was using rexml am my xml file is a little big (~1000 lines
    for the moment) and methods like find_first_recursive are slow(~10
    seconds) so i need something faster.

    Tnx for the help.
    --
    Posted via http://www.ruby-forum.com/.
     
    Bu Mihai, Mar 28, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Gregory
    Replies:
    1
    Views:
    532
  2. Olav
    Replies:
    3
    Views:
    4,370
  3. Francis Hwang

    Problem installing ruby-libxml

    Francis Hwang, Nov 26, 2003, in forum: Ruby
    Replies:
    1
    Views:
    152
    Sam Roberts
    Dec 4, 2003
  4. Robert Breininger

    Installing libxml-ruby on Windows: zlib

    Robert Breininger, Jun 11, 2006, in forum: Ruby
    Replies:
    3
    Views:
    674
    Ross Bamford
    Jun 13, 2006
  5. nicholas.henry

    Installing libxml on osx as Gem

    nicholas.henry, Sep 28, 2006, in forum: Ruby
    Replies:
    2
    Views:
    145
    nicholas.henry
    Oct 12, 2006
Loading...

Share This Page