A
A
Andy Developer2017-07-07 04:48:06
Nginx
Andy Developer, 2017-07-07 04:48:06

Can't install nginx on centos 6.9?

I can't install nginx for the first time, centos version 6.9

Loading mirror speeds from cached hostfile
 * base: mirrors.neterra.net
 * epel: mirrors.uni-ruse.bg
 * extras: mirrors.neterra.net
 * updates: mirrors.neterra.net
 * webtatic: uk.repo.webtatic.com
Разрешение зависимостей
--> Проверка сценария
---> Package nginx.x86_64 1:1.12.0-1.el7.ngx will be для установки
--> Обработка зависимостей: systemd для пакета: 1:nginx-1.12.0-1.el7.ngx.x86_64
--> Обработка зависимостей: libc.so.6(GLIBC_2.14)(64bit) для пакета: 1:nginx-1.12.0-1.el7.ngx.x86_64
--> Обработка зависимостей: libpcre.so.1()(64bit) для пакета: 1:nginx-1.12.0-1.el7.ngx.x86_64
--> Проверка зависимостей окончена
Ошибка: Пакет: 1:nginx-1.12.0-1.el7.ngx.x86_64 (nginx)
            Необходимо: libpcre.so.1()(64bit)
Ошибка: Пакет: 1:nginx-1.12.0-1.el7.ngx.x86_64 (nginx)
            Необходимо: libc.so.6(GLIBC_2.14)(64bit)
Ошибка: Пакет: 1:nginx-1.12.0-1.el7.ngx.x86_64 (nginx)
            Необходимо: systemd
 Вы можете попробовать --skip-broken чтобы обойти проблему
 Вы можете попробовать запустить: rpm -Va --nofiles --nodigest

Пакет pcre-devel-7.8-7.el6.x86_64 уже установлен, и это последняя версия.

I'm at a loss, I understand that the problem is in the packages, Google did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2017-07-07
@UmbrellaCoders


Package nginx.x86_64 1:1.12.0-1.el7.ngx will be installed

You are trying to package for CentOS 7. The el7 suffix is ​​CentOS7, you need the package with the el6 suffix. It is clear that systemd is not in el6 and will not be :)
The file with the description of the turnip for nginx for EL6, save under the name nginx.repo in /etc/yum.repos.d
# nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/6/$basearch/
gpgcheck=0
enabled=1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question