다음 명령을 사용하여 승객 모듈을 설치하려고 합니다.
sudo 승객 설치 apache2 모듈
다음과 같은 결과가 나타납니다.
* 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... found
* Apache 2... found at /usr/sbin/apache2
* Apache 2 development headers... not found
* Apache Portable Runtime (APR) development headers... not found
* Apache Portable Runtime Utility (APU) development headers... not found
그런 다음 설치를 요청했습니다.
* To install Apache 2 development headers:
Please run apt-get install apache2-prefork-dev as root.
* To install Apache Portable Runtime (APR) development headers:
Please run apt-get install libapr1-dev as root.
* To install Apache Portable Runtime Utility (APU) development headers:
Please run apt-get install libaprutil1-dev as root.
하지만 내가 실행할 때 :
sudo apt-get install apache2-prefork-dev libapr1-dev libaprutil1-dev
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:
apache2-prefork-dev: Depends: apache2.2-common (= 2.2.14-5ubuntu8.10) but 2.2.20-1ubuntu1 is to be installed
libapr1-dev: Depends: libapr1 (= 1.3.8-1ubuntu0.3) but 1.4.5-1 is to be installed
libaprutil1-dev: Depends: libpcre3-dev but it is not going to be installed
E: Broken packages
ruby1.8.7, rubygem1.8.24, Rails3.2.9를 설치했습니다.
정력 /etc/apt/sources.list
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
###### Ubuntu Update Repos
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
정력 /etc/apt/sources.list.d
" ============================================================================
" Netrw Directory Listing (netrw v136)
" /etc/apt/sources.list.d
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
" ============================================================================
../
mercurial-ppa-releases-lucid.list
mercurial-ppa-releases-lucid.list.save
.mercurial-ppa-releases-lucid.list.swp
답변1
aptitude
대신 apt-get을 사용해 보셨나요 ?
소스 코드를 컴파일하는 데 필요한 "build-essential" 패키지도 설치해야 한다고 생각합니다.
답변2
승객 설치 apache2 모듈수동 다운로드 및 설치용. Passenger-install-apache2-module을 사용하여 설치하는 데 특별한 이유나 요구 사항이 있습니까?
"우분투" 방식(글쎄, 배포판을 사용하는 이유 :D)은 다음을 사용하는 것입니다
sudo apt-get install libapache2-mod-passenger
이렇게 하면 모든 종속성과 대부분의 사전 컴파일된 패키지가 가져와집니다.
아파치의 승객 모드도 활성화합니다.
ls -l /etc/apache2/mods-enabled
lrwxrwxrwx 1 root root 32 Dec 12 09:50 passenger.conf -> ../mods-available/passenger.conf
lrwxrwxrwx 1 root root 32 Dec 12 09:50 passenger.load -> ../mods-available/passenger.load
자세한 내용은 우분투를 처음 사용하는 경우 Apache 관련 패키지의 경우 일반적으로 다음으로 끝납니다.libapache2-, 그렇다면 그렇게 한다면apt-get libapache 설치 (Tab 키 누르기), 다음을 제공합니다
# apt-get install libapache
Display all 108 possibilities? (y or n)
libapache2-authcassimple-perl libapache2-mod-proxy-html
libapache2-authcookie-perl libapache2-mod-python
libapache2-authenntlm-perl libapache2-mod-python-doc
libapache2-mod-apparmor libapache2-mod-qos
libapache2-mod-apreq2 libapache2-mod-random
libapache2-mod-auth-cas libapache2-mod-removeip
libapache2-mod-auth-kerb libapache2-mod-rivet
libapache2-mod-auth-mysql libapache2-mod-rivet-doc
libapache2-mod-authn-sasl libapache2-mod-rpaf
libapache2-mod-auth-ntlm-winbind libapache2-mod-ruby
libapache2-mod-authn-webid libapache2-mod-ruwsgi
libapache2-mod-authn-yubikey libapache2-mod-ruwsgi-dbg
libapache2-mod-authnz-external libapache2-mod-scgi
libapache2-mod-auth-openid libapache2-modsecurity
libapache2-mod-auth-pam libapache2-mod-shib2
libapache2-mod-auth-pgsql libapache2-mod-spamhaus
libapache2-mod-auth-plain libapache2-mod-speedycgi
libapache2-mod-auth-radius libapache2-mod-suphp
libapache2-mod-auth-sys-group libapache2-mod-upload-progress
libapache2-mod-authz-unixgroup libapache2-mod-uwsgi
libapache2-mod-axis2c libapache2-mod-uwsgi-dbg
libapache2-mod-bw libapache2-mod-vhost-hash-alias
libapache2-mod-defensible libapache2-mod-vhost-ldap
libapache2-mod-dnssd libapache2-mod-wsgi
libapache2-mod-encoding libapache2-mod-wsgi-py3
libapache2-mod-evasive libapache2-mod-xsendfile
libapache2-mod-fastcgi libapache2-reload-perl
libapache2-mod-fcgid libapache2-request-perl
libapache2-mod-fcgid-dbg libapache2-svn
libapache2-mod-geoip libapache2-webauth
libapache2-mod-gnutls libapache2-webkdc
libapache2-mod-jk libapache-admin-config-perl
libapache2-mod-layout libapache-asp-perl
libapache2-mod-ldap-userdir libapache-authenhook-perl
libapache2-mod-ldap-userdir-dbg libapache-authznetldap-perl
libapache2-mod-lisp libapache-dbilogger-perl
libapache2-mod-log-sql libapache-dbi-perl
libapache2-mod-log-sql-dbi libapache-db-perl
libapache2-mod-log-sql-mysql libapache-gallery-perl
libapache2-mod-log-sql-ssl libapache-htgroup-perl
libapache2-mod-macro libapache-htpasswd-perl
libapache2-mod-mime-xattr libapache-mime4j-java
libapache2-mod-mono libapache-mime4j-java-doc
libapache2-mod-musicindex libapache-mod-auth-kerb
libapache2-mod-neko libapache-mod-jk-doc
libapache2-mod-nss libapache-mod-security
libapache2-mod-ocamlnet libapache-poi-java
libapache2-mod-parser3 libapache-poi-java-doc
libapache2-mod-passenger libapache-pom-java
libapache2-mod-perl2 libapache-ruby1.8
libapache2-mod-perl2-dev libapache-session-perl
libapache2-mod-perl2-doc libapache-session-wrapper-perl
libapache2-mod-php5 libapache-sessionx-perl
libapache2-mod-php5filter libapache-singleton-perl
답변3
먼저 를 실행하여 apt-get update
설치 가능한 패키지 버전 목록을 업데이트하세요. 이것이 유일한 문제는 아니지만 apt-get update
최근에 실행하지 않아서 이 오류가 발생할 수 있습니다.
백포트에서 일부 패키지를 설치했습니다. 이는 최신 버전의 패키지이며 요청 시에만 설치됩니다. Apache와 같은 다중 패키지 소프트웨어의 경우 일반적으로 동일한 소프트웨어(2.2.14 또는 2.2.20)에 속하는 모든 패키지를 일치시켜야 합니다. 백포트된 패키지는 명시적으로 요청된 경우에만 설치됩니다. apache2.2-common
즉, 일반 배포(2.2.14)에서 가져왔지만 시스템의 어떤 항목에는 백포트된(2.2.20)의 Apache 구성 요소가 필요합니다.
apt-get
이러한 오류는 무엇을 해야 할지 파악하는 데 충분한 정보를 제공 하지 않는다고 생각합니다 . 이 경우 aptitude
대화형으로 실행하고 충돌 해결 제안 중 하나를 따르거나 설치할 패키지 버전을 수동으로 선택하는 것이 좋습니다.