找回密码
 立即注册
搜索
查看: 570|回复: 0

ubuntu22安装nlohmann-json

[复制链接]

19

主题

1

回帖

112

积分

管理员

积分
112
发表于 2023-6-12 18:17:59 | 显示全部楼层 |阅读模式
sudo apt-get update
sudo apt-get install nlohmann-json3-dev
sudo apt-get install nlohmann-json-dev
wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz
tar -xzvf v3.11.2.tar.gz

cd json-3.11.2/
sudo cp -r single_include/nlohmann/ /usr/local/include/

如果是ubuntu20.04lts直接运行下面命令即可:
sudo apt-get update sudo apt-get install nlohmann-json3-dev



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|宜中科技论坛 ( 苏ICP备2023016670号|32020602001419 )

GMT+8, 2024-9-20 00:15 , Processed in 0.027239 second(s), 18 queries .

Powered by Epden

© 2023 宜中科技

快速回复 返回顶部 返回列表