Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2022 10:28:19 -0400
From:      Alberto Mijares <amijaresp@gmail.com>
To:        questions@freebsd.org
Subject:   Re: "Undefined symbol" running ruby script
Message-ID:  <CAGZBXN8H1vdWPXgW89S78WbmmD8ZQ-d%2BaE39rPWyZ08QJgT7ig@mail.gmail.com>
In-Reply-To: <CAGZBXN_qfNO0_XQ5kEiyiqR=zQ1RpDOv2K%2Bw0WRheGp64=WV%2BA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGZBXN8H1vdWPXgW89S78WbmmD8ZQ-d%2BaE39rPWyZ08QJgT7ig>