Comments (9)
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.
@jmarceno any luck switching your python version?
from node-libvirt.
@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.
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.
A fast locate returned no references to libvirt.pc
It was suposed to come with libvirt or with node-libvirt?
from node-libvirt.
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.
Got libvirt from Ubuntu repositorie (apt-get).
from node-libvirt.
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.
@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)
- Parent objects get garbage collected before children' async operations finish which can lead to a crash HOT 3
- Error information can be lost during high concurrency
- Error objects become invalid and cause a crash (test-case supplied) HOT 7
- lookupStorageVolumeByVolume is not implemented HOT 4
- tests != docs. HOT 6
- Events not firing HOT 6
- v2.0.0 promisification changes HOT 6
- list by domain name? HOT 6
- Error with connection pointers HOT 4
- Domain migration with options fails with sigfault HOT 1
- lookupDomainByUUID HOT 3
- set/get secret value do not work properly HOT 4
- Domain clonage
- npm install in windows error
- Current version in npm does not have the latest fixes. HOT 6
- How to listen for all domain events from hypervisor
- Maintainers? HOT 3
- Crashes when using events
- Can't install on Centos 7
- Is this library relevant?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libvirt.