我在 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
Run Code Online (Sandbox Code Playgroud)
然后检查版本:
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
Run Code Online (Sandbox Code Playgroud)
现在卸载它并再次检查:
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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6309 次 |
| 最近记录: |