perlbrew _Perl_xs_apiversion_bootcheck error with perl 5.22.2 - perl

Using perlbrew to move from perl 5.16.0 to 5.22.2
Running on a MacBook Pro, OS X El Capitan
Install of new version of perl seemed to work just fine. However when I switch to 5.22.2 and attempt to run any of my scripts I see this error message.
dyld: lazy symbol binding failed: Symbol not found:
_Perl_xs_apiversion_bootcheck Referenced from: /Users/davidartus/perl5/lib/perl5/darwin-2level/auto/List/Util/Util.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _Perl_xs_apiversion_bootcheck Referenced
from:
/Users/davidartus/perl5/lib/perl5/darwin-2level/auto/List/Util/Util.bundle
Expected in: dynamic lookup
Trace/BPT trap: 5
I've seen that some folks have had similar errors when their paths have been incorrect. My path is set by perlbrew and looks plausible to me.
/Users/me/perl5/perlbrew/bin:/Users/me/perl5/perlbrew/perls/perl-5.22.2/bin:/Users/me/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Suggestions please.

Related

How to fix dyld: Library not loaded: #rpath/libtbb.dylib

i'm using HiC-Pro mapping program on macOS Catalina. When it's running the log says:
dyld: Library not loaded: #rpath/libtbb.dylib
Referenced from: /Applications/anaconda3/bin/bowtie2-align-s
Reason: image not found
(ERR): Description of arguments failed!
Exiting now ...
Does anyone know how to fix this library not loaded error message?
I just started getting this error, as well -- environments I had installed just a couple weeks ago that included Bowtie2 still work, but when I install a new environment with the same Conda yaml file today it is no longer working, with this same error.
Try installing tbb through
brew install tbb
This fixed the error for me for a different binary that threw the same error.

psql error dyld: lazy symbol binding failed: Symbol not found:

When I try to connect PostgreSQL locally by running as below,
$ /usr/local/pg10.11/bin/psql
Throghing below error,
dyld: lazy symbol binding failed: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/pg10.11/bin/psql
Expected in: /usr/lib/libpq.5.dylib
dyld: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/pg10.11/bin/psql
Expected in: /usr/lib/libpq.5.dylib
Abort trap: 6
This is started when I was upgraded PostgreSQL v10.11 to v11, before that it worked fine.
even I tried steps mentioned here but no luck.
Please help me here and appreciated the response.
Note: I didn't install PostgreSQL through brew, installed from source code.
Enviranment:
psql (PostgreSQL) 10.11
macOS Catalina version 10.15.1

mongodb dyld: Symbol not found: _fchmodat

I use OSX 10.9 and I've just installed Mongo DB in my /usr/local directory. Followed all the instructions, but when I type mongod in the command line I get this error:
dyld: Symbol not found: _fchmodat
Referenced from: /usr/local/mongodb/bin/mongod
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/mongodb/bin/mongod
Trace/BPT trap: 5
My ~/.bash_profile looks like this:
export MONGO_PATH=/usr/local/mongodb
export PATH=$PATH:$MONGO_PATH/bin
The item /usr/lib/libSystem.B.dylib does exist. I tried moving mongodb to my home directory and changed the path but still got the same error. What could be the problem?
Not really a solution but I downloaded an older version of Mongo DB and it works. Probably a bug that hasn't been fixed in 3.6.2

'Lazy symbol binding failed: Symbol not found: __OSSwapInt16' on jailbroken iPhone when using gem commands

I'm having issues with Ruby on iOS 5.1.1. Any gem command fails. If I try to gem update:
mobile$ gem update
Updating installed gems
dyld: lazy symbol binding failed: Symbol not found: __OSSwapInt16 Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
Expected in: flat namespace
dyld: Symbol not found: __OSSwapInt16
Referenced from: /usr/lib/ruby/1.9.1/arm-darwin9/socket.bundle
Expected in: flat namespace
Trace/BPT trap: 5
What's interesting is ruby -v shows 1.9.2:
mobile$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [arm-darwin9]
Any ideas on how to fix? I've tried removing Ruby package via Cydia and reinstalling but it's the same. I figured this might be relevant for people trying to use gems on their iOS device as I am.
I'm having the same issue. Removing (renaming) socket.bundle unsurprisingly yielded the following results:
ERROR: Loading command: update (LoadError)
no such file to load -- socket.so
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::UpdateCommand
Edit: I was able to get gem update to run successfully by downgrading from ruby 1.9.2-p0-10 to ruby 1.9.1-p429-6. When using 1.9.2, there were still references to 1.9.1 that seem to have been causing the error above.

PDFlib is broken on Mac OS X if Perl > 5.10

We've been using PDFlib to generate PDFs from text files. It has worked fine until we upgraded our Macs to Lion. PDFLib fails now generating this message:
Can't load '/[path to directory]/pdflib_pl.dylib' for module pdflib_pl:
dlopen(/[path to directory]/pdflib_pl.dylib, 1): no suitable image found. Did find:
/[path to directory]/pdflib_pl.dylib: mach-o, but wrong architecture
at /usr/local/ActivePerl-5.14/lib/DynaLoader.pm line 195.
at /[path to directory]/perl586/pdflib_pl.pm line 22
Compilation failed in require
at /[path to directory]/reportpdf.pl line 11.
BEGIN failed--compilation aborted at /[path to directory]/reportpdf.pl line 11
The dylib's architecture is i386 according to lipo:
$ lipo -info pdflib_pl.dylib
Non-fat file: pdflib_pl.dylib is architecture: i386
That dylib is from version 7 (or earlier?) of PDFlib. It was was installed by a previous developer, so I don't know exactly where it came from. The upgraded version of PDFLib, version 8, does not seem to have a dylib included for perl. Should I compile a new dylib? Source is available from PDFlib for their lite version at least, and I'm comfortable with compiling stuff, but I'm hoping there is simpler solution.
thanks!
Did you try?
>> perl -MCPAN -e 'install PDFLib'