我尝试使用特定的 nginx 版本和模块构建自定义的 nginxhttps://github.com/anomalizer/ngx_aws_auth
我设置了 nginx 存储库
# nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
我确实在“中看到了 nginx-1.10.2-1.el7.ngx.src.rpmhttp://nginx.org/packages/centos/7/SRPMS/”并下载它
curl http://nginx.org/packages/centos/7/SRPMS/nginx-1.10.2-1.el7.ngx.src.rpm -o nginx-1.10.2-1.el7.ngx.src.rpm
然而,当我尝试运行 yum-buildep 来安装依赖项时,我不断收到以下错误“没有这样的包:nginx-1.10.2-1.el7.ngx.src.rpm”。任何想法?谢谢。
yum-builddep --enablerepo=nginx nginx-1.10.2-1.el7.ngx.src.rpm
输出详细信息
Loaded plugins: fastestmirror, priorities
Enabling base-source repository
Enabling epel-source repository
Enabling extras-source repository
Enabling updates-source repository
Loading mirror speeds from cached hostfile
* base: mirrors.cat.pdx.edu
* epel: mirrors.cat.pdx.edu
* epel-source: mirrors.cat.pdx.edu
* extras: mirrors.cat.pdx.edu
* updates: mirrors.cat.pdx.edu
Checking for new repos for mirrors
No such package(s): nginx-1.10.2-1.el7.ngx.src.rpm