2015-02-03 3 views
24
[email protected]:~/webapp/saturn$ heroku run rake db:migrate 
Running `rake db:migrate` attached to terminal... up, run.6194 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2- 0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2- 0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) 
Error: You must install at least one postgresql-client-<version> package. 
rake aborted! 
Error dumping database 
/app/vendor/bundle/ruby/1.9.1/gems/activerecord- 3.2.12/lib/active_record/railties/databases.rake:415:in `block (3 levels) in <top (required)>' 
/app/vendor/bundle/ruby/1.9.1/gems/activerecord- 3.2.12/lib/active_record/railties/databases.rake:188:in `block (2 levels) in <top (required)>' 
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:182:in `block (2 levels) in <top (required)>' 
Tasks: TOP => db:structure:dump 
(See full trace by running task with --trace) 

Heroku स्नातकोत्तर: psql ठीक काम करता है, लेकिन जब मैं रेक डाटाबेस की ओर पलायन करते हैं: विस्थापित यह त्रुटि स्नातकोत्तर ग्राहक स्थापित करने के लिए की जरूरत है कि मिल । मुझे पीजी क्लाइंट स्थापित करने की आवश्यकता है? कोई मददत्रुटि प्राप्त करें: आप कम से कम एक PostgreSQL-ग्राहक <version> पैकेज स्थापित करना होगा जब तैनाती Heroku को

+1

मैंने पाया [इस] [1] समाधान और ठीक त्रुटि पर निर्भर करता है [ 1]: http://stackoverflow.com/questions/17300341/migrate-not-working-on-heroku – dilshod

उत्तर

50

डेबियन आधारित सिस्टम पर पोस्टरएसक्यूएल क्लाइंट प्रोग्राम पोस्टग्रेस्क्ल-क्लाइंट-आम/usr/share/postgresql-common/pg_wrapper के प्रतीकात्मक लिंक के रूप में प्रदान किए जाते हैं।

आपको लगता है कि पैकेज स्थापित और psql, pg_dump, pg_dumpall, और pg_restore तरह PostgreSQL क्लाइंट प्रोग्राम के किसी भी उपयोग करने के लिए, pg_wrapper संस्करण विशिष्ट बाइनरी पैकेज स्थापित बिना प्रयास करते हैं,

You must install at least one postgresql-client-< version > package

इसे ठीक करने के लिए सबसे आसान तरीका में करने के लिए है: जैसे PostgreSQL-क्लाइंट 9.1 यह इस त्रुटि उत्सर्जित करेगा postgresql-client मेटापैक स्टाल करें। यह हमेशा डेबियन आधारित सिस्टम पर PostgreSQL के लिए वर्तमान में समर्थित डेटाबेस क्लाइंट पैकेज पर निर्भर करता है और यह PostgreSQL-ग्राहक-आम

sudo apt-get install postgresql-client 
+0

प्रतिक्रिया के लिए धन्यवाद, jla! ऐसा लगता है कि बग हेरोकू और मैंने पाया है http://stackoverflow.com/questions/17300341/migrate-not-working-on-heroku – dilshod

+0

हल करने के लिए आपका स्वागत है। कमांड लाइन पर psql का उपयोग करने और heroku का उपयोग न करने से "कम से कम एक" त्रुटि संदेश खोजने के दौरान मुझे यह मिला। मुझे जवाब मिलने के बाद मैं एक डेबियन विशिष्ट फिक्स छोड़ना चाहता था जो त्रुटि को अनदेखा करने के सुझाए गए हेरोकू फिक्स के वैकल्पिक के रूप में डेबियन विशिष्ट त्रुटि के लिए एक काम कर रहे pg_dump और psql देता है। – jla

+0

'हुडोक रन बैश' के माध्यम से 'sudo apt-get postgresql-client' स्थापित करना काम नहीं करता है? यह 'bash: sudo: आदेश नहीं मिला '। मुझे यहां क्या समझ नहीं आ रहा है? – s2t2

संबंधित मुद्दे