Skip to content
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

fatal error: 'mysql/mysql.h' file not found #include <mysql/mysql.h> #93

Open
daipeihust opened this issue Apr 21, 2023 · 1 comment
Open

Comments

@daipeihust
Copy link

> ./setup.py build
checking xmake ...
xmake v2.7.8+20230406, A cross-platform build utility based on Lua
Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io
                         _
    __  ___ __  __  __ _| | ______
    \ \/ / |  \/  |/ _  | |/ / __ \
     >  <  | \__/ | /_| |   <  ___/
    /_/\_\_|_|  |_|\__ \|_|\_\____|
                         by ruki, xmake.io

    👉  Manual: https://xmake.io/#/getting_started
    🙏  Donate: https://xmake.io/#/sponsor

current python version: 3.10
BOOST_ROOT: /Users/daipei/Code/boost
BOOST_LIB: /Users/daipei/Code/boost/libs
[ 48%]: cache compiling.release hikyuu_cpp/hikyuu/data_driver/kdata/hdf5/H5KDataDriver.cpp
[ 48%]: cache compiling.release hikyuu_cpp/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.cpp
error: hikyuu_cpp/hikyuu/data_driver/kdata/mysql/../../../utilities/db_connect/mysql/MySQLStatement.h:20:10: fatal error: 'mysql/mysql.h' file not found
#include <mysql/mysql.h>
         ^~~~~~~~~~~~~~~
1 error generated.
  > in hikyuu_cpp/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.cpp
[ 36%]: cache compiling.release hikyuu_cpp/hikyuu/data_driver/kdata/hdf5/H5KDataDriver.cpp
[ 36%]: cache compiling.release hikyuu_cpp/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.cpp
error: hikyuu_cpp/hikyuu/data_driver/kdata/mysql/../../../utilities/db_connect/mysql/MySQLStatement.h:20:10: fatal error: 'mysql/mysql.h' file not found
#include <mysql/mysql.h>
         ^~~~~~~~~~~~~~~
1 error generated.
  > in hikyuu_cpp/hikyuu/data_driver/kdata/mysql/MySQLKDataDriver.cpp
@fasiondog
Copy link
Owner

brew 安装 mysqlclient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants