sudo ./bootstrap --------------------------------------------- CMake 3.8.1, Copyright 2000-2017 Kitware, Inc. and Contributors Found GNU toolchain C compiler on this system is: gcc C++ compiler on this system is: g++ Makefile processor on this system is: make g++ is GNU compiler g++ has setenv g++ has unsetenv g++ does not have environ in stdlib.h g++ has stl wstring g++ has <ext/stdio_filebuf.h> --------------------------------------------- make: 'cmake' is up to date. CMake Error: The current CMakeCache.txt directory /home/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1/CMakeCache.txt is different than the directory /home/test/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake ---------------------------------------------
时间: 2023-08-15 19:12:59 浏览: 260
这个错误信息提示是在运行 CMake 过程中出现了问题,可能是由于 CMakeCache.txt 文件所在的目录不一致导致的。建议检查一下 CMakeCache.txt 文件所在的目录是否正确,并且尝试清空 CMake 缓存重新运行 bootstrap。你可以尝试以下命令:
```
rm -rf CMakeCache.txt
sudo ./bootstrap
```
如果还有问题,可以提供更多的错误信息,以便更好地帮助你解决问题。
相关问题
sudo python get-pip.py
### 如何使用 `sudo` 运行 `get-pip.py` 以安装或更新 pip
为了确保系统的稳定性和安全性,在执行任何更改之前建议备份重要数据。
对于 Python 2 和 Python 3 不同版本的 Pip 安装方式有所不同:
#### 对于 Python 2
获取适用于 Python 2 的特定版本 `get-pip.py` 文件并利用 `curl` 下载脚本到本地系统,之后通过指定解释器来调用此脚本来完成安装过程[^2]:
```bash
curl -o get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py
```
#### 对于 Python 3
通常情况下,可以采用默认链接下载最新版 `get-pip.py` 并借助 Python 3 解释器来进行安装操作。考虑到国内网络环境因素影响下载速度甚至失败的情况,推荐更换为更稳定的镜像源如豆瓣 PyPI 镜像[^4]:
```bash
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
```
以上命令会自动处理依赖关系,并按照所选配置正确设置新的 Pip 版本。
python get-pip.py -i
### 使用 `get-pip.py` 和自定义索引 URL (-i 选项) 安装或升级 pip
为了使用特定的索引 URL 来安装或升级 pip,可以在执行 `python get-pip.py` 命令时传递 `-i` 参数。这允许指定一个替代 PyPI 镜像源或其他包仓库作为索引。
具体操作如下:
#### 下载 `get-pip.py`
可以采用多种方式获取该脚本文件:
```bash
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
```
此命令会从官方位置下载最新的 `get-pip.py` 文件到当前目录[^1]。
#### 执行带有自定义索引 URL 的安装命令
假设要使用的私有镜像是 http://my.custom.index/simple,则完整的命令应为:
```bash
python get-pip.py -i http://my.custom.index/simple/
```
对于 Python 3 用户, 可能需要调用 `python3` 并加上管理员权限前缀 (`sudo`) :
```bash
sudo python3 get-pip.py -i http://my.custom.index/simple/
```
上述指令不仅适用于首次安装 pip,也适合用来更新已有的 pip 版本至与所选索引匹配的新版本[^4]。
阅读全文
相关推荐
















