Windows下Clion里用vcpkg安装spdlog出错

问题描述

运行vcpkg.exe install spdlog时报错:

error: vcpkg's installation database corrupted. This is either a bug in vcpkg or something else has modified the contents of the 'installed' directory in an unexpected way. You may be able to fix this by deleting the 'installed' directory and reinstalling what you want to use. If this problem happens consistently, please file a bug at https://github.com/microsoft/vcpkg .
Package fmt:x64-windows is installed, but dependency vcpkg-cmake:x64-windows is not.

产生原因

一开始用clion(2024版本里面才会自带vcpkg,还特意下了个最新版)里面的vcpkg安装spdlog,但是进度太慢了,然后就在命令行里面用vcpkg.exe 去安装,两边同时操作把vcpkg搞崩了

解决办法

网上解决办法是删除vcpkg.exe的同级目录下里面的installed文件夹,但是我发现只要删除里面的我刚刚安装的spdlog库就行,其他库就不会影响,然后再次安装就可以了

vcpkg.exe install spdlog
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值