ubuntu安装yaml-cpp0.6.0
时间: 2023-08-29 20:10:14 浏览: 161
要在Ubuntu上安装yaml-cpp0.6.0,你可以按照以下步骤进行操作:
1. 首先,你可以通过以下命令克隆yaml-cpp的源码库:
```
git clone https://github.com/jbeder/yaml-cpp.git
```
2. 进入源码目录并创建一个build目录:
```
cd yaml-cpp && mkdir build && cd build
```
3. 运行cmake命令来生成构建文件:
```
cmake -DYAML_BUILD_SHARED_LIBS=on ..
```
4. 运行make命令来编译源码:
```
make
```
5. 使用sudo权限运行make install命令来安装yaml-cpp:
```
sudo make install
```
6. 最后,使用sudo ldconfig命令来更新共享库:
```
sudo ldconfig
```
安装完成后,你可以在`/usr/local/include`目录下找到头文件,而库文件则位于`/usr/local/lib`目录下。这样,你就成功安装了yaml-cpp0.6.0版本。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *2* [Ubuntu下yaml-cpp的安装](https://blog.csdn.net/taolusi/article/details/81074103)[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]
- *3* [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 ]
阅读全文