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

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGZBXN_qfNO0_XQ5kEiyiqR=zQ1RpDOv2K%2Bw0WRheGp64=WV%2BA>