0

尝试在我的 Windows PC 上安装 IBM Developer Toolkit for API Connect。我收到以下错误。

LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libeay32.lib' [C:\Users\arindch.WIPRO\AppData\Roaming\npm\node_modules\apiconnect\n
ode_modules\ursa\build\ursaNative.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (E:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276: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.10586
gyp ERR! command "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\arindch.WIPRO\AppData\Roaming\npm\node_modules\apiconnect\node_modules\ursa
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
4

2 回答 2

1

确保在windows-build-tools安装之前已全局安装apic

如果您使用的是 Windows 7,请确保还安装了.NET Framework 4.5.1 。

于 2016-07-24T21:17:39.817 回答
1

APIC seems to be sentimental . :-) if you do not follow these steps for uninstalling and installing as mentioned below.

  1. Ensure you have the correct C++ libraries:If you try to install IBM APIC Developer toolkit without the relevant C++ libraries, you will get MSBUILD error for lack of VC++ Compiler. It also suggests you to 1) install the .NET Framework SDK & install Microsoft Visual Studio. I tried with different Visual Studio Community Edition versions including the latest (2015), but had to settle with VS Community edition 2013 with Update 4.

2.Uninstall previous APIC and clear cache by

npm rm apiconnect -g --cache-clear

This should clear the cache. But you might try it explicitly

npm cache clean

To ensure that the cache is clear, take a look in %APPDATA%\npm-cache, or if you’re using PowerShell, $env:APPDATA\npm-cache

  1. Reinstall: Run the cmd prompt as a Administrator and type the following commands

    apic stop --all

    Assuming you are not using trusted certificate, enter the following command

    npm config -g set strict-ssl false

Now run the installer

npm install -g apiconnect
  1. Verify the installation by typing apic -v
于 2016-07-24T20:23:23.390 回答