Bug #11073
closedgems/json-1.8.2/lib/json/ext/parser.so: undefined symbol: rb_str_new_static
Description
Currently I am trying to get things started with Passenger and Apache 2 on a Ubuntu 14.4 LTS machine and ruby 2.2.0. Some errors I could fix but this on is tricky. The error says that there is a undefined symbol in the parser.so
, but rb_str_new_static
is only defined in include/ruby/intern.h
and used once few lines below and once in string.c
. Since I have no clue about the internal C structure of ruby I don't know how to fix and change it.
Note: reinstalling all gems (including the packages json
and multi_json
) did not make a change.
Updated by Credo (Gregor Mitzka) almost 9 years ago
The log of the error is this one:
[ 2015-04-17 10:00:43.6397 8885/7f2fe078f700 App/Implementation.cpp:287 ]: Could not spawn process for application [edited]: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger.
Error ID: 07a5420e
Error details saved to: /tmp/passenger-error-INTrB6.html
Message from application: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br>
<h2>Raw process output:</h2>
<pre>
/usr/bin/ruby: symbol lookup error: /usr/local/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/ext/parser.so: undefined symbol: rb_str_new_static
</pre>
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Description updated (diff)
- Status changed from Open to Feedback
Gregor Mitzka wrote:
<pre> /usr/bin/ruby: symbol lookup error: /usr/local/lib/ruby/gems/2.2.0/gems/json-1.8.2/lib/json/ext/parser.so: undefined symbol: rb_str_new_static </pre>
The executable binary file doesn't match with the gem path.
Is /usr/bin/ruby
2.2.0?
Updated by Credo (Gregor Mitzka) almost 9 years ago
Maybe this was the solution. I removed ruby, rubygems and bundler from my machine and reinstalled all components from the bottom. Now everything works just fine. I also updated the JSON package from version 1.8.1 to 1.8.2.
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Status changed from Feedback to Rejected