在rails中找不到pg_dump [英] pg_dump not found in rails
本文介绍了在rails中找不到pg_dump的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装了postgres,但是当我尝试在rails项目中转储数据库模式(sql)时,我在控制台中始终收到此错误消息在rails中找不到pg_dump 。谁能帮助解决这个问题?
I installed postgres, however when I try dump my database schema (sql) in a rails project I keep getting this error message in the console pg_dump not found in rails. Can anyone help with how to resolve this issue?
推荐答案
您可以通过以下方式解决问题:
You can figure things out this way:
find / -name pg_dump
dirname ${OUTPUT_FROM_ABOVE_COMMAND}
PATH=${PATH}:/path/to/dir/from/above/dirname/call; export PATH
您应该很好。
这篇关于在rails中找不到pg_dump的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文