自从最后一个柯南(1.23.0)起,我无法安装某些软件包,例如,我想安装 mysql-connectorc
mysql-connector-c/6.1.11@bincrafters/stable
但是我得到了这个错误:
ERROR: Failed requirement 'OpenSSL/1.0.2s@conan/stable' from 'mysql-connector-c/6.1.11@bincrafters/stable'
ERROR: Requested 'OpenSSL/1.0.2s@conan/stable' but found case incompatible 'openssl'
Case insensitive filesystem can't manage this
CMake Error at Build/conan.cmake:402 (message):
Conan install failed='1'
Call Stack (most recent call first):
Build/conan.cmake:492 (conan_cmake_install)
Alpaga/Alpaga.cmake:23 (conan_cmake_run)
CMakeLists.txt:6 (include)
Alpaga.cmake:
cmake_minimum_required(VERSION 3.0)
project(Alpaga)
#################
# USE C++17 #
#################
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED 17 ON)
#############
# CONAN #
#############
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
#####################
# CONAN PACKAGE #
#####################
conan_cmake_run(REQUIRES
mysql-connector-c/6.1.11@bincrafters/stable
# boost/1.71.0@conan/stable
BASIC_SETUP
BUILD missing
)
我不知道如何修补此新错误。
答案 0 :(得分:3)
在安装已经安装但使用其他情况的软件包时,将导致错误:
错误:请求了'OpenSSL/1.0.2s@conan/stable',但发现大小写不兼容的'openssl'
不区分大小写的文件系统无法对此进行管理。软件包openssl
已安装。要解决此问题,必须删除具有相同名称的其他程序包:
$ conan remove "openssl/*"
无论如何,mysql-connector-c/6.1.11@bincrafters/stable已被完全弃用,您必须改为使用mysql-connector-c/6.1.11@:
$ conan install mysql-connector-c/6.1.11@ -r conan-center
当然,您也需要在cmake文件中更新需求参考。