Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Installation fails with latest atom #20

Closed
alex opened this issue Feb 12, 2015 · 13 comments
Closed

Installation fails with latest atom #20

alex opened this issue Feb 12, 2015 · 13 comments

Comments

@alex
Copy link

alex commented Feb 12, 2015

The error I get is:

> runas@1.1.0 install /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

In file included from ../src/main.cc:1:
../../nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:622:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:617:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1900:8: note: 'IsExternal' declared here
  bool IsExternal() const;
       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
    ext = str->GetExternalAsciiStringResource();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               GetExternalOneByteStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:2003:40: note: 'GetExternalOneByteStringResource' declared here
  const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
                                       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
    ext = str->GetExternalAsciiStringResource();
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1996:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
    *data = ext->data();
          ^ ~~~~~~~~~~~
7 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 14.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/alex_gaynor/.atom/.apmrc" "install" "/private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/d-115112-91841-10puehl/package.tgz" "--target=0.21.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE

npm ERR! runas@1.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@1.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
@robertjd
Copy link

Yep. Same here

@mamachanko
Copy link

same here

2 similar comments
@samtux
Copy link

samtux commented Feb 17, 2015

same here

@ghost
Copy link

ghost commented Feb 18, 2015

same here

oyarzun added a commit to oyarzun/atom-rst-preview that referenced this issue Feb 18, 2015
Update pathwatcher to 3.0 to fix compile issue.
@quorth0n
Copy link

👍 same error

@kavonszadkowski
Copy link

same here

@WalternativE
Copy link

Same here. Oyarzuns patch fixed the issue with pathwatcher for me (it compiles!)...still haven't got it to work properly yet (some compile header issues on my Windows box - pretty sure some mix up because I used to have io.js installed). Someone having luck applying oyarzuns solution?

@jekriske
Copy link

jekriske commented Mar 9, 2015

No luck here, compiles but doesn't run.

@kuno
Copy link

kuno commented Mar 20, 2015

+1
same issue

@geekpete
Copy link
Contributor

geekpete commented Apr 8, 2015

Same here.

Anyone care to fork and fix this project if it's not being actively developed?

@ghost
Copy link

ghost commented Apr 29, 2015

+1

@lsegal
Copy link
Owner

lsegal commented May 29, 2015

It's fixed! Thanks for your patience! Thank you to @oyarzun for stepping up with a PR!

@lsegal lsegal closed this as completed May 29, 2015
@geekpete
Copy link
Contributor

Works great for me now.
Pandoc wasn't on the path, so maybe something in the readme on how brew users might tweak the path to set this up would be cool.
I'm on OSX.
Pandoc was installed using brew install pandoc, which landed it into /usr/loca/bin/pandoc.

I chucked a symlink in to get it working but fixing the path would be a better solution.

Cheers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests