安装psql遇到的连接问题 Could not symlink include/ecpg_config.h
来源:互联网 发布:七爷交友平台知乎 编辑:程序博客网 时间:2024/06/05 04:11
1、brew install postgresql 之后有如下错误:
==> Pouring postgresql-9.6.3.yosemite.bottle.tar.gzError: The `brew link` step did not complete successfullyThe formula built, but is not symlinked into /usr/localCould not symlink include/ecpg_config.h/usr/local/include is not writable.You can try again using: brew link postgresql==> Using the sandbox==> /usr/local/Cellar/postgresql/9.6.3/bin/initdb /usr/local/var/postgresLast 15 lines from /Users/langxw/Library/Logs/Homebrew/postgresql/post_install.01.initdb:2017-07-24 07:51:52 +0800
2、根据提示执行brew link postgresql之后
brew link --overwrite postgresqlLinking /usr/local/Cellar/postgresql/9.6.3... Error: Could not symlink include/ecpg_config.h/usr/local/include is not writable.
提示信息:缺少symlink ecpg_config.h 和缺少写权限。
3、解决方法:
1)添加权限/usr/local是添加些权限
2)添加link
/usr/local$ ln -s /usr/local/Cellar/postgresql/9.6.3/include/ecpg_config.h ecpg_config.h
3)重新执行 brew link postgresql
阅读全文
0 0
- 安装psql遇到的连接问题 Could not symlink include/ecpg_config.h
- Error: Could not symlink include/libpng16/png.h 目录权限问题错误解决办法
- Could not symlink lib/pkgconfig/libpng.pc
- Brew error: Could not symlink 问题解决
- psql: FATAL: role “postgres” does not exist 解决方案 postgre 无法连接的问题
- Mac通过brew安装Nodejs错误:Could not symlink lib/dtrace/node.d
- 用PL/SQL连接oracle遇到的问题及解决方法:ORA-12154:TNS:could not resolve the connect identifier specified。。
- XCode里遇到 #include <XXX.h>file not found的解决方案
- XCode里遇到 #include <XXX.h>file not found的解决方案
- XCode里遇到 #include <XXX.h>file not found的解决方案
- Homebrew: Could not symlink, /usr/local/* is not writable
- Not Include "stdafx.h"
- Could not find SQL statement to include with refid :XXX这样的问题
- 解压uboot1.1.6时的错误tar: uboot1.1.6/include/asm: Cannot create symlink to `asm-arm': Operation not suppo
- Microsoft Visual C++ 6.0 (SP6) 中can not open include file "afxres.h"问题的解决方案
- Microsoft Visual C++ 6.0 (SP6)中 can not open include file "winresrc.h"问题的解决方案
- #import </usr/include/objc/objc-class.h> not such file or directory问题的解决方法
- #import </usr/include/objc/objc-class.h> not such file or directory问题的解决方法
- builder设计模式学习笔记
- ios 简单的本地json格式文件解析
- sqlserver表结构(含约束)复制存储过程
- 算法导论5.3-7集合的随机样本
- Dnf史诗装备的爆率的程序模拟
- 安装psql遇到的连接问题 Could not symlink include/ecpg_config.h
- 人工智能:正在崛起的全新生产要素
- OkHttp3.0的基本使用
- 媲美IDM下载器 FlareGet v4.5.102 特别版
- LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3
- Docker Swarm mode 微服务部署及调用
- 探究斐波那契数列的通项公式
- String类
- ubuntu16.04安装maven