Why is node-expat not installing on windows? - windows

As a final resort I hope that someone here can help me. I've been trying to install node-expat but no luck.
I have installed from a packagemanager before, but when it installs from source I get the following errors:
..\..\..\deps\libexpat\lib\xmltok.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlparse.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlrole.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
C:\Program Files (x86)\Windows Kits\8.0\Include\um\windows.h(160): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\currentuser\AppData\Roaming\npm\node_modules\node-gyp\src\win_delay_load_hook.c) [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
Thank you in advance!

Related

fatal error: benchmark/benchmark.h: No such file or directory

Does anybody know what the following error message means?
fatal error: benchmark/benchmark.h: No such file or directory
#include benchmark/benchmark.h/
I should say that I have just installed Google Protobuf.

Cython installation (python -m pip install kivy)

How to solve these error :
c:\users\home pc\appdata\local\temp\pip-build-ficc_3vk\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

Boost - Cannot open include file: 'ctype.h'

I'm installing Boost 1.57.0 through the VS 2015 CTP6 Command Prompt, and I'm at the Boost.Build compile stage, but I get many of the below errors when running tools\build\bootstrap.bat:
e:\boost_1_57_0\tools\build\src\engine\jam.h(34): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory

Cannot install node-mapnik on Windows 2008 x64

I have been spending the last few days trying to get node-mapnik running but with no success.
Initially inspired by Wilhelm Berg's demo (https://www.youtube.com/watch?v=GlTaRpg3CbQ) which renders pure vector maps using node-mapnik I was interested in getting this running on a Windows Server.
I have worked through all of the StackExchange issues on these topics including Wilhelm's checklist for getting this working on Windows 7 x64 but I am at a dead end and my knowledge is really limited in being able to further diagnose the problem.
My environment is:
Windows 2008 Server R2 x64
Visual Studio Express 2012 Desktop Edition (32 & 64 bit)
Node.js v0.10.26 (64 bit)
Python27 (32 bit)
I have taken the following steps:
Installed Mapnik 2.2.0 SDK downloaded from git and placed in C:\apps\mapnik-v2.2.0
Added to PATH:
C:\apps\mapnik-v2.2.0\lib
C:\apps\mapnik-v2.2.0\bin
Installed Python v2.7 (32bit) downloaded and placed in C:\apps\python27
Added to PATH:
C:\apps\python27
C:\apps\python27\scripts
Added to PYTHONPATH:
C:\apps\Python27\Lib; C:\apps\Python27\DLLs;
C:\apps\Python27\Lib\lib-tk;
C:\apps\mapnik-v2.2.0\python\2.7\site-packages;
Rebuild node-gyp using VS 2012
node-gyp rebuild --msvs_version=2012
Downloaded and installed protobuf (32 bit) and placed in c:\apps\protobuf
Added to PATH:
c:\apps\protobuf
Installed protobuf using NPM
npm install protobuf --msvs_version=2012
Downloaded Cairo using git
git clone git://anongit.freedesktop.org/git/cairo
Copy Cairo files to mapnik:
Copy cairo\src\cairo-svg-surface.c to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg.h to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg-surface-private.h to C:\apps\mapnik-v2.2.0\include
Make proj4 epsg files available:
SET PROJ_LIB=C:\apps\mapnik-v2.2.0\share\proj
Attempt to install node-mapnik
npm install node-mapnik --msvs_version=2012
I receive the following errors:
node-pre-gyp ERR! Source compile required: 404 status code downloading
tarball ... mapnik_grid.cpp
c:\users\administrator\node_modules\node-mapnik\build\release\obj\global_interm
ediate\vector_tile.pb.h(9): fatal error C1083: Cannot open include
file: 'googl e/protobuf/stubs/common.h': No such file or directory
(C:\Users\Administrator\n
ode_modules\node-mapnik\build\Release\obj\global_intermediate\vector_tile.pb.cc
)
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_geometry.cpp)
[C:\Users\Administrator\node_modules\node-mapnik
\build\mapnik.vcxproj] mapnik_layer.cpp mapnik_cairo_surface.cpp
c:\users\administrator\node_modules\node-mapnik\src\mapnik_featureset.hpp(6):
f atal error C1083: Cannot open include file:
'mapnik/datasource_cache.hpp': No s uch file or directory
(..\src\mapnik_featureset.cpp) [C:\Users\Administrator\no
de_modules\node-mapnik\build\mapnik.vcxproj] mapnik_image.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_map.cpp) [C:\U
sers\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_datasource.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_color.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
node_mapnik.cpp ..\src\mapnik_grid_view.cpp(9): fatal error C1083:
Cannot open include file: 'm apnik/grid/grid.hpp': No such file or
directory [C:\Users\Administrator\node_mo
dules\node-mapnik\build\mapnik.vcxproj] mapnik_projection.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_layer.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_feature.cpp ..\src\mapnik_grid.cpp(9): fatal error C1083:
Cannot open include file: 'mapnik /version.hpp': No such file or
directory [C:\Users\Administrator\node_modules\n
ode-mapnik\build\mapnik.vcxproj] mapnik_palette.cpp
..\src\mapnik_image_view.cpp(11): fatal error C1083: Cannot open
include file: 'mapnik/color.hpp': No such file or directory
[C:\Users\Administrator\node_modu
les\node-mapnik\build\mapnik.vcxproj] mapnik_vector_tile.cpp
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_cairo_surface.cpp)
[C:\Users\Administrator\node_modules\node-m
apnik\build\mapnik.vcxproj] mapnik_expression.cpp
mapnik_memory_datasource.cpp ..\src\mapnik_memory_datasource.cpp(3):
fatal error C1083: Cannot open include file: 'mapnik/version.hpp': No
such file or directory [C:\Users\Administrator\n
ode_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_feature.cpp)
[C:\Users\Administrator\node_modules\node-mapnik\
build\mapnik.vcxproj] ..\src\mapnik_image.cpp(7): fatal error C1083:
Cannot open include file: 'mapni k/color.hpp': No such file or
directory [C:\Users\Administrator\node_modules\no
de-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_datasource.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_projection.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_palette.cpp) [
C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\node_mapnik.cpp) [C:\
Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_vector_tile.cpp)
[C:\Users\Administrator\node_modules\node-map
nik\build\mapnik.vcxproj]
node-mapnik now ships with windows binaries, so none of the above steps should be needed. See https://github.com/mapnik/node-mapnik#installing for details.

