Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install because nginx is not the exact version #103

Open
DailytheNoob opened this issue Nov 27, 2018 · 3 comments
Open

Unable to install because nginx is not the exact version #103

DailytheNoob opened this issue Nov 27, 2018 · 3 comments

Comments

@DailytheNoob
Copy link

DailytheNoob commented Nov 27, 2018

I get the following error when trying to install it on my CentOS 7 machine that has the nginx repository enabled:

Error: Package: 1:nginx-module-fancyindex-1.12.0.0.4.1-1.el7.gps.x86_64 (/nginx-module-fancyindex-1.12.0.0.4.1-1.el7.gps.x86_64)
           Requires: nginx = 1:1.12.0-1.el7.ngx
           Installed: 1:nginx-1.14.1-1.el7_4.ngx.x86_64 (@nginx)
               nginx = 1:1.14.1-1.el7_4.ngx
           Available: 1:nginx-1.8.0-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.8.0-1.el7.ngx
           Available: 1:nginx-1.8.1-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.8.1-1.el7.ngx
           Available: 1:nginx-1.10.0-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.10.0-1.el7.ngx
           Available: 1:nginx-1.10.1-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.10.1-1.el7.ngx
           Available: 1:nginx-1.10.2-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.10.2-1.el7.ngx
           Available: 1:nginx-1.10.3-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.10.3-1.el7.ngx
           Available: 1:nginx-1.12.0-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.12.0-1.el7.ngx
           Available: 1:nginx-1.12.1-1.el7.ngx.x86_64 (nginx)
               nginx = 1:1.12.1-1.el7.ngx
           Available: 1:nginx-1.12.2-1.el7_4.ngx.x86_64 (nginx)
               nginx = 1:1.12.2-1.el7_4.ngx
           Available: 1:nginx-1.12.2-2.el7.x86_64 (epel)
               nginx = 1:1.12.2-2.el7
           Available: 1:nginx-1.14.0-1.el7_4.ngx.x86_64 (nginx)
               nginx = 1:1.14.0-1.el7_4.ngx
           Available: nginx1w-1.12.1-1.w7.x86_64 (webtatic)
               nginx = 1.12.1-1.w7
 You could try using --skip-broken to work around the problem

am I just a dummy or am missing something easy? I have the exact same package installed that is 2 from the bottom (I think)

@ilovemysillybanana
Copy link

did you ever find a solution? I have this problem as well.

@DailytheNoob
Copy link
Author

I didn't find a solution. I ended up going with h5ai, a pretty great solution

@SubrataM3
Copy link

Hi,

You should try the following.

  1. First download source packages (This will most likely download sources of nginx with exactly same version you have installed)
    => yumdownloader --source nginx
    This will download source rpm package.
    => Install the downloaded rpm rpm -ivh nginx-*.src.rpm
    => cd $HOME/rpmbuild and untar the gz files.
  2. Change your directory to nginx sources folder and clone this repo.
  3. ./configure --with-compat --add-dynamic-module=./ngx-fancyindex
    You can build dynamic module using this and then just use load_module directive in your config to use it as a dynamic module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants