Ruby on rails 无法安装乘客信息

Ruby on rails 无法安装乘客信息,ruby-on-rails,ruby,passenger,Ruby On Rails,Ruby,Passenger,我正试图建立一个RubyonRails环境来运行一个网站应用程序(计时) 不幸的是,我是一个新手,很多东西都出了问题: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 supp

我正试图建立一个RubyonRails环境来运行一个网站应用程序(计时) 不幸的是,我是一个新手,很多东西都出了问题: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
好吧,我错过了rack,所以我这样做:

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...
一切看起来都很好,但我还是有同样的问题 乘客仍未找到行李架,我如何解决

还有一件事我不明白如何更新gem

# 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的软件包,你知道在此列表中我需要删除哪些软件包吗?这是我尝试安装ruby后得到的所有东西

>   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。我将介绍如何正确设置这一切。试一试,看看这是否有助于让乘客运行。

谢谢,我的所有问题似乎都来自apt……但我不知道该怎么做才能解决这个问题,我有能力删除rubygems,我计划从这里获取的源代码安装它:……这样可以解决问题吗?或者我也应该删除ruby?ruby-v->ruby 1.6.8…我需要RVM吗?