由于软件包损坏,Debian 6.0.5 amd64 上的 Phusion Passenger Nginx 模块安装程序 v3.0.17 问题

人气:464 发布:2022-10-16 标签: nginx linux debian passenger

问题描述

我尝试了默认的Passenger Nginx安装步骤,但没有成功,我是linux和ruby on rails的新手,所以如果我做错了或有什么问题,请大家帮助我,据我所知,有些包坏了在 debian 6.0.5 或乘客 nginx 模块中.

I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie to linux and ruby on rails , so guys please help me if i am doing wrong or something is wrong, upto my knowledge some package is broken in debian 6.0.5 or passenger nginx module.

我正在使用 REE

ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02

来自 http://rubyenterpriseedition.googlecode.com/文件/ruby-enterprise_1.8.7-2012.02_amd64_debian6.0.deb

root@debian:~#passenger-install-nginx-module

Welcome to the Phusion Passenger Nginx module installer, v3.0.17.

This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.

Here's what you can expect from the installation process:

 1. This installer will compile and install Nginx with Passenger support.
 2. You'll learn how to configure Passenger in Nginx.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.


Press Enter to continue, or Ctrl-C to abort.


--------------------------------------------

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * The 'make' tool... found at /usr/bin/make
 * A download tool like 'wget' or 'curl'... found at /usr/bin/wget
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /usr/local/bin/rake
 * rack... found
 * Curl development headers with SSL support... not found
 * OpenSSL development headers... not found
 * Zlib development headers... found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Press Enter to continue, or Ctrl-C to abort.


Installation instructions for required software

 * To install Curl development headers with SSL support:
   Please run apt-get install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer.

 * To install OpenSSL development headers:
   Please run apt-get install libssl-dev as root.

If the aforementioned instructions didn't solve your problem, then please take
a look at the Users Guide:

  /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.17/doc/Users guide Nginx.html

root@debian:~# apt-get install libcurl4-openssl-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcurl4-openssl-dev : Depends: libssl-dev but it is not going to be installed
                        Depends: libkrb5-dev but it is not going to be installed or
                                 hurd but it is not installable
E: Broken packages

root@debian:~# apt-get install libssl-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl0.9.8 (= 0.9.8o-4squeeze12) but 0.9.8o-4squeeze13 is to be installed
E: Broken packages

注意:

我尝试安装乘客安装步骤建议的所有可能的库(libcurl4-gnutls-dev、libkrb5-dev..),一切都说是损坏的包.

I tried installing all possible libraries (libcurl4-gnutls-dev,libkrb5-dev..) suggested by passenger installation steps, everything says broken package.

更新:

我正在使用 REE

ruby 1.8.7(2012-02-08 MBARI 8/0x6770 补丁级别 358)[x86_64-linux],MBARI 0x6770,Ruby Enterprise Edition 2012.02

ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02

推荐答案

我遇到了与 libcurl4-openssl-dev 相同的问题.尝试 sudo apt-get install libcurl4-gnutls-dev 应该可以正常工作.

I had the same issue with libcurl4-openssl-dev. Try sudo apt-get install libcurl4-gnutls-dev which should work just fine.

试一试,如果不起作用,请告诉我,我会向您展示安装 libcurl4-openssl-dev 的解决方法.

Give it a try, and if it doesn't work please let me know and I'll show you a work around to have libcurl4-openssl-dev installed.

694