-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql not found when install by conan #2257
Comments
@an-tao please take a look , i am also facing the same issues. |
Sorry, I'm not very familiar with the Conan package manager. Let's ask the submitter of the Drogon package, @gav2xlin. Do you know how to solve this issue? |
I just updated the version, but I'm not a maintainer. That requirement is written here: https://github.com/conan-io/conan-center-index/blob/master/recipes/drogon/all/conanfile.py
https://conan.io/center/recipes/libmysqlclient?version=8.1.0
https://github.com/drogonframework/drogon/blob/master/CMakeLists.txt The Conan package manager is simple |
The vpckg package depends on libmariadb https://vcpkg.link/ports/drogon.json, but not Conan |
@gav2xlin Thanks for your quick reply. Drogon uses mariadb connector library for MySQL, should we change the dependency in conan? |
@an-tao yes we need to replace dependency from libmysqlclient to mariadb connector in conan. |
Would u like to make a PR to the conan center repo for this? I don’t have a conan development environment. |
It's not so difficult. I cloned the git repo to update the version https://github.com/conan-io/conan-center-index/tree/master https://docs.conan.io/2/tutorial/developing_packages/local_package_development_flow.html https://github.com/conan-io/conan-center-index/blob/master/recipes/drogon/config.yml is for versions. https://github.com/conan-io/conan-center-index/blob/master/recipes/drogon/all/conandata.yml is for sources
https://github.com/conan-io/conan-center-index/blob/master/recipes/drogon/all/conanfile.py is obviously the core script that configures CMake and etc. https://github.com/conan-io/conan-center-index/tree/master/recipes/drogon/all/patches are used in conandata.yml https://github.com/conan-io/conan-center-index/tree/master/recipes/drogon/all/test_package is for tests https://docs.conan.io/2/tutorial/versioning/versions.html is optional
|
When you install drogon with
with_mysql
it installslibmysqlclient/8.1.0
, but the package name islibmysqlclient
notMySQL
And if you try to install libmariadb manually, it installs with package name
mariadb-connector-c
notunofficial-libmariadb
drogon/CMakeLists.txt
Line 400 in e155df9
The text was updated successfully, but these errors were encountered: