• atom-editor error AUR


    Hello.

    I’m trying to install atom-editor from AUR but I get the following error:

    ==> Iniciando build()…
    Node: v4.1.0
    npm: v2.14.3
    Installing build modules…
    In file included from …/src/main.cc:1:0:
    …/node_modules/nan/nan.h:260:25: error: redefinición de ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
    NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
    ^
    …/node_modules/nan/nan.h:255:25: nota: se declaró ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previamente aquí
    NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
    ^
    …/node_modules/nan/nan.h:660:13: error: ‘node::smalloc’ no se ha declarado
    , node::smalloc::FreeCallback callback
    ^
    …/node_modules/nan/nan.h:660:35: error: expected ‘,’ or ‘…’ before ‘callback’
    , node::smalloc::FreeCallback callback
    ^
    …/node_modules/nan/nan.h: En la función ‘v8::Localv8::Object NanNewBufferHandle(char*, size_t, int)’:
    …/node_modules/nan/nan.h:664:50: error: ‘callback’ no se declaró en este ámbito
    v8::Isolate::GetCurrent(), data, length, callback, hint);
    ^
    …/node_modules/nan/nan.h:664:60: error: ‘hint’ no se declaró en este ámbito
    v8::Isolate::GetCurrent(), data, length, callback, hint);
    ^
    …/node_modules/nan/nan.h: En la función ‘v8::Localv8::Object NanNewBufferHandle(const char*, uint32_t)’:
    …/node_modules/nan/nan.h:671:67: error: no hay una función coincidente para la llamada a ‘New(v8::Isolate*, const char*&, uint32_t&)’
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
    ^
    In file included from …/node_modules/nan/nan.h:25:0,
    from …/src/main.cc:1:
    /home/raag/.node-gyp/4.1.0/src/node_buffer.h:31:40: nota: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding) <coincidencia cercana>
    NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
    ^
    /home/raag/.node-gyp/4.1.0/src/node_buffer.h:31:40: nota: conversion of argument 3 would be ill-formed:
    In file included from …/src/main.cc:1:0:
    …/node_modules/nan/nan.h:671:67: error: conversión inválida de ‘uint32_t {aka unsigned int}’ a ‘node::encoding’ [-fpermissive]
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
    ^
    In file included from …/node_modules/nan/nan.h:25:0,
    from …/src/main.cc:1:
    /home/raag/.node-gyp/4.1.0/src/node_buffer.h:43:40: nota: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t) <coincidencia cercana>
    NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
    ^
    /home/raag/.node-gyp/4.1.0/src/node_buffer.h:43:40: nota: conversion of argument 2 would be ill-formed:
    In file included from …/src/main.cc:1:0:
    …/node_modules/nan/nan.h:671:67: error: conversión inválida de ‘const char*’ a ‘char*’ [-fpermissive]
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
    ^
    …/node_modules/nan/nan.h: En la función ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
    …/node_modules/nan/nan.h:675:29: error: no se puede convertir ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ de ‘v8::MaybeLocalv8::Object’ a ‘v8::Localv8::Object
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
    ^
    …/node_modules/nan/nan.h: En la función ‘v8::Localv8::Object NanBufferUse(char*, uint32_t)’:
    …/node_modules/nan/nan.h:682:12: error: ‘Use’ no es un miembro de ‘node::Buffer’
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
    ^
    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 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269: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 Linux 4.1.6-1-ARCH
    gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild"
    gyp ERR! cwd /tmp/yaourt-tmp-raag/aur-atom-editor/src/atom-1.0.11/build/node_modules/runas
    gyp ERR! node -v v4.1.0
    gyp ERR! node-gyp -v v2.0.2
    gyp ERR! not ok

    Any idea?

    Thanks

  • Hi,

    Try the -bin package instead:

    yaourt -S atom-editor-bin
    

    Cheers!

  • It works!

    Thank you, you saved me.

atom-editor1 Posts 3Views 862
Log in to reply