Instale o Passenger no Scientific Linux 6.5 via RPM

2

De acordo com esta documentação passageiro é um nativo pacote yum desde RHEL6.

Versão e tipo do Linux

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

Yum instala o Passenger

Antes de instalar o 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

Depois de instalar o 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

Como o passageiro não é incluído no repositório do yum, foi feita uma tentativa de instalá-lo usando o RPM, embora isso só deva ser exigido no caso do RHEL 5, de acordo com a documentação.

instalação do RPM

O RPM foi instalado.

[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%]

Yum instala depois de instalar o RPM

[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

Pesquisa da Yum

[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

diretório 6.5 indisponível

Parece que o 6.5. diretório não existe.

Pergunta

Como instalar o Passenger no Scientific Linux 6.5 via RPM?

    
por 030 13.09.2014 / 15:50

1 resposta

0

Graças aos conselhos de @terdon e @slm, o pacote pode ser encontrado (yum search passenger) executando os seguintes comandos:

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

No entanto, alguns problemas de dependência ocorreram após a instalação do passageiro:

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)

Isso pode ser resolvido com a execução dos seguintes comandos:

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
    
por 13.09.2014 / 23:51