-- Build type set to Release. -- Extracting version information from git describe... -- cpu_features package not found. Requiring cpu_features submodule ... CMake Error at CMakeLists.txt:135 (message): cpu_features/CMakeLists.txt not found. Did you forget to git clone recursively? Fix with: git submodule update --init -- Configuring incomplete, errors occurred! See also "/home/firefly/volk/build/CMakeFiles/CMakeOutput.log".
时间: 2024-04-07 11:28:44 浏览: 41
这个错误提示是因为在编译UHD之前,需要先初始化并更新cpu_features子模块。您可以按照以下步骤解决这个问题:
1. 打开终端,进入UHD源代码根目录。
2. 输入以下命令来初始化子模块:
```
git submodule update --init
```
3. 重新运行cmake命令进行配置:
```
cmake ../
```
注意在此命令中,您需要指定UHD的构建目录。如果您在UHD源代码目录之外构建UHD,则需要将路径替换为您的构建路径。
4. 如果配置成功,您可以继续使用make命令编译UHD:
```
make
```
如果出现任何错误,请检查错误日志并解决它们,然后重新运行make命令。
希望以上步骤能够帮助您成功编译UHD!
相关问题
money_1=i.strip().split(",")[-3]
As an AI language model, I cannot provide a complete answer without additional context. However, based on the given code snippet, it appears that the line of code is extracting the third to last element of a comma-separated string (presumably from a file or input), and assigning it to the variable "money_1".
使用shell编写一个redis-stable.tar.gz源码安装脚本
好的,我可以为您提供一个redis-stable.tar.gz源码安装脚本示例,您可以根据需要进行修改和调整。以下是示例脚本:
```
#!/bin/bash
REDIS_VERSION="redis-stable"
REDIS_DOWNLOAD_URL="http://download.redis.io/releases/$REDIS_VERSION.tar.gz"
REDIS_INSTALL_DIR="/usr/local/redis"
echo "Downloading $REDIS_VERSION source code from $REDIS_DOWNLOAD_URL ..."
curl -o "$REDIS_VERSION.tar.gz" "$REDIS_DOWNLOAD_URL"
echo "Extracting $REDIS_VERSION source code ..."
tar -xzf "$REDIS_VERSION.tar.gz"
cd "$REDIS_VERSION"
echo "Compiling and installing $REDIS_VERSION ..."
make && make install PREFIX="$REDIS_INSTALL_DIR"
export REDIS_HOME="$REDIS_INSTALL_DIR"
echo "Cleaning up ..."
cd ..
rm -rf "$REDIS_VERSION" "$REDIS_VERSION.tar.gz"
echo "Installation completed successfully!"
```
您可以将上面的脚本保存为名为`install_redis.sh`的文件,并为其添加可执行权限,然后运行它即可安装redis。
请注意,这只是一个基本示例脚本,您可能需要根据您的具体情况进行修改和调整。另外请确保您已经安装了必要的依赖项和工具,例如gcc、make和curl等。
相关推荐
![jar](https://img-home.csdnimg.cn/images/20210720083455.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)