npm在macOS Sierra上安装odbc失败(版本10.12.6)

wztqucjr  于 2022-11-14  发布在  Mac
关注(0)|答案(2)|浏览(191)

我在macOS Sierra(版本10.12.6)上安装odbc软件包时遇到问题
我在macOS Sierra上安装了unixODBC(版本10.12.6)

以下是执行“npm install odbc”的输出

odbc@1.3.0安装程序/用户/cspc 106/文档/应用程序/node_modules/odbc节点-gyp配置构建

2017-12-20 19:11:51.288 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'watchos4.0' being superceded by SDK with 'watchos4.0'. 2017-12-20 19:11:51.289 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'iphonesimulator11.0' being superceded by SDK with 'iphonesimulator11.0'. 2017-12-20 19:11:51.290 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'macosx10.13' being superceded by SDK with 'macosx10.13'. 2017-12-20 19:11:51.291 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'appletvsimulator11.0' being superceded by SDK with 'appletvsimulator11.0'. 2017-12-20 19:11:51.292 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'watchsimulator4.0' being superceded by SDK with 'watchsimulator4.0'. 2017-12-20 19:11:51.293 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'appletvos11.0' being superceded by SDK with 'appletvos11.0'. 2017-12-20 19:11:51.293 xcodebuild[3376:23375] [MT] DVTSDK: Warning: SDK path collision for path '': SDK with name 'iphoneos11.0' being superceded by SDK with 'iphoneos11.0'. 2017-12-20 19:11:51.466 xcodebuild[3376:23375] [MT] DVTPlugInManager: Required plug-in compatibility UUID DF11C142-1584-4A99-87AC-1925D5F5652A for IDEDevkitRefactoring.ideplugin (com.apple.dt.IDE.IDEDevkitRefactoring) not present 2017-12-20 19:11:51.540 xcodebuild[3376:23375] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin, NSLocalizedDescription=The bundle “IDEiOSSupportCore” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 0): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator 2017-12-20 19:11:51.541 xcodebuild[3376:23375] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13247/IDEFoundation/Initialization/IDEInitialization.m:264 Details: Xcode failed its initial plug-in scan, error = Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEiOSSupportCore, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 0): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.IDEiOSSupportCore” at path “/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7ff0ce6900b0 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265): Symbol not found: OBJC_CLASS$_FXPCSessionManager Referenced from: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator (which was built for Mac OS X 10.12) Expected in: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin, NSLocalizedDescription=The bundle “IDEiOSSupportCore” couldn’t be loaded.}}} Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *) Thread: {number = 1, name = main} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. xcodebuild: error: Initialization failed. Reason: Loading a plug-in failed.

make: error: unable to find utility "make", not a developer tool or in PATH gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 72 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Darwin 16.7.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /Users/cspc106/Documents/app/node_modules/odbc gyp ERR! node -v v8.9.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/bufferutil): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 (node_modules/utf-8-validate): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! odbc@1.3.0 install: node-gyp configure build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the odbc@1.3.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/cspc106/.npm/_logs/2017-12-20T13_41_52_231Z-debug.log

e0bqpujr

e0bqpujr1#

该问题是由于系统中缺少make实用程序而导致的,如下所示:
制造商:错误:找不到实用程序“make”,它不是开发人员工具或在PATH中,gyp错误!生成错误gyp错误!堆栈错误:make失败,退出代码为:72 gyp ERR!
要在Mac上安装这个工具,你需要先安装XCode,然后你就可以毫无问题地安装了。
作为旁注;任何使用本地模块的NPM包都需要命令行工具(用C / C++编写,需要在安装中构建)。

cotxawn7

cotxawn72#

尝试打开Xcode,看看它是否会提示您任何内容。我安装了几次命令行工具,错误信息都没有变化。当我打开Xcode时,它会提示我安装某些组件,当安装完成时,命令完成。

相关问题