我正在尝试在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...
每个人看起来都很好,但我仍然有同样的问题
乘客仍未找到机架,我该如何解决?
另外我不明白如何更新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的软件包,您知道在此列表中我需要删除哪些软件包吗?这是我尝试安装红宝石后所得到的所有东西...
> 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
答案 0 :(得分:2)
你的第一个错误是从apt安装RubyGems。我介绍了在my Ubuntu, Ruby, RVM, Rails and You post中设置这一切的正确方法。试一试,看看这是否有助于让乘客跑步。