पर स्थापना postgresql 9.2
स्थापित करने के लिए मैं इस यूआरएल का पालन किया: http://www.ubuntugeek.com/how-to-install-postgresql-9-2-on-ubuntu-server-using-ppa.htmlPostgresql 9.2 Ubuntu 12.04
लेकिन स्थापना उत्पादन के अंत में की तरह है:
Setting up postgresql-common (140~precise) ...
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
* No PostgreSQL clusters exist; see "man pg_createcluster"
Setting up postgresql-9.2 (9.2.4-0ppa1~precise) ...
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with
pg_createcluster 9.2 main --start
or a similar command (see 'man pg_createcluster').
update-alternatives: using /usr/share/postgresql/9.2/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
* No PostgreSQL clusters exist; see "man pg_createcluster"
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
और जब मैं PostgreSQL शुरू करने की कोशिश है, यह निम्न देता है त्रुटि:
sudo /etc/init.d/postgresql start
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MESSAGES = "en_IN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
* No PostgreSQL clusters exist; see "man pg_createcluster"
मैं इस समस्या को कैसे ठीक कर सकता हूं?
रिबूट लेकिन यह किसी भी दे दी है नहीं था त्रुटि। फिर postgresql porblem क्यों दिया? –
@NareshJ "एसडीके 6" क्या है? क्या आप शायद "ओपनजेडीके 6 एसडीके" का मतलब है? जवाब यह है कि यदि आपके लोकेल कॉन्फ़िगरेशन पूरी तरह टूटा हुआ है तो कुछ प्रोग्राम इतना बुरा नहीं मानते हैं। PostgreSQL करता है। ** आपको अपने लोकल ** को पुन: उत्पन्न करने की आवश्यकता है ताकि 'en_US.UTF-8' और 'en_IN.UTF-8' के लिए लोकेल डेटा वास्तव में मौजूद हो। –
अरे धन्यवाद, मैंने पोस्टग्रेज़ को पूरी तरह से हटाकर समस्या का समाधान किया और फिर 'भाषा-पैक-एन-बेस' स्थापित किया और फिर पोस्टग्रेस्क्ल को फिर से स्थापित किया। इसने काम कर दिया। वास्तव में त्रुटि को इंगित करने के लिए धन्यवाद। :) –