isaacs/npm — Issue #1533: calipso installation failed
Author: oc666
Created: 2011-10-11 15:33:42+00:00
State: open

Hey
On installing callipso:
```
npm install calipso -g
```

I'm getting the next error:
```
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -O3 -DNDEBUG -Wall -c zip_source_zip.c -o zip_source_zip.o
npm ERR! Failed unpacking /tmp/npm-1318346846157/1318346879816-0.05356212565675378/tmp.tgz
npm ERR! couldn't unpack /tmp/npm-1318346846157/1318346879816-0.05356212565675378/tmp.tgz to /tmp/npm-1318346846157/1318346879816-0.05356212565675378/contents
npm ERR! error installing connect-form@0.2.1 Error: `tar "-zmvxpf" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/tmp.tgz" "-C" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/contents/___package.npm" ["-o"]`
npm ERR! error installing connect-form@0.2.1 failed with 2
npm ERR! error installing connect-form@0.2.1 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:182:20)
npm ERR! error installing connect-form@0.2.1 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing connect-form@0.2.1 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing calipso@0.2.3 Error: `tar "-zmvxpf" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/tmp.tgz" "-C" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/contents/___package.npm" ["-o"]`
npm ERR! error installing calipso@0.2.3 failed with 2
npm ERR! error installing calipso@0.2.3 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:182:20)
npm ERR! error installing calipso@0.2.3 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing calipso@0.2.3 at ChildProcess.onexit (child_process.js:192:12)
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -O3 -DNDEBUG -Wall -c -o zip_set_name.lo zip_set_name.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -O3 -DNDEBUG -Wall -c zip_set_name.c -o zip_set_name.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -O3 -DNDEBUG -Wall -c -o zip_stat.lo zip_stat.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fPIC -O3 -DNDEBUG -Wall -c zip_stat.c -o zip_stat.o
In file included from zip_stat.c:36:
zipint.h:46:20: error: config.h: No such file or directory
make[3]: *** [zip_stat.lo] Error 1
make[3]: Leaving directory `/usr/local/lib/node_modules/calipso/node_modules/zipfile/deps/libzip-0.10/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/lib/node_modules/calipso/node_modules/zipfile/deps/libzip-0.10/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/lib/node_modules/calipso/node_modules/zipfile/deps/libzip-0.10'
make: *** [all] Error 2
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in ?
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 399, in build_impl
bld.add_subdirs([os.path.split(Utils.g_module.root_path)[0]])
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 981, in add_subdirs
self.recurse(dirs, 'build')
File "/usr/local/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/usr/local/lib/node_modules/calipso/node_modules/zipfile/wscript", line 163, in build
AttributeError: 'NoneType' object has no attribute 'ant_glob'
npm ERR! error installing zipfile@0.2.4 Error: zipfile@0.2.4 install: `node-waf configure build`
npm ERR! error installing zipfile@0.2.4 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing zipfile@0.2.4 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing zipfile@0.2.4 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing zipfile@0.2.4 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! Error: `tar "-zmvxpf" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/tmp.tgz" "-C" "/tmp/npm-1318346846157/1318346879816-0.05356212565675378/contents/___package.npm" ["-o"]`
npm ERR! failed with 2
npm ERR! at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:182:20)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at ChildProcess.onexit (child_process.js:192:12)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.18-92.1.10.el5.centos.plusPAE
npm ERR! command "node" "/usr/local/bin/npm" "install" "calipso" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.94
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok
```

Please advise

Thanks