首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RVM安装出现postgres错误(rails)

RVM安装出现postgres错误(rails)
EN

Stack Overflow用户
提问于 2013-11-02 20:53:32
回答 2查看 226关注 0票数 1

由于一些奇怪的原因,当我试图安装rvm时,我得到了一个postgres错误。

代码语言:javascript
复制
$ sudo apt-get install ruby-rvm

错误:

代码语言:javascript
复制
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)
EN

回答 2

Stack Overflow用户

发布于 2013-11-03 00:16:49

ruby-rvm不再是维护包,您不应该使用它,有关更多详细信息,请查看https://stackoverflow.com/a/9056395/497756

票数 1
EN

Stack Overflow用户

发布于 2013-11-02 22:36:01

您可能需要安装这些软件包,然后重试

代码语言:javascript
复制
sudo apt-get install postgresql-9.1 libpq-dev

编辑:

我总是这样安装rvm

依赖关系:

代码语言:javascript
复制
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

和rails:

代码语言:javascript
复制
\curl -L https://get.rvm.io | bash -s stable --rails
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19742102

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档