Skip to content

rails4.03 is not work #2965

Closed
maeikei opened this Issue Mar 3, 2014 · 4 comments

3 participants

@maeikei
maeikei commented Mar 3, 2014

An exception occurred running bin/rails:

Could not open library /home/ma/.rubinius/gems/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.so - /home/ma/.rubinius/gems/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.so: undefined symbol: RBIGNUM_DIGITS (LoadError::InvalidExtensionError)

Backtrace:

Rubinius::NativeMethod.load_extension at kernel/common/native_method.rb:26
Rubinius::CodeLoader#load_library at kernel/delta/code_loader.rb:234
Rubinius::CodeLoader#require at kernel/common/code_loader.rb:130
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
Kernel(Object)#require at kernel/common/kernel.rb:705
Object#script at /home/ma/.rubinius/gems/gems
/sqlite3-1.3.9/lib/sqlite3.rb:6
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel.require at kernel/common/kernel.rb:705
{ } in Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:76
Array#each at kernel/bootstrap/array.rb:66
{ } in Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:72
Array#each at kernel/bootstrap/array.rb:66
Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:61
Bundler.require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler.rb:132
Object#script at config/application.rb:7
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel(Object)#require at kernel/common/kernel.rb:705
{ } in Object#script at /home/ma/.rubinius/gems/gems
/railties-4.0.3/lib/rails
/commands.rb:74
Kernel(Rails::Server)#tap at kernel/common/kernel.rb:769
Object#script at /home/ma/.rubinius/gems/gems
/railties-4.0.3/lib/rails
/commands.rb:71
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel(Object)#require at kernel/common/kernel.rb:705
Object#script at bin/rails:4
Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:152
Rubinius::Loader#script at kernel/loader.rb:649
Rubinius::Loader#main at kernel/loader.rb:831

Caused by: Could not open library /home/ma/.rubinius/gems/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.so - /home/ma/.rubinius/gems/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.so: undefined symbol: RBIGNUM_DIGITS (LoadError)

Backtrace:

Rubinius::FFI::DynamicLibrary#initialize at kernel/platform/library.rb:379
Rubinius::NativeMethod.load_extension at kernel/common/native_method.rb:24
Rubinius::CodeLoader#load_library at kernel/delta/code_loader.rb:234
Rubinius::CodeLoader#require at kernel/common/code_loader.rb:130
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:237
Kernel(Object)#require at kernel/common/kernel.rb:705
Object#script at /home/ma/.rubinius/gems/gems
/sqlite3-1.3.9/lib/sqlite3.rb:6
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel.require at kernel/common/kernel.rb:705
{ } in Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:76
Array#each at kernel/bootstrap/array.rb:66
{ } in Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:72
Array#each at kernel/bootstrap/array.rb:66
Bundler::Runtime#require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler
/runtime.rb:61
Bundler.require at /home/ma/.rubinius/gems/gems
/bundler-1.6.0.rc/lib/bundler.rb:132
Object#script at config/application.rb:7
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel(Object)#require at kernel/common/kernel.rb:705
{ } in Object#script at /home/ma/.rubinius/gems/gems
/railties-4.0.3/lib/rails
/commands.rb:74
Kernel(Rails::Server)#tap at kernel/common/kernel.rb:769
Object#script at /home/ma/.rubinius/gems/gems
/railties-4.0.3/lib/rails
/commands.rb:71
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel(Object)#require at kernel/common/kernel.rb:705
Object#script at bin/rails:4
Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:152
Rubinius::Loader#script at kernel/loader.rb:649
Rubinius::Loader#main at kernel/loader.rb:831
ma@ma-Precision-WorkStation-380:~/workspace/samba/RoRx/ubuntu$
ma@ma-Precision-WorkStation-380:~/workspace/samba/RoRx/ubuntu$

@YorickPeterse
Rubinius member

Can confirm this issue. It can be reproduced as following:

gem install sqlite3
ruby -r sqlite3 -e ''
@YorickPeterse
Rubinius member

Seems we'll need to import the following macro from MRI: http://rxr.whitequark.org/mri/source/include/ruby/ruby.h#1168

@YorickPeterse YorickPeterse added the capi label Mar 3, 2014
@maeikei
maeikei commented Mar 3, 2014

Yeah
I think it need this macro.
Wait for bug fix

@brixen
Rubinius member
brixen commented Mar 10, 2014

This is fixed on master and 2.2.6 will be released soon.

@brixen brixen closed this Mar 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.