提示:Makefile is older than Makefile.org, Configure or config.
网上有解决办法,说执行这个命令,
touch make*
chmod 777 config ./config make
发现没办法实现,因为每次安装NGINX都会重新解压openssh-xxx.gz,nginx-xxx.gz,文件,这就导致Makefile修改了会被替换,修改的代码就没了;
说明:
Makefile文件指,解压后nginx-xxx安装程序目录下的objs目录内的Makefile;
路径示例:D:\php\oneinstack\src\nginx-1.14.0\objs
以下是Makefile执行代码,大概在1350行处;
../openssl-1.0.2o/.openssl/include/openssl/ssl.h: objs/Makefile
cd ../openssl-1.0.2o \
&& if [ -f Makefile ]; then $(MAKE) clean; fi \
&& ./config --prefix=/vagrant/oneinstack/src/nginx-1.14.0/../openssl-1.0.2o/.openssl no-shared no-threads \
&& $(MAKE) \
&& $(MAKE) install_sw LIBDIR=lib
接着说,既然以上修改无效那就另辟蹊径,你会发现在nginx-xxx解压完的统计会有openssh安装程序的解压包,那就手动安装一下吧。
cd ./openssh-xxx
然后执行解决办法的代码指令运行试试,发现openssh是撞上了,但是NGINX还是装不上。
cd ../openssl-1.0.2o \
&& if [ -f Makefile ]; then make clean; fi \
&& ./config --prefix=/vagrant/oneinstack/src/nginx-1.14.0/../openssl-1.0.2o/.openssl no-shared no-threads \
&& make \
&& make install_sw LIBDIR=lib
make[2]: Entering directory '/vagrant/oneinstack/src/openssl-1.0.2o'
Makefile is older than Makefile.org, Configure or config.
Reconfigure the source tree (via './config' or 'perl Configure'), please.
Makefile:410: recipe for target 'Makefile' failed
make[2]: *** [Makefile] Error 1
make[2]: Leaving directory '/vagrant/oneinstack/src/openssl-1.0.2o'
objs/Makefile:1349: recipe for target '../openssl-1.0.2o/.openssl/include/openssl/ssl.h' failed
make[1]: *** [../openssl-1.0.2o/.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory '/vagrant/oneinstack/src/nginx-1.14.0'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
Nginx install failed, Please Contact the author!
Please login or Register to submit your answer