Re: "Undefined symbol" running ruby script

From: Alberto Mijares <amijaresp_at_gmail.com>
Date: Thu, 14 Jul 2022 14:28:19 UTC
BTW, this is the script I want to run

https://raw.githubusercontent.com/redmine/redmine/3.4-stable/extra/mail_handler/rdm-mailhandler.rb

It must receive input from STDIN.

If I run it like this

$ ./rdm-mailhandler.rb --help

it works fine.


Regards



On Thu, Jul 14, 2022 at 10:03 AM Alberto Mijares <amijaresp@gmail.com> wrote:
>
> Hello everyone,
>
> I need to run a ruby script on a legacy host:
>
> % freebsd-version -ku
> 12.1-RELEASE-p1
> 12.1-RELEASE-p1
>
> % ruby -v
> ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [amd64-freebsd12]
>
> However, when I run the script, I get the following error:
>
> ld-elf.so.1: /usr/local/lib/libruby27.so.27: Undefined symbol
> "pthread_setname_np@FBSD_1.6"
>
> Is there a workaround that doesn't include getting ports collection
> and compiling ruby or upgrading the system?
>
> Thanks for your help.
>
>
> Alberto Mijares