ubuntu安装yaml-cpp0.6
时间: 2023-08-15 15:09:12 浏览: 297
yaml-cpp.tar.gz
要在Ubuntu上安装yaml-cpp 0.6版本,可以按照以下步骤进行操作:
1. 首先,从GitHub上下载源码包。可以使用以下命令克隆yaml-cpp的仓库:
```
git clone https://github.com/jbeder/yaml-cpp.git
```
2. 进入克隆的文件夹:
```
cd yaml-cpp
```
3. 创建一个build目录,并进入该目录:
```
mkdir build
cd build
```
4. 运行cmake命令来生成构建文件:
```
cmake -DYAML_BUILD_SHARED_LIBS=ON ..
```
5. 运行make命令进行编译:
```
make
```
6. 最后,使用sudo make install命令将库文件安装到系统中:
```
sudo make install
```
这样,yaml-cpp 0.6版本就会被成功安装在你的Ubuntu系统上了。头文件将位于/usr/local/include,库文件将位于/usr/local/lib。请确保在安装完成后运行sudo ldconfig命令来更新共享库。
#### 引用[.reference_title]
- *1* *3* [ubuntu16.04下yaml-cpp的安装和使用](https://blog.csdn.net/a6513806/article/details/86630363)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ubuntu下yaml-cpp安装与使用](https://blog.csdn.net/qq_43278899/article/details/128474075)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文