[mu@vm-cnt8:~/code/miniob]$ sudo bash build.sh init
build.sh init
HEAD is now at 5df3037d Merge branch 'release-2.1.12-stable-pull' into patches-2.1
build.sh: line 83: cmake: command not found
build.sh: line 91: cmake: command not found
build.sh: line 99: cmake: command not found
build.sh: line 107: cmake: command not found
[mu@vm-cnt8:~/code/miniob]$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)
Copyright (C) 2018 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.
[mu@vm-cnt8:~/code/miniob]$ cmake --version
cmake version 3.27.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[mu@vm-cnt8:~/code/miniob]$ flex --version
flex 2.6.1
[mu@vm-cnt8:~/code/miniob]$ bison --version
bison (GNU Bison) 3.8
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2021 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.
[root@vm-cnt8:~]# cmake --version
cmake version 3.27.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@vm-cnt8:~]# flex --version
flex 2.6.1
[root@vm-cnt8:~]# bison --version
bison (GNU Bison) 3.8
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2021 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.
[root@vm-cnt8:~]# cd pkg
[root@vm-cnt8:~/pkg]# ll
total 56344
drwxr-xr-x. 14 505 games 4096 Sep 1 00:53 bison-3.8
drwxr-xr-x. 14 505 games 4096 Sep 1 00:01 bison-3.8.1
-rw-r--r--. 1 root root 5606280 Aug 31 23:46 bison-3.8.1.tar.gz
-rw-r--r--. 1 root root 5588772 Sep 7 2021 bison-3.8.tar.gz
drwxrwxr-x. 15 root root 4096 Sep 1 00:00 cmake-3.27.4
-rw-r--r--. 1 root root 10980052 Aug 31 23:46 cmake-3.27.4.tar.gz
drwxrwxr-x. 19 root root 4096 Aug 31 23:37 openssl-1.1.1q
-rw-r--r--. 1 root root 9864061 Oct 12 2022 openssl-1.1.1q.tar.gz
drwxr-xr-x. 17 mu mu 4096 Aug 31 23:39 Python-3.10.5
-rw-r--r--. 1 root root 25628472 Jun 6 2022 Python-3.10.5.tgz
感谢告知sudo的用法,但是依旧不行
[mu@vm-cnt8:~/code/miniob]$ sudo -E bash build.sh init
[sudo] password for mu:
build.sh init
HEAD is now at 5df3037d Merge branch 'release-2.1.12-stable-pull' into patches-2.1
build.sh: line 83: cmake: command not found
build.sh: line 91: cmake: command not found
build.sh: line 99: cmake: command not found
build.sh: line 107: cmake: command not found