Code Monkey home page Code Monkey logo

Comments (9)

vikhyath avatar vikhyath commented on May 30, 2024

This is a python version issue. Check nodejs/node-gyp#363 switching the python version should be solving this at your end.

from node-libvirt.

c4milo avatar c4milo commented on May 30, 2024

@jmarceno any luck switching your python version?

from node-libvirt.

jmarceno avatar jmarceno commented on May 30, 2024

@c4milo , in part yes. Using python 2.6.9 as default I get a different error.
(same error installing from Git or NPM)
I'm running Ubuntu 13.10 and libvirt is installed.

npm http GET https://registry.npmjs.org/libvirt
npm http 304 https://registry.npmjs.org/libvirt

[email protected] install /home/jmarceno/Documentos/nodeJS/vdcm/node_modules/libvirt
node-gyp rebuild

Package libvirt was not found in the pkg-config search path.
Perhaps you should add the directory containing libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found gyp: Call to 'pkg-config --libs libvirt' returned exit status 1. gyp ERR! configure error gyp ERR! stack Error:gypfailed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.8.0-37-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/jmarceno/Documentos/nodeJS/vdcm/node_modules/libvirt gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm ERR! [email protected] install:node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the libvirt 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 libvirt
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "libvirt"
npm ERR! cwd /home/jmarceno/Documentos/nodeJS/vdcm
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/jmarceno/Documentos/nodeJS/vdcm/npm-debug.log
npm ERR! not ok code 0

from node-libvirt.

vikhyath avatar vikhyath commented on May 30, 2024

Try, export PKG_CONFIG_PATH =/path/to/libvirt.pc

Sent from my iPhone

On Mar 23, 2014, at 12:54 PM, jmarceno [email protected] wrote:

PKG_CONFIG_PATH

from node-libvirt.

jmarceno avatar jmarceno commented on May 30, 2024

A fast locate returned no references to libvirt.pc

It was suposed to come with libvirt or with node-libvirt?

from node-libvirt.

vikhyath avatar vikhyath commented on May 30, 2024

It should come with libvirt. Did you get libvirt from package manager / similar or did you build it from a .tar?

On Mar 23, 2014, at 1:15 PM, jmarceno [email protected] wrote:

A fast locate returned no references to libvirt.pc

It was suposed to come with libvirt or with node-libvirt?


Reply to this email directly or view it on GitHub.

from node-libvirt.

jmarceno avatar jmarceno commented on May 30, 2024

Got libvirt from Ubuntu repositorie (apt-get).

from node-libvirt.

vikhyath avatar vikhyath commented on May 30, 2024

My two cents would be to download the libvirt tar and extract.

Then run:
./configure
make
make install

That way you will know for sure where libvirt.pc is located, which is the tar extracted directory. You can also control what hyperVISOR drivers you want during the configure process.

On Mar 23, 2014, at 1:23 PM, jmarceno [email protected] wrote:

Got libvirt from Ubuntu repositorie (apt-get).


Reply to this email directly or view it on GitHub.

from node-libvirt.

jmarceno avatar jmarceno commented on May 30, 2024

@vikhyath I was just trying it when you responded :)

Followed the instuctions (http://libvirt.org/compiling.html) and worked.
The instructions below are the key.

"
Be aware though, that binaries built with a custom prefix will not interoperate with OS vendor provided binaries, since the UNIX socket paths will all be different. To produce a build that is compatible with normal OS vendor prefixes, use

  $ ./autogen.sh --system
  $ make

"

@c4milo I believe that it would be great to place it (the instructions to install from source if the development machine is Ubuntu/Debian based.) at the Docs.

Tks for the help.

from node-libvirt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.