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

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

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.

Why does a vapor "hello" project crush right after start on Sierra?

I'm trying to run vapor hello project via terminal. Didn't touch any code.
Building is ok, but it doesn't run.
Already tried
clean and rebuild
force reinstall vapor
check that libsqlite3.dylib is loaded
Here's terminal output:
MacBook-Air-Dmitrij:Hello dev$ vapor run
Running Hello ...
[ INFO ] Migrating 'sqlite' database (/Users/dev/Hello/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift:69)
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_column_table_name
Referenced from: /Users/dev/Hello/.build/debug/Run
Expected in: /usr/lib/libsqlite3.dylib
dyld: Symbol not found: _sqlite3_column_table_name
Referenced from: /Users/dev/Hello/.build/debug/Run
Expected in: /usr/lib/libsqlite3.dylib
Do you have any idea, what's going on?
MacOS 10.12.6
Swift 4.1.3
Xcode 9.3
Vapor Toolbox: 3.1.10
Vapor Framework: 3.3.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

perlbrew _Perl_xs_apiversion_bootcheck error with perl 5.22.2

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.

'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.