Closed naaaaaaaaaaaf closed 5 years ago
Please attach produced 'build/autoconf.err' file for investigation.
configuring Ruby module ...
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
----------------------------------------
checking for Ruby library
/usr/bin/ld: cannot find -lruby
collect2: error: ld returned 1 exit status
----------
#include <ruby.h>
int main() {
ruby_init();
return ruby_cleanup(0);
}
----------
cc -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I/home/naf/.rbenv/versions/2.6.0/include/ruby-2.6.0/x86_64-linux -I/home/naf/.rbenv/versions/2.6.0/include/ruby-2.6.0 -o build/autotest build/autotest.c -lruby -lm
----------
----------------------------------------
checking for Ruby library in /home/naf/.rbenv/versions/2.6.0/lib
/usr/bin/ld: cannot find -lruby
collect2: error: ld returned 1 exit status
----------
#include <ruby.h>
int main() {
ruby_init();
return ruby_cleanup(0);
}
----------
cc -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I/home/naf/.rbenv/versions/2.6.0/include/ruby-2.6.0/x86_64-linux -I/home/naf/.rbenv/versions/2.6.0/include/ruby-2.6.0 -o build/autotest build/autotest.c -L/home/naf/.rbenv/versions/2.6.0/lib -Wl,-rpath,/home/naf/.rbenv/versions/2.6.0/lib -lruby -lm
----------
Hi @naaaaaaaaaaaf
Please, build ruby with shared library:
CONFIGURE_OPTS="--enable-shared" rbenv install 2.6.0
this should solve your problem.
@lexborisov Thank you, it was solved!
rbenv version: 1.1.1-40-g483e7f9 ruby version: 2.6.0 OS: Fedora29