2011-02-01 83 views
0

我試圖建立在軌道上的環境紅寶石運行一個網站的應用程序(時鐘吧) unfortunely因爲我是那種新手的東西很多的腳麻: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... 

e veryhting看起來不錯,但我仍然有同樣的問題 機架仍然沒有被乘客找到,我該如何解決?

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

# 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. 

任何幫助,歡迎!


我會跟隨你的操作方法,但首先我需要刪除與資質安裝的軟件包,你在這個名單我需要刪除哪些瞭解?這是所有的東西我apt-get的,因爲我嘗試安裝紅寶石......

> 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 

回答

2

你的第一個錯誤是從易於安裝的RubyGems。我介紹了在my Ubuntu, Ruby, RVM, Rails and You post中設置這一切的正確方法。給出一個去看看是否有助於讓乘客跑步。

+0

感謝,似乎我的所有問題都來自於...但我不知道該怎麼做才能解決這個問題,我使用aptitude刪除了rubygems,並且計劃從源代碼安裝它: http://rubyforge.org/frs/?group_id=126 ...會這樣做嗎?或者我應該刪除紅寶石? ruby -v - > ruby​​ 1.6.8 ...我需要RVM嗎? – krifur 2011-02-01 14:34:18