I am trying install netcdf4 over nodejs in windows10.
Gave the npm install netcdf4 and get the following errors. I am installing it as as an administrator and ncdump works from command line.
C:\Windows\node_modules\netcdf4>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Group.cpp
File.cpp
Variable.cpp
Dimension.cpp
c:\windows\node_modules\netcdf4\src\Variable.h(4): fatal error C1083: Cannot open include file: 'netcdf.h': No such fil
e or directory (compiling source file ..\src\Variable.cpp) [C:\Windows\node_modules\netcdf4\build\netcdf4.vcxproj]
Attribute.cpp
..\src\Dimension.cpp(2): fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory [C:\Windows
\node_modules\netcdf4\build\netcdf4.vcxproj]
netcdf4js.cpp
..\src\Group.cpp(2): fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory [C:\Windows\nod
e_modules\netcdf4\build\netcdf4.vcxproj]
win_delay_load_hook.cc
..\src\File.cpp(2): fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory [C:\Windows\node
_modules\netcdf4\build\netcdf4.vcxproj]
..\src\Attribute.cpp(3): fatal error C1083: Cannot open include file: 'netcdf.h': No such file or directory [C:\Windows
\node_modules\netcdf4\build\netcdf4.vcxproj]
Glan
Related
I have some makefile that is used to compile a program. During compilation I get an error:
In file included from kernel/driver.cc:20:
./kernel/yosys.h:81:12: fatal error: tcl.h: No such file or directory
81 | # include <tcl.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:696: kernel/driver.o] Error 1
Then I rerun Cygwin setup application and install new package tcl-devel. I restart the Cygwin terminal and try again. The same error pops up. I don't understand! Why aren't headers found?
My tcl and tcl-devel are both of version 8.6.11-1.
I got the following error during the compilation of a project although I've installed libkdecorations* :
fatal error: kdecoration.h: No such file or directory
Kubuntu : 18.04
KDE : 5.44
I have recently download Net-SNMP code from their website and trying to build in VC 2017 - and it fails.
The extracted folder has win32.dsp and win32dll.dsp - when I try to open in VC IDE I get error like -
Message
snmptrapd\snmptrapd.dsp: Unable to convert project. Please make sure this is a valid Visual C++ 6.0 project.
snmptrapd\snmptrapd.dsp: Project upgrade failed.
snmptrapd\snmptrapd.dsp: Converting project file 'C:\tools\netsnmp\net-snmp-5.8\win32\snmptrapd\snmptrapd.dsp'.
Hide 1 additional messages
Almost for all projects - the build via command line 'nmake' utility also fails with below error -
cd libagent
nmake /nologo all
cl.exe /I.. /I..\..\include /I..\..\agent\mibgroup /D WIN32 /D _BIND_TO_CURRENT_VCLIBS_VERSION /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WINSOCK_DEPRECATED_NO_WARNINGS /EHsc /FD /FR.\release\ /Fd.\release\libagent.pdb /Fo.\release\ /I C:\OpenSSL-Win32\include /c /W3 /Zi /nologo /wd4244 /wd4267 /MD /D NDEBUG /O2 ..\..\agent\agent_handler.c ..\..\agent\agent_index.c ..\..\agent\agent_read_config.c ..\..\agent\agent_registry.c ..\..\agent\agent_sysORTable.c ..\..\agent\agent_trap.c ..\..\agent\snmp_agent.c ..\..\agent\snmp_vars.c
agent_handler.c
..\..\agent\agent_handler.c(19): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
agent_index.c
..\..\agent\agent_index.c(12): fatal error C1083: Cannot open include file: 'signal.h': No such file or directory
agent_read_config.c
..\..\agent\agent_read_config.c(16): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
agent_registry.c
..\..\agent\agent_registry.c(32): fatal error C1083: Cannot open include file: 'signal.h': No such file or directory
agent_sysORTable.c
..\..\agent\agent_sysORTable.c(3): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
agent_trap.c
..\..\agent\agent_trap.c(35): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
snmp_agent.c
..\..\agent\snmp_agent.c(50): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
snmp_vars.c
..\..\agent\snmp_vars.c(68): fatal error C1083: Cannot open include file: 'string.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\nmake.EXE"' : return code '0x2'
Stop.
How can we resolve the issue?
If you built with OpenSSL you may have set INCLUDE and LIB paths and replaced the ones set by vcvars. If you set INCLUDE and LIB before running vcvars it will probably work. I concatenated to them to fix the issue.
I can't build directly from VS2017 neither.
According to the file README.win32, install ActivePerl first, then run win32\build.bat.
Updated: I have just push a branch that fixed compilation issue. Have a look at this: https://github.com/sanbrother/net-snmp/tree/VS2017/v5.8
(solution file net-snmp\win32\win32dll.sln)
PS: It seems that, old version (may be before 5.7.3???) has no such problems. New code split some files into multiple ones, and caused compilation issue under Windows.
While installing node module, I am getting winsock2.h, no such file or directory error. Please see below text for more information.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(355,5): warning MSB8003: Could not find WindowsS
an invalid version number. [c:\Playground\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules
kerberos.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
es\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
worker.cc
security_credentials.cc
security_buffer.cc
security_buffer_descriptor.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
und\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
g-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
security_context.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
layground\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
npm http GET https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm http 503 https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm http GET https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm WARN optional dep failed, continuing bson-ext#0.1.7
npm WARN optional dep failed, continuing bson-ext#0.1.7
I googled around and found this is a very common issue. Most users were able to fix this issue by installing windows 7 SDK. I tried downlaoding & installing windows 7 SDK on my machine and it failed. I assume its becuase I already have visual studio 2013 installed on my mahcine.
Please help
I am using Theos and when I use Make Package, I get the error:
In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error:
'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2
I checked and the file OSTypes.h does exist in the libkern folder. I am using rpetrich's iPhone headers from his github.
Terminal:
Jordans-MacBook-Pro:welcomer jordan$ make package
/Users/jordan/welcomer/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak Welcomer...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from <built-in>:184:
In file included from <command line>:3:
In file included from /Users/jordan/welcomer/theos/Prefix.pch:4:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UISwipeGestureRecognizer.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h:9:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIGestureRecognizer.h:6:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIKit-Structs.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:30:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/CAValueFunction.h:9:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/QuartzCore-Structs.h:11:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurface.h:20:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurfaceAPI.h:12:
In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error:
'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2
Jordans-MacBook-Pro:welcomer jordan$
OSTypes.h is missing from the iPhoneOS.sdk, I copied it from the iPhoneSimulator.sdk as follows:
sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern