The module to run "ruby" is not found among the available application modules
Max Romanov
max.romanov at nginx.com
Mon Apr 2 16:30:17 UTC 2018
> On 2 Apr 2018, at 19:03 , Yury Kotlyarov <yury.kotlyarov at gmail.com> wrote:
>
> Hey,
>
> compiled and installed without any errors.
Nice to hear this!
> I see the module:
>
> ls -l /usr/lib/unit/modules/
> total 140
> -rwxr-xr-x 1 root root 139296 Apr 2 17:51 ruby.unit.so <http://ruby.unit.so/>
>
> But when I try to:
>
> curl -X PUT -d @config/nginx-unit.json --unix-socket /run/control.unit.sock http://localhost <http://localhost/>
>
> log:
>
> Apr 2 18:01:54 Ubuntu-1710-artful-64-minimal unit: discovery: [alert] 3243#3243 dlopen("/usr/lib/unit/modules/ruby.unit.so <http://ruby.unit.so/>"), failed: "libruby.so.2.5: cannot open shared object file: No such file or directory”
From previous https://pastebin.com/8e1LcB2D <https://pastebin.com/8e1LcB2D> output I can see Ruby library used from '/root/.rbenv/versions/2.5.0’. However, discover process and applications started as non-root and unable to access to libraries. Consider to install Ruby 2.5.0 into /usr/local or any other shared location.
If this does not help, please share:
1. the configure command line parameters and output;
2. the make command line parameters and output;
3. the output of 'ldd /usr/lib/unit/modules/ruby.unit.so'
Best regards,
Max Romanov
>
> _______________________________________________
> unit mailing list
> unit at nginx.org
> https://mailman.nginx.org/mailman/listinfo/unit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20180402/674d3f4d/attachment.html>
More information about the unit
mailing list