aperezdc / ngx-fancyindex

Fancy indexes module for the Nginx web server
Other
857 stars 127 forks source link

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

Open DailytheNoob opened 6 years ago

DailytheNoob commented 6 years ago

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 commented 5 years ago

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

DailytheNoob commented 5 years ago

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

SubrataM3 commented 5 years ago

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.