macos – dyld:惰性符号绑定失败:未找到符号:_PQsetErrorContextVisibility

栏目: 数据库 · PostgreSQL · 发布时间: 7年前

内容简介:翻译自:https://stackoverflow.com/questions/44393800/dyld-lazy-symbol-binding-failed-symbol-not-found-pqseterrorcontextvisibility

在跑步

$psql

我收到这个错误

dyld: lazy symbol binding failed: Symbol not found: 
_PQsetErrorContextVisibility
Referenced from: /usr/local/bin/psql
Expected in: /usr/local/lib/libpq.5.dylib

dyld: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/bin/psql
Expected in: /usr/local/lib/libpq.5.dylib

Abort trap: 6

我尝试了一些事情:

>很少有帖子建议更新brew

>很少有人建议将/usr/local / bin / psql添加到〜/ .bash_profile并重新启动系统

>很少有人说这是XCode的问题,但是我没有安装XCode所以它对我来说无效.

但它都没有奏效.

我的bash_profile看起来像这样

PATH="/usr/local/bin/psql:/usr/local/sbin:/usr/local/bin:/sbin:/bin
:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin/geckodrive‌​r:$PATH"
export PATH

我在用:

> psql(PostgreSQL)9.6.2

> macOS Sierra版本10.12.3

我也在PostgreSQL 9.6.2上,

并遇到了同样的问题.

我使用brew升级到9.6.3:

rm '/usr/local/lib/libpq.5.dylib'
brew upgrade postgresql
brew link postgresql

它工作,现在我再次通过psql访问.

翻译自:https://stackoverflow.com/questions/44393800/dyld-lazy-symbol-binding-failed-symbol-not-found-pqseterrorcontextvisibility


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Reality Is Broken

Reality Is Broken

Jane McGonigal / Penguin Press HC, The / 2011-1-20 / USD 26.95

Visionary game designer Jane McGonigal reveals how we can harness the power of games to solve real-world problems and boost global happiness. More than 174 million Americans are gamers, and......一起来看看 《Reality Is Broken》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具