openssh Makefile is older than Makefile.org, Configure or config.

问答中心分类: Nginxopenssh Makefile is older than Makefile.org, Configure or config.
KangST asked 6 年 ago
安装NGINX提示失败,本人环境Ubuntu16.04;
提示: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还是装不上。

5 Answers
KangST answered 6 年 ago
以下是执行结果:
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!
 

oneinstack answered 6 年 ago

D:\php\oneinstac windows vagrant ? 不支持!

KangST answered 6 年 ago
是的 Windows10 vagrant Ubuntu16.04box 在网上找解决办法,说同步时间,但是vagrant环境和Windows是一致的,就是卡在编译openssh; make error Makefile old Makefile.org。

oneinstack answered 6 年 ago
没测试过,应该不支持这玩意!

KangST answered 6 年 ago
好吧,vagrant 镜像安装也不是每次都安装失败,换不同的发行版本有的是可以安装的。
我换镜像再试试吧。