问题
While I trying to upload database to the heroku, I hav eget this errors env: pg_dump: no such file or directory and env: pg_restore no such file and directory. What is the meaning of the this errors ? How can I fix these errors to load database to the heroku ?
回答1:
Are you using the :sql dump_format instead of schema.rb?
If so, see your solution here: Error when doing rake db:migrate on Heroku
回答2:
I just encountered the same errors using pg_transfer. Turns out that the postgresql client tools weren't installed. You can install them with:
sudo apt-get install postgresql-client
来源:https://stackoverflow.com/questions/16760059/what-is-the-meaning-of-the-pg-dump-and-pg-restore-errors