如何临时安装MAKE 3.81

原文:

https://www.it566.top/index.php/wenzhang/linux/2021/06/13/276925/

我在 Xubuntu 16.04.1,make版本为 4.1。我对这个版本有一些怀疑,想暂时安装旧版本(3.81),它在另一台旧机器上与我的包一起工作正常。

最安全的方法是什么?我不想破坏任何东西,只想运行旧版本几次。

 





GNU 维护者通常很擅长这样的事情:如果你make-3.81从源代码构建和安装,它会/usr/local/默认进入(保留当前版本的makein /usr/bin),并且你应该能够通过sudo make uninstall从源目录运行之后完全删除它.

为了显示:

steeldriver@xenial-vm:~/src/make-3.81$ ./configure
steeldriver@xenial-vm:~/src/make-3.81$ make
steeldriver@xenial-vm:~/src/make-3.81$ sudo make install

然后检查版本:

steeldriver@xenial-vm:~/src/make-3.81$ hash -r make
steeldriver@xenial-vm:~/src/make-3.81$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-unknown-linux-gnu

现在卸载它并再次检查:

steeldriver@xenial-vm:~/src/make-3.81$ sudo make uninstall
steeldriver@xenial-vm:~/src/make-3.81$ hash -r make
steeldriver@xenial-vm:~/src/make-3.81$ make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
posted @ 2021-06-13 14:58  奈落99  阅读(479)  评论(0)    收藏  举报