brianmario / yajl-ruby

A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)
http://rdoc.info/projects/brianmario/yajl-ruby
MIT License
1.48k stars 169 forks source link

yajl.rb: require 'yajl/yajl' ld.so.1: ruby: fatal: relocation error: #208

Open ghost opened 2 years ago

ghost commented 2 years ago

more yajl.rb

require 'yajl/yajl'

...

ld.so.1: ruby: fatal: relocation error: file /../gems/yajl-ruby-1.4.1/lib/yajl/yajl.so: symbol isinf: referenced symbol not found - /../gems/yajl-ruby-1.4.1/lib/yajl/yajl.so (LoadError)

Meanwhile editing yajl.rb (changing form 'yajl/yajl' to 'yajl')

more yajl.rb

require 'yajl' fixes above relocation error.

What is wrong with using "require 'yajl/yajl'"?