Open link in a new tab

Content

Expand project menu

Binding of Caller - Error

Hello guys
first of all sorry for my bad english.

i wanted to execute the “bundle install” command (Number 7 in the installation guide https://community.openproject.org/projects/openproject/wiki/Installation_Ubuntu ) but i get the same error message everytime:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
creating Makefile

make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I. -D_FORTIFY_SOURCE=2 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -O0 -std=c99 -c binding_of_caller.c
binding_of_caller.c:4:21: fatal error: vm_core.h: No such file or directory
compilation terminated.
make: ***** [binding_of_caller.o] Error 1

Gem files will remain installed in /var/lib/gems/1.8/gems/binding_of_caller-0.7.2 for inspection.
Results logged to /var/lib/gems/1.8/gems/binding_of_caller-0.7.2/ext/binding_of_caller/gem_make.out
An error occurred while installing binding_of_caller (0.7.2), and Bundler cannot
continue.
Make sure that `gem install binding_of_caller -v ‘0.7.2’` succeeds before
bundling.

Can someone help me?

Message actions

Hi Christian

the file vm_core.h should be in

root@1a748e650296:/# find / -name "vm_core.h"
/home/openproject/.rvm/src/ruby-2.1.0/vm_core.h
/home/openproject/.rvm/gems/ruby-2.1.0/gems/binding_of_caller-0.7.2/ext/binding_of_caller/ruby_headers/192/vm_core.h
/home/openproject/.rvm/gems/ruby-2.1.0/gems/binding_of_caller-0.7.2/ext/binding_of_caller/ruby_headers/193/vm_core.h

check your install of ruby

cheers
Brendan

Message actions

Hi Christian,

you are using ruby 1.8 which is not supported by OP 3.0/4.0. Please install ruby 2.1 (e.g. via RVM or rbenv) and this and other problems should disappear.

Regards

Jens