Project

General

Profile

Actions

Bug #11073

closed

gems/json-1.8.2/lib/json/ext/parser.so: undefined symbol: rb_str_new_static

Added by Credo (Gregor Mitzka) almost 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
[ruby-core:<unknown>]

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.

Actions #1

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>
Actions #2

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?

Actions #3

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.

Actions #4

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Status changed from Feedback to Rejected
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0