symbol lookup error:

28 views
Skip to first unread message

Allan Farrell

unread,
Sep 8, 2020, 1:31:38 PM9/8/20
to nokogiri-talk
Hi,

I'm getting the following error

symbol lookup error: /home/allan/dev/rails/gard/vendor/ruby/2.7.0/gems/nokogiri-1.10.10/lib/nokogiri/nokogiri.so: undefined symbol: st_init_numtable_with_size

This error occurs in a Rails 6.0.2.2 app running Nokogiri Gem 1.10.10 
while accessing the built in Rails Puma server with an invalid request url. 

Ruby version is 2.7.0

The nokogiri gem builds and installs fine.

My dev machine is Ubuntu 20.04

Thanks for any help you can provide.

allan

Mike Dalessio

unread,
Sep 8, 2020, 1:34:32 PM9/8/20
to nokogiri-talk
Hi Allan,

Sorry you're having issues. I'll try to help!

Can you provide more information about your installation? I'd like to see:

- the output from `nokogiri -v`
- information about how your version of Ruby was built
- can you find where Nokogiri is installed on your machine, find the `nokogiri.so` file, and send the output from `ldd /path/to/nokogiri.so`

Also if you can provide the error output from your ruby process when this happens, that would help me understand what's going on.

Thanks.

--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/a65e42e4-a4fc-43dd-ae47-e3e309e8753dn%40googlegroups.com.

Allan Farrell

unread,
Sep 8, 2020, 3:20:43 PM9/8/20
to nokogi...@googlegroups.com
Hi Mike,

I'm attaching text files containing the info you requested.

I use RVM to manage my ruby installs with autollbs turned on.  

All my gems are installed in a vendor subfolder in my app using bundler.

The ruby_config file contains details of my ruby 2.7.0 build. 

The rails_process_error file is what my app server outputs when it tries to handle an invalid url. 

The nokogiri_version file is the output from running bundle exec nokogiri -v

I'm also including the output Bundler produces when installing the gem - it's in the file gem_make_out - there's some warnings in there but no errors that I could see. 

Thanks,

Allan



You received this message because you are subscribed to a topic in the Google Groups "nokogiri-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nokogiri-talk/EVAHsvnoGT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/CAGJbjKZY3rL9nhghg1NrBLg_E0hyN4GC7cpXMzOyk8nKyLWrUA%40mail.gmail.com.
ldd_output.txt
rails_process_error.txt
ruby_config
nokogiri_version.txt
gem_make.out.txt

Allan Farrell

unread,
Sep 9, 2020, 6:40:43 AM9/9/20
to nokogiri-talk
Out put of ldd attached in previous email indicates missing libruby.so.2.7 so 

I recompiled ruby 2.7.0 using  

rvm install 2.7.0 -C --enable-shared

This seems to have fixed the error. 

Output of ldd looks good now, no missing libruby.so

linux-vdso.so.1 (0x00007ffdc8746000)
libruby.so.2.7 => /home/allan/.rvm/rubies/ruby-2.7.0/lib/libruby.so.2.7 (0x00007f8099d89000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8099c13000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8099bea000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8099bce000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f80999dc000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f80999b7000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f80999ac000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f8099928000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8099922000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f80998e7000)
/lib64/ld-linux-x86-64.so.2 (0x00007f809a39c000)

Sorry for the bother! And thanks.

Allan
Reply all
Reply to author
Forward
0 new messages