atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

runas compilation issue: nan_persistent_12_inl.h: No such file or directory #27

Closed zedtux closed 6 years ago

zedtux commented 8 years ago

I'm trying to install the rails-model-schema package in Atom on my Debian Jessie box but it fails with the following output:

> runas@3.1.1 install /tmp/apm-install-dir-116727-6501-1yu063v/node_modules/rails-model-schema/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-116727-6501-1yu063v/node_modules/rails-model-schema/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
runas.target.mk:90: recipe for target 'Release/obj.target/runas/src/main.o' failed
make: Leaving directory '/tmp/apm-install-dir-116727-6501-1yu063v/node_modules/rails-model-schema/node_modules/pathwatcher/node_modules/runas/build'

In file included from ../../nan/nan.h:196:0,
                 from ../src/main.cc:1:
../../nan/nan_new.h:9:0: error: unterminated #ifndef
 #ifndef NAN_NEW_H_
 ^
In file included from ../src/main.cc:1:0:
../../nan/nan.h:311:62: fatal error: nan_persistent_12_inl.h: No such file or directory
 # include "nan_persistent_12_inl.h"  // NOLINT(build/include)
                                                              ^
compilation terminated.
The bug is not reproducible, so it is likely a hardware or OS problem.
make: *** [Release/obj.target/runas/src/main.o] Error 1

Ref: juliogarciag/atom-rails-model-schema#24

zedtux commented 6 years ago

I don't have this issue anymore, so I close the issue.