簡體   English   中英

RVM安裝產生postgres錯誤(導軌)

[英]RVM install giving postgres error (rails)

當我出於某種奇怪的原因試圖安裝rvm時,出現了postgres錯誤。

$ sudo apt-get install ruby-rvm

錯誤:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ruby-rvm is already the newest version.
The following packages were automatically installed and are no longer required:
  gir1.2-ubuntuoneui-3.0 libubuntuoneui-3.0-1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up postgresql-9.1 (9.1.10-0ubuntu12.04) ...
 * Starting PostgreSQL 9.1 database server
   The PostgreSQL server failed to start. Please check the log output:
FATAL:  syntax error in file "/etc/postgresql/9.1/main/postgresql.conf" line 59, near token ".1"
[fail]
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing postgresql-9.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
 Errors were encountered while processing:
 postgresql-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

ruby-rvm是維護包,您不應使用它,有關更多詳細信息,請檢查https://stackoverflow.com/a/9056395/497756

您可能需要安裝這些軟件包,然后重試

sudo apt-get install postgresql-9.1 libpq-dev

編輯:

我總是這樣安裝rvm

依賴關系:

sudo apt-get -y install gawk libgdbm-dev pkg-config libffi-dev build-essential openssl \
libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion python \
postgresql postgresql-contrib libpq-dev nodejs

和導軌:

\curl -L https://get.rvm.io | bash -s stable --rails

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM