drogon_ctl create model models(mysql) segmentation fault
drogon_ctl create model models
Create model
mysql
Connect to server...
Source files in the models folder will be overwritten, continue(y/n)?
zsh: segmentation fault drogon_ctl create model models
you can see it , it ask me yes or no , but i don`t to choose it . in mac(m1)
我看到社区有人用中文提问,所以我也用中文补充一点,我在使用它连我的mysql创建model的时候,询问我是否覆盖的时候,我根本没有机会选择,他直接报错!我看到其他地方用人用这个东西生成了mysql对应的实体类,所以应该是支持mysql的吧?
看一下drogon_ctl -v 的输出信息
請問是用M1 Mac嗎?是的話可能跟 #884 有關?
看一下drogon_ctl -v 的输出信息
A utility for drogon
Version: 1.7.1
Git commit: 0e7637daf62795c9a5861648c5a40f0dc80bf283
Compilation:
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Compiler ID: AppleClang
Compilation flags: -std=c++17 -I/opt/homebrew/include -I/usr/local/include
Libraries:
postgresql: no (batch mode: no)
mariadb: yes
sqlite3: yes
openssl: no
brotli: no
boost: no
hiredis: no
c-ares: no
chenjiale@192 ~ %
这是mac上的输出 我是mac m1 同时 刚刚我在我的docker里面部署了drogon 并且成功生成了数据库映射的实体类,我注意到需要我输入y来确认,而在mac上我没有办法做到, 所以我在这里确认下,我在ubuntu上生成的文件,应该是可以在mac上用的吧?如果我讲起拷贝过去的话
請問是用M1 Mac嗎?是的話可能跟 #884 有關?
是 mac m1,这个问题。我大致看过,但我这是无法回答yes or no 直接报了段错误
有可能是,因为在你回答yes or no之前,drogon_ctl已经在后台取连接mysql了,你可以试试这个补丁,如果是这个问题的话,你使用了现成的model文件也是没法工作的,因为你的应用也要去连接数据库的。
有可能是,因为在你回答yes or no之前,drogon_ctl已经在后台取连接mysql了,你可以试试这个补丁,如果是这个问题的话,你使用了现成的model文件也是没法工作的,因为你的应用也要去连接数据库的。
我不是很清楚补丁的使用,我将其理解为,我需要下载你给我的链接的Releases的最新版本,然后cmake make,不过,我在make这一步失败了。 大致明白问题出在mysql的引擎上,所以我将尝试使用你们默认的数据库进行尝试😭
这个补丁还没合并,你要找到PR作者的仓库和分支去编译安装 drogon倒是没有默认的数据库,如果你指的是postgreSQL的话,倒是可以一试,应该没有这个问题
这个补丁还没合并,你要找到PR作者的仓库和分支去编译安装 drogon倒是没有默认的数据库,如果你指的是postgreSQL的话,倒是可以一试,应该没有这个问题
在mac m1 上使用postgresql 的确没有问题,应该就是驱动的问题了 😭 谢谢
Is there any solution? mariadb: stable 10.7.3 (bottled) on mac m1
Create model
mysql
Connect to server...
Source files in the models folder will be overwritten, continue(y/n)?
zsh: segmentation fault sudo drogon_ctl create model models
drogon_ctl -v:
A utility for drogon
Version: 1.7.5
Git commit: e8b21502e2f1c2e71d4f80836c4103d7bf308b11
Compilation:
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Compiler ID: AppleClang
Compilation flags: -std=c++17 -I/opt/homebrew/include -I/usr/local/include
Libraries:
postgresql: no (batch mode: no)
mariadb: yes
sqlite3: yes
openssl: no
brotli: yes
boost: no
hiredis: yes
c-ares: no