-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Macos uses db.mysql,C error found #21555
Comments
@JalonSolov |
Do |
I have executed |
1、
2、 3、
4、
instead of
5、
eg: the mysql 8.3 headers lack the mysql_refresh function and some others (they were deprecated) |
I'll fix the C driver issue for all 3 DBs today. The C driver will be included, and none of this will be needed. |
Has this been fixed? I didn't find a similar fix code commit |
No, it is not fixed.
It can be done cleanly only for This issue however is for mysql, and mysql's client side libraries, are not unfortunately as easy to compile and use, as SQLite ones are, that is why we try to use pkgconfig, so that we can link to the already compiled ones. Given this strategy, the issue happens, because our version of pkgconfig, on macos looks for |
A thing you could do already, is adding the different flags directly in you program. To give an example of the concept: // Intel, M1 brew, and MacPorts
#flag darwin -I/usr/local/opt/openblas/include -I/opt/homebrew/opt/openblas/include -I/opt/local/opt/openblas/include
#flag darwin -L/usr/local/opt/openblas/lib -L/opt/homebrew/opt/openblas/lib -L/opt/local/opt/openblas/lib
#flag darwin -L/usr/local/opt/lapack/lib -L/opt/homebrew/opt/lapack/lib -L/opt/local/opt/lapack/lib The above is taken from: https://github.com/vlang/vsl/blob/main/vlas/cflags_d_vsl_vlas_cblas.v: Also checking for the existence of a pkg-config is possible: $if $pkgconfig('mysqlclient') {
#pkgconfig mysqlclient
} $else $if $pkgconfig('mariadb') {
#pkgconfig mariadb
} |
V doctor:
What did you do?
v -run main.v
What did you expect to see?
What did you see instead?
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: