Make sure the required command to extract the file is installed. Command "/usr/bin/unzip" could not handle archive. Command "/usr/bin/gtar" could not handle archive.报错是什么原因?
时间: 2024-04-15 20:30:14 浏览: 21
这个错误报告表明在解压缩文件时,系统中缺少必要的命令或工具。具体来说,报错指出 `/usr/bin/unzip` 和 `/usr/bin/gtar` 命令无法处理该归档文件。
可能的原因是缺少相应的解压工具。您可以通过安装 `unzip` 和 `tar` 软件包来解决这个问题。在大多数 Linux 发行版中,您可以使用以下命令安装:
对于 `unzip`:
```
sudo apt-get install unzip # Ubuntu/Debian
sudo yum install unzip # CentOS/RHEL
```
对于 `tar`:
```
sudo apt-get install tar # Ubuntu/Debian
sudo yum install tar # CentOS/RHEL
```
安装完成后,这些命令将可用于处理归档文件,并且您应该能够成功解压缩文件。
相关问题
make: /usr/local/bin/cmake: Command not found
The error message "make: /usr/local/bin/cmake: Command not found" indicates that the "cmake" command is not installed on your system or it is not included in your system's PATH environment variable.
To resolve this issue, you can try installing CMake using a package manager like apt-get or brew, depending on the operating system you are using. For example, on Ubuntu, you can run the following command to install CMake:
```
sudo apt-get install cmake
```
If CMake is already installed but not included in your PATH, you can add it by adding the following line to your .bashrc or .bash_profile file:
```
export PATH="/usr/local/bin:$PATH"
```
After adding this line, you will need to close and reopen your terminal for the changes to take effect.
/usr/bin/cmake: Command not found
The error message "/usr/bin/cmake: Command not found" indicates that the CMake command-line tool is not installed or not accessible in your system.
To resolve this issue, you can try the following steps:
1. Check if CMake is already installed by running the command "cmake --version" in your terminal. If it is installed, it should display the version number. If not, proceed to the next step.
2. Install CMake using a package manager appropriate for your operating system. For example, on Ubuntu or Debian-based systems, you can use the following command to install CMake:
```
sudo apt-get install cmake
```
On macOS with Homebrew, you can use:
```
brew install cmake
```
On Windows, you can download the CMake installer from the official CMake website and follow the installation instructions.
3. Once CMake is installed, verify that it is properly added to the system's PATH environment variable. You can do this by running the command "cmake --version" again in your terminal. If it still does not work, you may need to manually add the CMake executable path to your system's PATH variable.
If you encounter any issues during the installation or need further assistance, please provide more details about your operating system and setup.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)