Ruby app with non-system Ruby

megatux at gmail.com megatux at gmail.com
Wed Jan 30 22:38:51 UTC 2019


Worked with
  CONFIGURE_OPTS="--enable-shared" asdf install ruby 2.5.3
 It created the shared object library. Then I created the Unit module with
   ./configure ruby --module=ruby-2.5.3
--ruby=/home/megatux/.asdf/installs/ruby/2.5.3/bin/ruby
$ ls -l build/ruby-2.5.3.unit.so
-rwxr-xr-x 1 megatux megatux 271616 ene 30 19:12 build/ruby-2.5.3.unit.so*

I'll continue with my tests later.
Thanks a lot Valentin!

El mié., 30 de ene. de 2019 a la(s) 18:14, Valentin V. Bartenev (
vbart at nginx.com) escribió:

> On Wednesday, 30 January 2019 23:59:31 MSK Valentin V. Bartenev wrote:
> > On Wednesday, 30 January 2019 22:59:28 MSK megatux at gmail.com wrote:
> > > Pasted on this Gist:
> > > https://gist.github.com/megatux/b07eb0fe2820872e6b87c48a6df36a7d
> > >
> >
> > It seems there is no Ruby dynamic library (libruby.so), but only a
> > static one (libruby-static.a).
> >
> > Unit currently is unable to build Ruby modules with static libraries.
> > I'll consider it as a feature request.
> >
> > I suggest to look into "asdf" options (if any).  Probably it can
> > be configured to install dynamic Ruby library as well.
> >
>
> Ruby build should be configured with "--enable-shared" flag.
>
> Please try setting: CONFIGURE_OPTS="--enable-shared" environment variable
> before running "asdf install".
>
>   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/f6e06ea4/attachment.html>


More information about the unit mailing list