ubuntu`env:'pg_dump':没有这样的文件或目录错误 [英] ubuntu `env: ‘pg_dump’: No such file or directory` error
问题描述
ubuntu 16.10中缺少pg_dump环境变量或文件。在运行并安装 sudo apt-get后,请安装postgresql-client
(请参见 pg_dump和pg_restore错误的含义),该错误仍然持续存在。我必须安装哪些环境变量或软件包才能解决此错误。
The pg_dump environment variable or the file is missing from ubuntu 16.10. After running and installing sudo apt-get install postgresql-client
(see what is the meaning of the pg_dump and pg_restore errors) the error still persists. What environment variable or packages do I have to install to resolve this error.
推荐答案
这是我解决此问题的方法。我检查了pg_dump pg_dump --version
的版本。如果未安装pg_dump,请使用
sudo apt-get install postgresql-client-common
This is how I resolved the issue. I checked for the version of pg_dump pg_dump --version
. If pg_dump isn't installed, install using
sudo apt-get install postgresql-client-common
这篇关于ubuntu`env:'pg_dump':没有这样的文件或目录错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!