Ruby app with non-system Ruby
megatux at gmail.com
megatux at gmail.com
Wed Jan 30 17:23:57 UTC 2019
Sure thing. The same issue happens with 2.6.0 and 2.5.1 installations. The
latest output on that file is:
----------
configuring Ruby module ...
ruby 2.5.1p57 (2018-03-29 revision 63029) [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/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux
-I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0 -o
build/autotest build/autotest.c -lruby -lpthread -ldl -lcrypt -lm
----------
----------------------------------------
checking for Ruby library in /home/megatux/.asdf/installs/ruby/2.5.1/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/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux
-I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0 -o
build/autotest build/autotest.c
-L/home/megatux/.asdf/installs/ruby/2.5.1/lib
-Wl,-rpath,/home/megatux/.asdf/installs/ruby/2.5.1/lib -lruby -lpthread
-ldl -lcrypt -lm
----------
-----------EOF-------------------
Also, checking in the auto/modules/ruby file I see ruby calls to
"rbconfig". This is the output I see:
~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["libdir"])'
/home/megatux/.asdf/installs/ruby/2.5.1/lib
~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyhdrdir"])'
/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0
~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyarchhdrdir"])'
/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux
~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_SO_NAME"])'
ruby
~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["LIBS"])'
-lpthread -ldl -lcrypt -lm
Thanks a lot
El mié., 30 de ene. de 2019 a la(s) 08:54, Valentin V. Bartenev (
vbart at nginx.com) escribió:
> On Tuesday 29 January 2019 17:37:25 megatux at gmail.com wrote:
> > Ah, cool. That makes total sense.
> >
> > Now I'm having issues trying to configure the ruby module with using my
> > Ruby installation inside my local directory (using the "asdf" ruby
> plugin),
> > but I will create a GitHub issue for this. (autoconf's ruby rbconfig
> looks
> > ok to me) :
> >
> > $ ./configure ruby --module=ruby-2.6.0
> > --ruby=/home/megatux/.asdf/installs/ruby/2.6.0/bin/ruby
> > configuring Ruby module
> > checking for Ruby library ... not found
> > checking for Ruby library in /home/megatux/.asdf/installs/ruby/2.6.0/lib
> > ... not found
> >
> > ./configure: error: no Ruby found.
> >
>
> Could you provide "build/autoconf.err" with configure test results?
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> unit mailing list
> unit at nginx.org
> https://mailman.nginx.org/mailman/listinfo/unit
>
--
-----------------------------------------------------
.^. In an open world, who needs windows or gates?
/V\ Cristian Molina <http://www.megatux.me/>
// \\ GNU/Linux User #73047, Ubuntu User # 14733
/( _ )\ Merlo, San Luis - Argentina
^^ ^^ ---------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20190130/bc51ade1/attachment.html>
More information about the unit
mailing list