<div dir="ltr"><div dir="ltr">Pasted on this Gist: <a href="https://gist.github.com/megatux/b07eb0fe2820872e6b87c48a6df36a7d">https://gist.github.com/megatux/b07eb0fe2820872e6b87c48a6df36a7d</a></div><div dir="ltr"><br></div><div>Regards<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 30 de ene. de 2019 a la(s) 14:55, Valentin V. Bartenev (<a href="mailto:vbart@nginx.com">vbart@nginx.com</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Please show the content of lib directory:<br>
<br>
ls -l /home/megatux/.asdf/installs/ruby/2.5.1/lib<br>
<br>
  wbr, Valentin V. Bartenev<br>
<br>
<br>
On Wednesday 30 January 2019 14:23:57 <a href="mailto:megatux@gmail.com" target="_blank">megatux@gmail.com</a> wrote:<br>
> Sure thing. The same issue happens with 2.6.0 and 2.5.1 installations. The<br>
> latest output on that file is:<br>
> <br>
> <br>
> ----------<br>
> configuring Ruby module ...<br>
> ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]<br>
> ----------------------------------------<br>
> checking for Ruby library<br>
> /usr/bin/ld: cannot find -lruby<br>
> collect2: error: ld returned 1 exit status<br>
> ----------<br>
> <br>
>         #include <ruby.h><br>
> <br>
>         int main() {<br>
>             ruby_init();<br>
>             return ruby_cleanup(0);<br>
>         }<br>
> ----------<br>
> cc -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra<br>
> -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g<br>
> -I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux<br>
> -I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0 -o<br>
> build/autotest build/autotest.c -lruby -lpthread -ldl -lcrypt -lm<br>
> ----------<br>
> <br>
> <br>
> ----------------------------------------<br>
> checking for Ruby library in /home/megatux/.asdf/installs/ruby/2.5.1/lib<br>
> /usr/bin/ld: cannot find -lruby<br>
> collect2: error: ld returned 1 exit status<br>
> ----------<br>
> <br>
>             #include <ruby.h><br>
> <br>
>             int main() {<br>
>                 ruby_init();<br>
>                 return ruby_cleanup(0);<br>
>             }<br>
> ----------<br>
> cc -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra<br>
> -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g<br>
> -I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux<br>
> -I/home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0 -o<br>
> build/autotest build/autotest.c<br>
> -L/home/megatux/.asdf/installs/ruby/2.5.1/lib<br>
> -Wl,-rpath,/home/megatux/.asdf/installs/ruby/2.5.1/lib -lruby -lpthread<br>
> -ldl -lcrypt -lm<br>
> ----------<br>
> <br>
> <br>
> <br>
> -----------EOF-------------------<br>
> Also, checking in the  auto/modules/ruby  file   I see  ruby calls to<br>
> "rbconfig".  This is the output I see:<br>
> <br>
> ~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["libdir"])'<br>
> /home/megatux/.asdf/installs/ruby/2.5.1/lib<br>
> <br>
> ~ $ ruby -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyhdrdir"])'<br>
> /home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0<br>
> <br>
> ~ $ ruby  -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyarchhdrdir"])'<br>
> /home/megatux/.asdf/installs/ruby/2.5.1/include/ruby-2.5.0/x86_64-linux<br>
> <br>
> ~ $ ruby  -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_SO_NAME"])'<br>
> ruby<br>
> <br>
> ~ $ ruby  -r rbconfig -e 'printf("%s",RbConfig::CONFIG["LIBS"])'<br>
> -lpthread -ldl -lcrypt -lm<br>
> <br>
> <br>
> Thanks a lot<br>
> <br>
> <br>
> <br>
> El mié., 30 de ene. de 2019 a la(s) 08:54, Valentin V. Bartenev (<br>
> <a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>) escribió:<br>
> <br>
> > On Tuesday 29 January 2019 17:37:25 <a href="mailto:megatux@gmail.com" target="_blank">megatux@gmail.com</a> wrote:<br>
> > > Ah, cool. That makes total sense.<br>
> > ><br>
> > > Now I'm having issues trying to configure the ruby module with using my<br>
> > > Ruby installation inside my local directory (using the "asdf" ruby<br>
> > plugin),<br>
> > > but I will create a GitHub issue for this. (autoconf's ruby rbconfig<br>
> > looks<br>
> > > ok to me) :<br>
> > ><br>
> > > $ ./configure ruby --module=ruby-2.6.0<br>
> > > --ruby=/home/megatux/.asdf/installs/ruby/2.6.0/bin/ruby<br>
> > > configuring Ruby module<br>
> > > checking for Ruby library ... not found<br>
> > > checking for Ruby library in /home/megatux/.asdf/installs/ruby/2.6.0/lib<br>
> > > ... not found<br>
> > ><br>
> > > ./configure: error: no Ruby found.<br>
> > ><br>
> ><br>
> > Could you provide "build/autoconf.err" with configure test results?<br>
> ><br>
> >   wbr, Valentin V. Bartenev<br>
> ><br>
> > _______________________________________________<br>
> > unit mailing list<br>
> > <a href="mailto:unit@nginx.org" target="_blank">unit@nginx.org</a><br>
> > <a href="https://mailman.nginx.org/mailman/listinfo/unit" rel="noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/unit</a><br>
> ><br>
> <br>
> <br>
> <br>
<br>
_______________________________________________<br>
unit mailing list<br>
<a href="mailto:unit@nginx.org" target="_blank">unit@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/unit" rel="noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/unit</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>-----------------------------------------------------<br>   .^. In an open world, who needs windows or gates?<br>   /V\   <a href="http://www.megatux.me/" target="_blank">Cristian Molina</a><br>  //  \\   GNU/Linux User #73047, Ubuntu User # 14733<br> /( _ )\       Merlo, San Luis - Argentina   <br>  ^^ ^^ ---------------------------------------------</div></div></div></div></div>