gpt4 book ai didi

mysql - mariasql安装错误

转载 作者:行者123 更新时间:2023-11-29 18:27:28 25 4
gpt4 key购买 nike

当我尝试安装 mariasql 时出现此错误。

Node ver:4.1.1

npm ver: 2.14.4

gyp ver:3.0.3

C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(31): error C2373: '__pfnDliNot

ifyHook2': redefinition; different type modifiers [C:\Users\Миша\node_modules\mariasql\build\deps\libmariadbclient\zlib

\zlib.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134): note: see declaration of '__pfnDliNot ifyHook2'

gyp ERR! build error

gyp ERR! stack Error: C:\Program Files
(x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1

gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)

gyp ERR! stack at emitTwo (events.js:87:13)

gyp ERR! stack at ChildProcess.emit (events.js:172:7)

gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

gyp ERR! System Windows_NT 10.0.15063

gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"

gyp ERR! cwd C:\Users\Миша\node_modules\mariasql

gyp ERR! node -v v4.1.1

gyp ERR! node-gyp -v v3.0.3

gyp ERR! not ok

npm ERR! Windows_NT 10.0.15063

npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "mariasql"

npm ERR! node v4.1.1

npm ERR! npm v2.14.4

npm ERR! code ELIFECYCLE

npm ERR! mariasql@0.2.6 install: node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the mariasql@0.2.6 install script 'node-gyp rebuild'.

npm ERR! This is most likely a problem with the mariasql package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node-gyp rebuild

npm ERR! You can get their info via:

npm ERR! npm owner ls mariasql

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! C:\Users\Миша\npm-debug.log

这个错误的原因是什么?

最佳答案

即使距离您提出问题已有很长时间,我也会回复

我遇到了这个问题,我在网上看到它与python有关

在您的PATH环境中,检查您的版本,如果是Python 3.X,则将其设置为Python 2.7,问题将得到解决!

关于mysql - mariasql安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46043529/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com