drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.62k stars 1.12k forks source link

drogon_ctl installed incorrectly via vcpkg, can't create model #1584

Open Rinnekioku opened 1 year ago

Rinnekioku commented 1 year ago

Describe the bug Installing drogon via vcpkg results in unsupported databases usage, it does not matter if there are installed packages, built drogon from source and drogon_ctl create model working

To Reproduce Steps to reproduce the behavior:

  1. ./vcpkg install drogon[ctl]
  2. run drogon_ctl create model
  3. Observe that drogon_ctl can't create models because it thinks that there are no database dev libraries Repro code when

Expected behavior drogon_ctl runs craete model succesfully

Desktop (please complete the following information):

justend29 commented 1 year ago

@Rinnekioku I've been using drogon_ctl installed with vcpkg reliably for a while now. In classic mode, vcpkg installs drogon_ctl at the location ${VCPKG_ROOT}/installed/<triplet>/tools/drogon/drogon_ctl, which will not be in your PATH, by default. Could the instance of drogon_ctl which you are referring to in step 2 be a different one than was installed in step 1? What happens when you invoke drogon_ctl with an absolute path?