ZMQ Compilation problems for C++ examples

I am trying to compile the ZMQ C++ source code examples provided at zmq.org (i.e. github.com/imatix/zguide.git). My OS is xubuntu and I installed ZMQ prerequisites which are libtool, autoconf, automake and uuid-dev package properly. I installed czmq as well. Compilation and linking of ZMQ itself was fine and libs are located properly under /usr/local/bin. Nevertheless, I am getting below compilation errors. Googling did not help much and I wonder if anyone knows a quick solution to these errors, which originates from the missing header file zmq.hpp. Thanks in advance.
$./build all
hwclient.cpp
hwclient.cpp:6:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
hwserver.cpp
hwserver.cpp:6:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
identity.cpp
identity.cpp:7:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lbbroker.cpp
In file included from lbbroker.cpp:7:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lpclient.cpp
In file included from lpclient.cpp:6:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
lpserver.cpp
In file included from lpserver.cpp:8:0:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
mdbroker.cpp
In file included from zmsg.hpp:35:0,
from mdbroker.cpp:7:
zhelpers.hpp:29:19: fatal error: zmq.hpp: No such file or directory
compilation terminated.
mdclient.cpp
......
It looks zmq.hpp has been moved to another git repository beginning with ZMQ 3.2 which is available at https://github.com/zeromq/cppzmq. I have clonned this to same place where a previously extracted the ZMQ's tar ball. Then I created a symbolic link to zmq.hpp from the examples's C++ directory. Then examples compiled fine.
prem#~/Code/zeromq>ls
cppzmq-master.zip zguide zmqpp-develop zmqpp-develop.zip
prem#~/Code/zeromq>unzip cppzmq-master.zip
Archive: cppzmq-master.zip
235803740753312576495301ebf5b8ed76407173
creating: cppzmq-master/
inflating: cppzmq-master/LICENSE
inflating: cppzmq-master/README
inflating: cppzmq-master/zmq.hpp
prem#~/Code/zeromq>ls
cppzmq-master cppzmq-master.zip zguide zmqpp-develop zmqpp-develop.zip
prem#~/Code/zeromq>cd cppzmq-master/
prem#~/Code/zeromq/cppzmq-master>ls
prem#~/Code/zeromq/cppzmq-master>sudo cp zmq.hpp /usr/include/
prem#~/Code/zeromq/cppzmq-master>cd ~/Code/zeromq/zguide/examples/C++
prem#~/Code/zeromq/zguide/examples/C++>./build all
Building C++ examples...
hwclient.cpp
hwserver.cpp
identity.cpp
interrupt.cpp
...
prem#~/Code/zeromq/zguide/examples/C++>

Resources