Home > Applications & Tools > How to Work Around Nginx Install Issue on CentOS

How to Work Around Nginx Install Issue on CentOS

December 9th, 2015 Leave a comment Go to comments

Installing Niginx is very easy and straight forward with yum on CentOS. But I found it stopped to work last night. My installation script aborted with an error saying that it could not find libunwind package, which turns out no longer in the EPEL7 after a upgrade a couple of days ago.

If you are not in a rush, you can wait a couple of weeks for CentOS 7.2.1511, or buy RHEL 7.2 now. But if you still want Nginx on CentOS now, you can either find a RPM for the libunwind library elsewhere, or turn on the CR (Continuous Release) repository as suggested by this discussion.

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure

HTML5 App

Let’s see how to do that. According to this CentOS page, you can install the CR repository on CentOS 5 and 6:

# yum install centos-release-cr

On CentOS 7, the CR repository package should be included already, but you want to update your system:

# yum update

Once that is done, you can simple enable the CR repository by this command. On CentOS 7 Minimal which I used, I found it’s not working after yum update. The yum-config-manager command was simply not there. The yum-utils must be installed first. I haven’t checked the normal edition, it may or may not be there. If not, you can use yum to install it too.

# yum install yum-utils
# yum-config-manager --enable cr

After these steps, installing Nginx will work again.

# yum install nginx

In my script, I usually have -y option so that it won’t ask for confirmation.

# yum -y install nginx

Once you have Nginx installed, feel free to read a few more posts on Nginx configuration and usage in the following related links.

Categories: Applications & Tools Tags: ,
  1. February 15th, 2016 at 13:06 | #1

    Hey Steve good tutorial nginx is widely used for major sites to load balance and has been rock solid in my experience. I find EL7 breaks a lot of good setups.

  1. No trackbacks yet.