我正在使用 MSYS2,我希望能够安装 flickcurl。
我尝试如下安装,但似乎找不到该文件。
$ pacman -S mingw-w64-x86_64-flickcurl
error: target not found: mingw-w64-x86_64-flickcurl
我在这里错过了什么吗?
我正在使用 MSYS2,我希望能够安装 flickcurl。
我尝试如下安装,但似乎找不到该文件。
$ pacman -S mingw-w64-x86_64-flickcurl
error: target not found: mingw-w64-x86_64-flickcurl
我在这里错过了什么吗?
可能你的 MSYS2 已经过时了(把它想象成你在安装东西之前更新的 Linux 包管理器),你应该运行以下命令,如果你被要求关闭终端,请执行以下操作:
update-core
- 如果你的 MSYS2 不是很旧,这个会失败,这是一个好兆头pacman -Syu
- 你可能不得不重复它直到你看到there is nothing to do
; 它会更新您安装的软件包pacman -S mingw-w64-x86_64-flickcurl
这些包应该在这些步骤之后可用:
$ pacman -Ss flickcurl
mingw32/mingw-w64-i686-flickcurl 1.26-1
Flickcurl is a C library for the Flickr API (mingw-w64)
mingw64/mingw-w64-x86_64-flickcurl 1.26-1
Flickcurl is a C library for the Flickr API (mingw-w64)
update-core
- 过去用于升级核心包,现在被移除,因为pacman
它更好pacman -S <package_name>
- 检查本地数据库中的软件包并在找到时安装它(如果没有数据库或它已经过时,将失败)pacman -Su
- 将已安装的软件包与搜索更新的数据库进行比较(如果没有数据库或数据库已过时,也会失败)pacman -Sy
- 下载包含可用软件包的数据库pacman -Syu
- 下载数据库并搜索更新,推荐升级方式MSYS2不支持部分升级,原因与 Like Arch Linux相同。这意味着您应该pacman -Syu
在安装软件包之前运行。