error configure in ubuntu system

Aperta
#5 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp, node.js
Ambito
build-system

Direzione di ricerca

Riproduci l'installazione globale tramite npm con Node v0.12.0 e node-gyp 1.0.2, quindi esamina src/atom.cpp alla riga indicata e l'output di build generato. Verifica le versioni di Node/V8 supportate dal pacchetto e i requisiti di build. Il lavoro è completato quando il pacchetto openbabel viene installato correttamente su Ubuntu senza l'errore di compilazione indicato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

$ npm install openbabel -g
/

[email protected] install /home/register/sf_install/node/lib/node_modules/openbabel
node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory /home/register/sf_install/node/lib/node_modules/openbabel/build' CXX(target) Release/obj.target/openbabel/src/atom.o In file included from ../src/atom.cpp:1:0: /home/register/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static void v8::NonCopyablePersistentTraits<T>::Uncompilable() [with O = v8::Object, T = v8::Object]’: /home/register/.node-gyp/0.12.0/deps/v8/include/v8.h:592:5: instantiated from ‘static void v8::NonCopyablePersistentTraits<T>::Copy(const v8::Persistent<S, M>&, v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent*) [with S = v8::Object, M = v8::NonCopyablePersistentTraits<v8::Object>, T = v8::Object, v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent = v8::Persistent<v8::Object>]’ /home/register/.node-gyp/0.12.0/deps/v8/include/v8.h:5826:3: instantiated from ‘void v8::Persistent<T, M>::Copy(const v8::Persistent<S, M>&) [with S = v8::Object, M2 = v8::NonCopyablePersistentTraits<v8::Object>, T = v8::Object, M = v8::NonCopyablePersistentTraits<v8::Object>]’ /home/register/.node-gyp/0.12.0/deps/v8/include/v8.h:657:5: instantiated from ‘v8::Persistent<T, M>::Persistent(const v8::Persistent<T, M>&) [with T = v8::Object, M = v8::NonCopyablePersistentTraits<v8::Object>, v8::Persistent<T, M> = v8::Persistent<v8::Object>]’ ../src/atom.cpp:90:46: instantiated from here /home/register/.node-gyp/0.12.0/deps/v8/include/v8.h:596:5: error: cannot convert ‘v8::Primitive*’ to ‘v8::Object* volatile’ in assignment make: *** [Release/obj.target/openbabel/src/atom.o] Error 1 make: Leaving directory/home/register/sf_install/node/lib/node_modules/openbabel/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/register/sf_install/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.5.0-23-generic
gyp ERR! command "node" "/home/register/sf_install/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/register/sf_install/node/lib/node_modules/openbabel
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.5.0-23-generic
npm ERR! argv "/home/register/sf_install/node/bin/node" "/home/register/sf_install/node/bin/npm" "install" "openbabel" "-g"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the openbabel 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 openbabel
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/register/sf_install/node/lib/node_modules/npm/npm-debug.log

How can i fix my mistakes?

Lingua principale
C++
Stelle
27
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mohebifar/openbabel-node

Tutte le issue di mohebifar/openbabel-node

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.