繁体   English   中英

无法安装乘客

[英]unable to install passenger

我正试图在rails环境中设置一个ruby来运行一个网站应用程序(计时)不幸,因为我是一个新手很多东西出错了:p

这是我运行/var/lib/gems/1.8/gems/passenger-3.0.2/bin# ./passenger-install-apache2-module时得到的

>  * GNU C++ compiler... found at
> /usr/bin/g++  * Curl development
> headers with SSL support... found  *
> OpenSSL development headers... found 
> * Zlib development headers... found  * Ruby development headers... found  *
> OpenSSL support for Ruby... found  *
> RubyGems... found  * Rake... found at
> /usr/bin/rake  * rack... not found  *
> Apache 2... found at /usr/sbin/apache2
> * Apache 2 development headers... found at /usr/bin/apxs2  * Apache
> Portable Runtime (APR) development
> headers... found at
> /usr/bin/apr-1-config  * Apache
> Portable Runtime Utility (APU)
> development headers... found at
> /usr/bin/apu-1-config

好吧,我只是想念机架,所以我这样做:

gem install rack --source http://chneukirchen.org/releases/gems/
Successfully installed rack-1.2.1
1 gem installed
Installing ri documentation for rack-1.2.1...
Installing RDoc documentation for rack-1.2.1...

everyhting看起来还不错,但我还是有同样的问题机架仍然没有被乘客找到,我该如何解决这个问题?

其他的事情我不明白如何更新宝石?

# gem update --system
ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

欢迎任何帮助!


我会按照你的操作方法,但首先我需要删除与aptitude一起安装的软件包,你知道在这个列表中我需要删除哪些软件包吗? 这是我尝试安装红宝石后所得到的所有东西......

>   aptitude install git-core
>     aptitude install libssl-dev zlib1g-dev build-essential
> mysql-server mysql-client
> libmysql-ruby libmysqlclient-dev
> imagemagick libmagick9-dev
> librmagick-ruby librmagick-ruby1.8
> libxslt1-dev
>     aptitude install rubygems
>     aptitude install ruby1.8-dev
>     aptitude install rubygems1.9
>     aptitude install rake
>     aptitude install rubygems
>     aptitude install ruby libzlib-ruby rdoc irb
>     aptitude install rubygems1.9
>     aptitude install libyaml-ruby
>     aptitude install libzlib-ruby 
>     aptitude install  libcurl4-openssl-dev
>     aptitude install libopenssl-ruby 
>     aptitude install apache2-prefork-dev
>     aptitude install libapr1-dev
>     aptitude install ibaprutil1-dev

你的第一个错误是从apt安装RubyGems。 我介绍了在我的Ubuntu,Ruby,RVM,Rails和你发布的内容中设置这一切的正确方法。 给它一个去看看是否有助于让乘客跑步。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM