RPM을 통해 Scientific Linux 6.5에 Passenger 설치

RPM을 통해 Scientific Linux 6.5에 Passenger 설치

~에 따르면이 문서Passenger는 RHEL6 이후 기본 yum 패키지입니다.

Linux 버전 및 유형

[vagrant@localhost ~]$ cat /etc/*release
Scientific Linux release 6.5 (Carbon)
Scientific Linux release 6.5 (Carbon)

냠 승객 설치해

RPM을 설치하기 전에

[vagrant@localhost ~]$ sudo yum search passenger
Loaded plugins: security
sl                                                       | 3.6 kB     00:00
sl-security                                              | 3.0 kB     00:00
sl-security/primary_db                                   | 4.5 MB     00:17
sl6x                                                     | 3.6 kB     00:00
sl6x-security                                            | 3.0 kB     00:00
sl6x-security/primary_db                                 | 4.5 MB     00:19
Warning: No matches found for: passenger
No Matches found

RPM 설치 후

[vagrant@localhost ~]$ sudo yum install mod_passenger -y
Loaded plugins: security
sl                                                       | 3.6 kB     00:00
sl-security                                              | 3.0 kB     00:00
sl-security/primary_db                                   | 4.5 MB     00:19
sl6x                                                     | 3.6 kB     00:00
sl6x-security                                            | 3.0 kB     00:00
sl6x-security/primary_db                                 | 4.5 MB     00:17
Setting up Install Process
No package mod_passenger available.
Error: Nothing to do

승객은 yum 저장소에 포함되어 있지 않기 때문에 RPM을 사용하여 설치하려고 했지만 문서에 따르면 이는 RHEL 5의 경우에만 필요합니다.

빠른 설치

RPM이 설치되었습니다.

[vagrant@localhost ~]$ sudo rpm -Uvh http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm
Retrieving http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm
warning: /var/tmp/rpm-tmp.w5Z8Il: Header V4 DSA/SHA1 Signature, key ID 71e042e4: NOKEY
Preparing...                ########################################### [100%]
   1:passenger-release      ########################################### [100%]

RPM 설치 후 yum install 실행

[vagrant@localhost ~]$ sudo yum install mod_passenger -y                        Loaded plugins: security
http://passenger.stealthymonkeys.com/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://passenger.stealthymonkeys.com/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.hmdc.harvard.edu/mirrors/passenger/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: passenger. Please verify its path and try again

냠 검색

[vagrant@localhost ~]$ sudo yum search passenger
Loaded plugins: security
http://passenger.stealthymonkeys.com/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://passenger.stealthymonkeys.com/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.hmdc.harvard.edu/mirrors/passenger/rhel/6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: passenger. Please verify its path and try again

6.5 디렉토리를 사용할 수 없음

6.5 정도 되는 것 같습니다. 디렉토리가 존재하지 않습니다.

여기에 이미지 설명을 입력하세요.

질문

RPM을 통해 Scientific Linux 6.5에 Passenger를 설치하는 방법은 무엇입니까?

답변1

@terdon과 @slm의 제안 덕분에 다음 명령(yum search guest)을 실행하여 패키지를 찾을 수 있습니다.

sudo rpm --import http://passenger.stealthymonkeys.com/RPM-GPG-KEY-stealthymonkeys.asc && \
sudo yum -y install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm && \
sudo sed -i 's/\$releasever/6.3/g' /etc/yum.repos.d/passenger.repo

그러나 승객을 설치한 후 일부 종속성 문제가 발생했습니다.

Error: Package: 1:rubygem-passenger-native-3.0.19-1.el6.x86_64 (passenger)
           Requires: libev.so.4()(64bit)
Error: Package: 1:rubygem-passenger-native-3.0.19-1.el6.x86_64 (passenger)
           Requires: libev
Error: Package: 1:rubygem-passenger-3.0.19-1.el6.x86_64 (passenger)
           Requires: rubygem(fastthread) >= 1.0.1
Error: Package: 1:rubygem-passenger-3.0.19-1.el6.x86_64 (passenger)
           Requires: rubygem(rack)

이 문제는 다음 명령을 실행하여 해결할 수 있습니다.

sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/libev-4.03-3.el6.x86_64.rpm && \
sudo yum -y install rubygems && \
for p in rubygem-fastthread-1.0.7-2.el6.x86_64 rubygem-rack-1.1.0-2.el6.noarch; do sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/${p}.rpm; done && \
sudo yum -y install mod_passenger

관련 정보