bnoordhuis / node-iconv

node.js iconv bindings - text recoding for fun and profit!
Other
797 stars 123 forks source link

Cannot install iconv #129

Closed anubhadixit closed 8 years ago

anubhadixit commented 9 years ago

Hi I am trying to install iconv on Ubuntu and Centos and I am getting the following error: /home/adminuser/node-v0.12.3-linux-x86/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 3: node: command not found npm ERR! Linux 2.6.32-431.el6.i686 npm ERR! argv "/home/adminuser/node-v0.12.3-linux-x86/bin/node" "/home/adminuser/node-v0.12.3-linux-x86/bin/npm" "install" "iconv" npm ERR! node v0.12.3 npm ERR! npm v2.9.1 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! iconv@2.1.10 install: node-gyp rebuild npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the iconv@2.1.10 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the iconv 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 iconv npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/adminuser/node-v0.12.3-linux-x86/bin/npm-debug.log

bnoordhuis commented 9 years ago

Hi, that's not related to node-iconv. Make sure /home/adminuser/node-v0.12.3-linux-x86/bin is on the PATH, that's where the node binary is.

hbbio commented 9 years ago

I also have related issues, here is the extract of the log:

735 verbose stack Error: iconv@2.1.10 install: `node-gyp rebuild`
735 verbose stack Exit status 1
735 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
735 verbose stack     at EventEmitter.emit (events.js:110:17)
735 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
735 verbose stack     at ChildProcess.emit (events.js:110:17)
735 verbose stack     at maybeClose (child_process.js:1015:16)
735 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
736 verbose pkgid iconv@2.1.10
738 error Linux 3.16.0-46-generic
739 error argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "iconv"
740 error node v0.12.7
741 error npm  v2.11.3
742 error code ELIFECYCLE
743 error iconv@2.1.10 install: `node-gyp rebuild`
743 error Exit status 1
744 error Failed at the iconv@2.1.10 install script 'node-gyp rebuild'.
744 error This is most likely a problem with the iconv package,
744 error not with npm itself.
744 error Tell the author that this fails on your system:
744 error     node-gyp rebuild
744 error You can get their info via:
744 error     npm owner ls iconv
744 error There is likely additional logging output above.
hbbio commented 9 years ago

Solved in my case. g++ was not installed.

Note that there isn't any clear error message about this, even in the log.

thesadboy commented 8 years ago

I can't install iconv on centos with nodejs 4.1.1

bnoordhuis commented 8 years ago

@thesadboy More details appreciated.

mikeyakymenko commented 8 years ago

Same problem. :/ Details...

– mac os x Yosemite 10.10.5 – python 2.7 (also in ~/.npmprc) – node v4.1.1 – npm v2.14.4

npm install node-expat, or npm install git+https://github.com/serjant/node-office.git, or npm install iconv...

Always got errors. Any idea?

bnoordhuis commented 8 years ago

Can you post the contents of npm-debug.log?

bossyang commented 8 years ago

Same problem

GitHub can't process the attachment. I pasted npm-debug.log directly.

0 info it worked if it ends with ok
1 verbose cli [ '/home/bossyang/.nvm/versions/node/v4.1.2/bin/node',
1 verbose cli   '/home/bossyang/.nvm/versions/node/v4.1.2/bin/npm',
1 verbose cli   'install',
1 verbose cli   'iconv' ]
2 info using npm@2.14.4
3 info using node@v4.1.2
4 verbose install initial load of /home/bossyang/node_projects/xmpp_test/package.json
5 verbose readDependencies loading dependencies from /home/bossyang/node_projects/xmpp_test/package.json
6 silly cache add args [ 'iconv', null ]
7 verbose cache add spec iconv
8 silly cache add parsed spec Result {
8 silly cache add   raw: 'iconv',
8 silly cache add   scope: null,
8 silly cache add   name: 'iconv',
8 silly cache add   rawSpec: '',
8 silly cache add   spec: '*',
8 silly cache add   type: 'range' }
9 silly addNamed iconv@*
10 verbose addNamed "*" is a valid semver range for iconv
11 silly addNameRange { name: 'iconv', range: '*', hasData: false }
12 silly mapToRegistry name iconv
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/iconv
16 verbose addNameRange registry:https://registry.npmjs.org/iconv not in flight; fetching
17 verbose request uri https://registry.npmjs.org/iconv
18 verbose request no auth needed
19 info attempt registry request try #1 at 2:12:00 PM
20 verbose request id a974b4649922ad24
21 verbose etag "6XYJWPT0VPKIEQKHJ9I9P0LIE"
22 http request GET https://registry.npmjs.org/iconv
23 http 304 https://registry.npmjs.org/iconv
24 silly get cb [ 304,
24 silly get   { date: 'Mon, 12 Oct 2015 06:12:04 GMT',
24 silly get     via: '1.1 varnish',
24 silly get     'cache-control': 'max-age=60',
24 silly get     etag: '"6XYJWPT0VPKIEQKHJ9I9P0LIE"',
24 silly get     age: '42',
24 silly get     connection: 'keep-alive',
24 silly get     'x-served-by': 'cache-hkg6825-HKG',
24 silly get     'x-cache': 'HIT',
24 silly get     'x-cache-hits': '2',
24 silly get     'x-timer': 'S1444630324.354982,VS0,VE0',
24 silly get     vary: 'Accept' } ]
25 verbose etag https://registry.npmjs.org/iconv from cache
26 verbose get saving iconv to /home/bossyang/.npm/registry.npmjs.org/iconv/.cache.json
27 silly addNameRange number 2 { name: 'iconv', range: '*', hasData: true }
28 silly addNameRange versions [ 'iconv',
28 silly addNameRange   [ '1.0.0',
28 silly addNameRange     '1.0.1',
28 silly addNameRange     '1.1.0',
28 silly addNameRange     '1.1.1',
28 silly addNameRange     '1.1.2',
28 silly addNameRange     '1.1.3',
28 silly addNameRange     '1.2.0',
28 silly addNameRange     '1.2.1',
28 silly addNameRange     '1.2.2',
28 silly addNameRange     '1.2.3',
28 silly addNameRange     '1.2.4',
28 silly addNameRange     '2.0.0',
28 silly addNameRange     '2.0.1',
28 silly addNameRange     '2.0.2',
28 silly addNameRange     '2.0.3',
28 silly addNameRange     '2.0.4',
28 silly addNameRange     '2.0.5',
28 silly addNameRange     '2.0.6',
28 silly addNameRange     '2.0.7',
28 silly addNameRange     '2.1.0',
28 silly addNameRange     '2.1.1',
28 silly addNameRange     '2.1.2',
28 silly addNameRange     '2.1.3',
28 silly addNameRange     '2.1.4',
28 silly addNameRange     '2.1.5',
28 silly addNameRange     '2.1.6',
28 silly addNameRange     '2.1.7',
28 silly addNameRange     '2.1.8',
28 silly addNameRange     '2.1.9',
28 silly addNameRange     '2.1.10',
28 silly addNameRange     '2.1.11' ] ]
29 silly addNamed iconv@2.1.11
30 verbose addNamed "2.1.11" is a plain semver version for iconv
31 silly cache afterAdd iconv@2.1.11
32 verbose afterAdd /home/bossyang/.npm/iconv/2.1.11/package/package.json not in flight; writing
33 verbose afterAdd /home/bossyang/.npm/iconv/2.1.11/package/package.json written
34 silly install resolved [ { name: 'iconv',
34 silly install resolved     main: './lib/iconv',
34 silly install resolved     version: '2.1.11',
34 silly install resolved     description: 'Text recoding in JavaScript for fun and profit!',
34 silly install resolved     homepage: 'https://github.com/bnoordhuis/node-iconv',
34 silly install resolved     repository:
34 silly install resolved      { type: 'git',
34 silly install resolved        url: 'git://github.com/bnoordhuis/node-iconv.git' },
34 silly install resolved     author: { name: 'Ben Noordhuis', email: 'info@bnoordhuis.nl' },
34 silly install resolved     engines: { node: '>=0.8.0' },
34 silly install resolved     license: 'ISC',
34 silly install resolved     dependencies: { nan: '~2.0.4' },
34 silly install resolved     devDependencies: { tap: '~0.4.8' },
34 silly install resolved     scripts: { test: 'tap test/test-*.js', install: 'node-gyp rebuild' },
34 silly install resolved     gypfile: true,
34 silly install resolved     gitHead: '19d8cad518df5be88b47d634db15920debfaf69c',
34 silly install resolved     bugs: { url: 'https://github.com/bnoordhuis/node-iconv/issues' },
34 silly install resolved     _id: 'iconv@2.1.11',
34 silly install resolved     _shasum: '5f5da93a643506f5ceaa8bd9c78d6174f8b9351a',
34 silly install resolved     _from: 'iconv@*',
34 silly install resolved     _npmVersion: '2.14.4',
34 silly install resolved     _nodeVersion: '5.0.0-pre',
34 silly install resolved     _npmUser: { name: 'bnoordhuis', email: 'info@bnoordhuis.nl' },
34 silly install resolved     maintainers: [ [Object] ],
34 silly install resolved     dist:
34 silly install resolved      { shasum: '5f5da93a643506f5ceaa8bd9c78d6174f8b9351a',
34 silly install resolved        tarball: 'http://registry.npmjs.org/iconv/-/iconv-2.1.11.tgz' },
34 silly install resolved     directories: {},
34 silly install resolved     _resolved: 'https://registry.npmjs.org/iconv/-/iconv-2.1.11.tgz',
34 silly install resolved     readme: 'ERROR: No README data found!' } ]
35 info install iconv@2.1.11 into /home/bossyang/node_projects/xmpp_test
36 info installOne iconv@2.1.11
37 verbose installOne of iconv to /home/bossyang/node_projects/xmpp_test not in flight; installing
38 verbose lock using /home/bossyang/.npm/_locks/iconv-3b095812edf26b8c.lock for /home/bossyang/node_projects/xmpp_test/node_modules/iconv
39 silly install write writing iconv 2.1.11 to /home/bossyang/node_projects/xmpp_test/node_modules/iconv
40 verbose unbuild node_modules/iconv
41 silly gentlyRm /home/bossyang/node_projects/xmpp_test/node_modules/iconv is being purged from base /home/bossyang/node_projects/xmpp_test
42 verbose gentlyRm don't care about contents; nuking /home/bossyang/node_projects/xmpp_test/node_modules/iconv
43 verbose tar unpack /home/bossyang/.npm/iconv/2.1.11/package.tgz
44 verbose tar unpacking to /home/bossyang/node_projects/xmpp_test/node_modules/iconv
45 silly gentlyRm /home/bossyang/node_projects/xmpp_test/node_modules/iconv is being purged
46 verbose gentlyRm don't care about contents; nuking /home/bossyang/node_projects/xmpp_test/node_modules/iconv
47 silly gunzTarPerm modes [ '775', '664' ]
48 silly gunzTarPerm extractEntry package.json
49 silly gunzTarPerm extractEntry .npmignore
50 silly gunzTarPerm extractEntry README.md
51 silly gunzTarPerm extractEntry LICENSE
52 silly gunzTarPerm extractEntry binding.gyp
53 silly gunzTarPerm extractEntry deps/libiconv/README
54 silly gunzTarPerm extractEntry deps/libiconv/INSTALL.generic
55 silly gunzTarPerm extractEntry deps/libiconv/COPYING
56 silly gunzTarPerm extractEntry deps/libiconv/COPYING.LIB
57 silly gunzTarPerm extractEntry deps/libiconv/ChangeLog
58 silly gunzTarPerm extractEntry deps/libiconv/DEPENDENCIES
59 silly gunzTarPerm extractEntry deps/libiconv/DESIGN
60 silly gunzTarPerm extractEntry deps/libiconv/HACKING
61 silly gunzTarPerm extractEntry deps/libiconv/AUTHORS
62 silly gunzTarPerm extractEntry deps/libiconv/NEWS
63 silly gunzTarPerm extractEntry deps/libiconv/NOTES
64 silly gunzTarPerm extractEntry deps/libiconv/PORTS
65 silly gunzTarPerm extractEntry deps/libiconv/ABOUT-NLS
66 silly gunzTarPerm extractEntry deps/libiconv/README.woe32
67 silly gunzTarPerm extractEntry deps/libiconv/THANKS
68 silly gunzTarPerm extractEntry deps/libiconv/lib/euc_tw.h
69 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases.gperf
70 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases2.h
71 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_aix.h
72 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_aix_sysaix.h
73 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_dos.h
74 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_extra.h
75 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_osf1.h
76 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_osf1_sysosf1.h
77 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_sysaix.gperf
78 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_sysaix.h
79 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_syshpux.gperf
80 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_syshpux.h
81 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_sysosf1.gperf
82 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_sysosf1.h
83 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_syssolaris.gperf
84 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases_syssolaris.h
85 silly gunzTarPerm extractEntry deps/libiconv/lib/armscii_8.h
86 silly gunzTarPerm extractEntry deps/libiconv/lib/ascii.h
87 silly gunzTarPerm extractEntry deps/libiconv/lib/atarist.h
88 silly gunzTarPerm extractEntry deps/libiconv/lib/big5.h
89 silly gunzTarPerm extractEntry deps/libiconv/lib/big5_2003.h
90 silly gunzTarPerm extractEntry deps/libiconv/lib/big5hkscs1999.h
91 silly gunzTarPerm extractEntry deps/libiconv/lib/big5hkscs2001.h
92 silly gunzTarPerm extractEntry deps/libiconv/lib/big5hkscs2004.h
93 silly gunzTarPerm extractEntry deps/libiconv/lib/big5hkscs2008.h
94 silly gunzTarPerm extractEntry deps/libiconv/lib/c99.h
95 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical.h
96 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_aix.h
97 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_aix_sysaix.h
98 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_dos.h
99 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_extra.h
100 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_local.h
101 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_local_sysaix.h
102 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_local_syshpux.h
103 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_local_sysosf1.h
104 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_local_syssolaris.h
105 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_osf1.h
106 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_osf1_sysosf1.h
107 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_sysaix.h
108 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_syshpux.h
109 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_sysosf1.h
110 silly gunzTarPerm extractEntry deps/libiconv/lib/canonical_syssolaris.h
111 silly gunzTarPerm extractEntry deps/libiconv/lib/ces_big5.h
112 silly gunzTarPerm extractEntry deps/libiconv/lib/ces_gbk.h
113 silly gunzTarPerm extractEntry deps/libiconv/lib/cjk_variants.h
114 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643.h
115 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_1.h
116 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_15.h
117 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_2.h
118 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_3.h
119 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_4.h
120 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_4a.h
121 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_4b.h
122 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_5.h
123 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_6.h
124 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_7.h
125 silly gunzTarPerm extractEntry deps/libiconv/lib/cns11643_inv.h
126 silly gunzTarPerm extractEntry deps/libiconv/lib/converters.h
127 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1046.h
128 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1124.h
129 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1125.h
130 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1129.h
131 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1131.h
132 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1133.h
133 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1161.h
134 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1162.h
135 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1163.h
136 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1250.h
137 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1251.h
138 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1252.h
139 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1253.h
140 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1254.h
141 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1255.h
142 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1256.h
143 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1257.h
144 silly gunzTarPerm extractEntry deps/libiconv/lib/cp1258.h
145 silly gunzTarPerm extractEntry deps/libiconv/lib/cp437.h
146 silly gunzTarPerm extractEntry deps/libiconv/lib/cp737.h
147 silly gunzTarPerm extractEntry deps/libiconv/lib/cp775.h
148 silly gunzTarPerm extractEntry deps/libiconv/lib/cp850.h
149 silly gunzTarPerm extractEntry deps/libiconv/lib/cp852.h
150 silly gunzTarPerm extractEntry deps/libiconv/lib/cp853.h
151 silly gunzTarPerm extractEntry deps/libiconv/lib/cp855.h
152 silly gunzTarPerm extractEntry deps/libiconv/lib/cp856.h
153 silly gunzTarPerm extractEntry deps/libiconv/lib/cp857.h
154 silly gunzTarPerm extractEntry deps/libiconv/lib/cp858.h
155 silly gunzTarPerm extractEntry deps/libiconv/lib/cp860.h
156 silly gunzTarPerm extractEntry deps/libiconv/lib/cp861.h
157 silly gunzTarPerm extractEntry deps/libiconv/lib/cp862.h
158 silly gunzTarPerm extractEntry deps/libiconv/lib/cp863.h
159 silly gunzTarPerm extractEntry deps/libiconv/lib/cp864.h
160 silly gunzTarPerm extractEntry deps/libiconv/lib/cp865.h
161 silly gunzTarPerm extractEntry deps/libiconv/lib/cp866.h
162 silly gunzTarPerm extractEntry deps/libiconv/lib/cp869.h
163 silly gunzTarPerm extractEntry deps/libiconv/lib/cp874.h
164 silly gunzTarPerm extractEntry deps/libiconv/lib/cp922.h
165 silly gunzTarPerm extractEntry deps/libiconv/lib/cp932.h
166 silly gunzTarPerm extractEntry deps/libiconv/lib/cp932ext.h
167 silly gunzTarPerm extractEntry deps/libiconv/lib/cp936.h
168 silly gunzTarPerm extractEntry deps/libiconv/lib/cp936ext.h
169 silly gunzTarPerm extractEntry deps/libiconv/lib/cp943.h
170 silly gunzTarPerm extractEntry deps/libiconv/lib/cp949.h
171 silly gunzTarPerm extractEntry deps/libiconv/lib/cp950.h
172 silly gunzTarPerm extractEntry deps/libiconv/lib/cp950ext.h
173 silly gunzTarPerm extractEntry deps/libiconv/lib/dec_hanyu.h
174 silly gunzTarPerm extractEntry deps/libiconv/lib/dec_kanji.h
175 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings.def
176 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings_aix.def
177 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings_dos.def
178 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings_extra.def
179 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings_local.def
180 silly gunzTarPerm extractEntry deps/libiconv/lib/encodings_osf1.def
181 silly gunzTarPerm extractEntry deps/libiconv/lib/euc_cn.h
182 silly gunzTarPerm extractEntry deps/libiconv/lib/euc_jisx0213.h
183 silly gunzTarPerm extractEntry deps/libiconv/lib/euc_jp.h
184 silly gunzTarPerm extractEntry deps/libiconv/lib/euc_kr.h
185 silly gunzTarPerm extractEntry deps/libiconv/lib/aliases.h
186 silly gunzTarPerm extractEntry deps/libiconv/lib/flags.h
187 silly gunzTarPerm extractEntry deps/libiconv/lib/flushwc.h
188 silly gunzTarPerm extractEntry deps/libiconv/lib/gb12345.h
189 silly gunzTarPerm extractEntry deps/libiconv/lib/gb12345ext.h
190 silly gunzTarPerm extractEntry deps/libiconv/lib/gb18030.h
191 silly gunzTarPerm extractEntry deps/libiconv/lib/gb18030ext.h
192 silly gunzTarPerm extractEntry deps/libiconv/lib/gb18030uni.h
193 silly gunzTarPerm extractEntry deps/libiconv/lib/gb2312.h
194 silly gunzTarPerm extractEntry deps/libiconv/lib/gbk.h
195 silly gunzTarPerm extractEntry deps/libiconv/lib/gbkext1.h
196 silly gunzTarPerm extractEntry deps/libiconv/lib/gbkext2.h
197 silly gunzTarPerm extractEntry deps/libiconv/lib/gbkext_inv.h
198 silly gunzTarPerm extractEntry deps/libiconv/lib/genaliases.c
199 silly gunzTarPerm extractEntry deps/libiconv/lib/genaliases2.c
200 silly gunzTarPerm extractEntry deps/libiconv/lib/genflags.c
201 silly gunzTarPerm extractEntry deps/libiconv/lib/gentranslit.c
202 silly gunzTarPerm extractEntry deps/libiconv/lib/georgian_academy.h
203 silly gunzTarPerm extractEntry deps/libiconv/lib/georgian_ps.h
204 silly gunzTarPerm extractEntry deps/libiconv/lib/hkscs1999.h
205 silly gunzTarPerm extractEntry deps/libiconv/lib/hkscs2001.h
206 silly gunzTarPerm extractEntry deps/libiconv/lib/hkscs2004.h
207 silly gunzTarPerm extractEntry deps/libiconv/lib/hkscs2008.h
208 silly gunzTarPerm extractEntry deps/libiconv/lib/hp_roman8.h
209 silly gunzTarPerm extractEntry deps/libiconv/lib/hz.h
210 silly gunzTarPerm extractEntry deps/libiconv/lib/iconv.c
211 silly gunzTarPerm extractEntry deps/libiconv/lib/iconv_open1.h
212 silly gunzTarPerm extractEntry deps/libiconv/lib/iconv_open2.h
213 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_cn.h
214 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_cnext.h
215 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_jp.h
216 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_jp1.h
217 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_jp2.h
218 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_jp3.h
219 silly gunzTarPerm extractEntry deps/libiconv/lib/iso2022_kr.h
220 silly gunzTarPerm extractEntry deps/libiconv/lib/iso646_cn.h
221 silly gunzTarPerm extractEntry deps/libiconv/lib/iso646_jp.h
222 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_1.h
223 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_10.h
224 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_11.h
225 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_13.h
226 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_14.h
227 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_15.h
228 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_16.h
229 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_2.h
230 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_3.h
231 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_4.h
232 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_5.h
233 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_6.h
234 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_7.h
235 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_8.h
236 silly gunzTarPerm extractEntry deps/libiconv/lib/iso8859_9.h
237 silly gunzTarPerm extractEntry deps/libiconv/lib/isoir165.h
238 silly gunzTarPerm extractEntry deps/libiconv/lib/isoir165ext.h
239 silly gunzTarPerm extractEntry deps/libiconv/lib/java.h
240 silly gunzTarPerm extractEntry deps/libiconv/lib/jisx0201.h
241 silly gunzTarPerm extractEntry deps/libiconv/lib/jisx0208.h
242 silly gunzTarPerm extractEntry deps/libiconv/lib/jisx0212.h
243 silly gunzTarPerm extractEntry deps/libiconv/lib/jisx0213.h
244 silly gunzTarPerm extractEntry deps/libiconv/lib/johab.h
245 silly gunzTarPerm extractEntry deps/libiconv/lib/johab_hangul.h
246 silly gunzTarPerm extractEntry deps/libiconv/lib/koi8_r.h
247 silly gunzTarPerm extractEntry deps/libiconv/lib/koi8_ru.h
248 silly gunzTarPerm extractEntry deps/libiconv/lib/koi8_t.h
249 silly gunzTarPerm extractEntry deps/libiconv/lib/koi8_u.h
250 silly gunzTarPerm extractEntry deps/libiconv/lib/ksc5601.h
251 silly gunzTarPerm extractEntry deps/libiconv/lib/loop_unicode.h
252 silly gunzTarPerm extractEntry deps/libiconv/lib/loop_wchar.h
253 silly gunzTarPerm extractEntry deps/libiconv/lib/loops.h
254 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_arabic.h
255 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_centraleurope.h
256 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_croatian.h
257 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_cyrillic.h
258 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_greek.h
259 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_hebrew.h
260 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_iceland.h
261 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_roman.h
262 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_romania.h
263 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_thai.h
264 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_turkish.h
265 silly gunzTarPerm extractEntry deps/libiconv/lib/mac_ukraine.h
266 silly gunzTarPerm extractEntry deps/libiconv/lib/mulelao.h
267 silly gunzTarPerm extractEntry deps/libiconv/lib/nextstep.h
268 silly gunzTarPerm extractEntry deps/libiconv/lib/pt154.h
269 silly gunzTarPerm extractEntry deps/libiconv/lib/relocatable.c
270 silly gunzTarPerm extractEntry deps/libiconv/lib/relocatable.h
271 silly gunzTarPerm extractEntry deps/libiconv/lib/riscos1.h
272 silly gunzTarPerm extractEntry deps/libiconv/lib/rk1048.h
273 silly gunzTarPerm extractEntry deps/libiconv/lib/shift_jisx0213.h
274 silly gunzTarPerm extractEntry deps/libiconv/lib/sjis.h
275 silly gunzTarPerm extractEntry deps/libiconv/lib/tcvn.h
276 silly gunzTarPerm extractEntry deps/libiconv/lib/tds565.h
277 silly gunzTarPerm extractEntry deps/libiconv/lib/tis620.h
278 silly gunzTarPerm extractEntry deps/libiconv/lib/translit.def
279 silly gunzTarPerm extractEntry deps/libiconv/lib/translit.h
280 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs2.h
281 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs2be.h
282 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs2internal.h
283 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs2le.h
284 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs2swapped.h
285 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs4.h
286 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs4be.h
287 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs4internal.h
288 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs4le.h
289 silly gunzTarPerm extractEntry deps/libiconv/lib/ucs4swapped.h
290 silly gunzTarPerm extractEntry deps/libiconv/lib/uhc_1.h
291 silly gunzTarPerm extractEntry deps/libiconv/lib/uhc_2.h
292 silly gunzTarPerm extractEntry deps/libiconv/lib/utf16.h
293 silly gunzTarPerm extractEntry deps/libiconv/lib/utf16be.h
294 silly gunzTarPerm extractEntry deps/libiconv/lib/utf16le.h
295 silly gunzTarPerm extractEntry deps/libiconv/lib/utf32.h
296 silly gunzTarPerm extractEntry deps/libiconv/lib/utf32be.h
297 silly gunzTarPerm extractEntry deps/libiconv/lib/utf32le.h
298 silly gunzTarPerm extractEntry deps/libiconv/lib/utf7.h
299 silly gunzTarPerm extractEntry deps/libiconv/lib/utf8.h
300 silly gunzTarPerm extractEntry deps/libiconv/lib/vietcomb.h
301 silly gunzTarPerm extractEntry deps/libiconv/lib/viscii.h
302 silly gunzTarPerm extractEntry lib/iconv.js
303 silly gunzTarPerm extractEntry src/binding.cc
304 silly gunzTarPerm extractEntry support/config.h
305 silly gunzTarPerm extractEntry support/iconv.h
306 silly gunzTarPerm extractEntry test/test-basic.js
307 silly gunzTarPerm extractEntry test/test-big-buffer.js
308 silly gunzTarPerm extractEntry test/test-stream.js
309 silly gunzTarPerm extractEntry test/fixtures/lorem-ipsum.txt
310 verbose write writing to /home/bossyang/node_projects/xmpp_test/node_modules/iconv/package.json
311 info preinstall iconv@2.1.11
312 verbose readDependencies loading dependencies from /home/bossyang/node_projects/xmpp_test/node_modules/iconv/package.json
313 silly prepareForInstallMany adding nan@~2.0.4 from iconv dependencies
314 verbose readDependencies loading dependencies from /home/bossyang/node_projects/xmpp_test/node_modules/iconv/package.json
315 silly cache add args [ 'nan@~2.0.4', null ]
316 verbose cache add spec nan@~2.0.4
317 silly cache add parsed spec Result {
317 silly cache add   raw: 'nan@~2.0.4',
317 silly cache add   scope: null,
317 silly cache add   name: 'nan',
317 silly cache add   rawSpec: '~2.0.4',
317 silly cache add   spec: '>=2.0.4 <2.1.0',
317 silly cache add   type: 'range' }
318 silly addNamed nan@>=2.0.4 <2.1.0
319 verbose addNamed ">=2.0.4 <2.1.0" is a valid semver range for nan
320 silly addNameRange { name: 'nan', range: '>=2.0.4 <2.1.0', hasData: false }
321 silly mapToRegistry name nan
322 silly mapToRegistry using default registry
323 silly mapToRegistry registry https://registry.npmjs.org/
324 silly mapToRegistry uri https://registry.npmjs.org/nan
325 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
326 verbose request uri https://registry.npmjs.org/nan
327 verbose request no auth needed
328 info attempt registry request try #1 at 2:12:04 PM
329 verbose etag "EEJEYBDBWDA07LWTXUI68JUWL"
330 http request GET https://registry.npmjs.org/nan
331 http 304 https://registry.npmjs.org/nan
332 silly get cb [ 304,
332 silly get   { date: 'Mon, 12 Oct 2015 06:12:05 GMT',
332 silly get     via: '1.1 varnish',
332 silly get     'cache-control': 'max-age=60',
332 silly get     etag: '"EEJEYBDBWDA07LWTXUI68JUWL"',
332 silly get     age: '29',
332 silly get     connection: 'keep-alive',
332 silly get     'x-served-by': 'cache-hkg6826-HKG',
332 silly get     'x-cache': 'HIT',
332 silly get     'x-cache-hits': '1',
332 silly get     'x-timer': 'S1444630325.149929,VS0,VE0',
332 silly get     vary: 'Accept' } ]
333 verbose etag https://registry.npmjs.org/nan from cache
334 verbose get saving nan to /home/bossyang/.npm/registry.npmjs.org/nan/.cache.json
335 silly addNameRange number 2 { name: 'nan', range: '>=2.0.4 <2.1.0', hasData: true }
336 silly addNameRange versions [ 'nan',
336 silly addNameRange   [ '0.3.0-wip',
336 silly addNameRange     '0.3.0-wip2',
336 silly addNameRange     '0.3.0',
336 silly addNameRange     '0.3.1',
336 silly addNameRange     '0.3.2',
336 silly addNameRange     '0.4.0',
336 silly addNameRange     '0.4.1',
336 silly addNameRange     '0.4.2',
336 silly addNameRange     '0.4.3',
336 silly addNameRange     '0.4.4',
336 silly addNameRange     '0.5.0',
336 silly addNameRange     '0.5.1',
336 silly addNameRange     '0.5.2',
336 silly addNameRange     '0.6.0',
336 silly addNameRange     '0.7.0',
336 silly addNameRange     '0.7.1',
336 silly addNameRange     '0.8.0',
336 silly addNameRange     '1.0.0',
336 silly addNameRange     '1.1.0',
336 silly addNameRange     '1.1.1',
336 silly addNameRange     '1.1.2',
336 silly addNameRange     '1.2.0',
336 silly addNameRange     '1.3.0',
336 silly addNameRange     '1.4.0',
336 silly addNameRange     '1.4.1',
336 silly addNameRange     '1.5.0',
336 silly addNameRange     '1.4.2',
336 silly addNameRange     '1.4.3',
336 silly addNameRange     '1.5.1',
336 silly addNameRange     '1.5.2',
336 silly addNameRange     '1.6.0',
336 silly addNameRange     '1.5.3',
336 silly addNameRange     '1.6.1',
336 silly addNameRange     '1.6.2',
336 silly addNameRange     '1.7.0',
336 silly addNameRange     '1.8.0',
336 silly addNameRange     '1.8.1',
336 silly addNameRange     '1.8.2',
336 silly addNameRange     '1.8.3',
336 silly addNameRange     '1.8.4',
336 silly addNameRange     '1.9.0',
336 silly addNameRange     '2.0.0',
336 silly addNameRange     '2.0.1',
336 silly addNameRange     '2.0.2',
336 silly addNameRange     '2.0.3',
336 silly addNameRange     '2.0.4',
336 silly addNameRange     '2.0.5',
336 silly addNameRange     '2.0.6',
336 silly addNameRange     '2.0.7',
336 silly addNameRange     '2.0.8',
336 silly addNameRange     '2.0.9',
336 silly addNameRange     '2.1.0' ] ]
337 silly addNamed nan@2.0.9
338 verbose addNamed "2.0.9" is a plain semver version for nan
339 silly cache afterAdd nan@2.0.9
340 verbose afterAdd /home/bossyang/.npm/nan/2.0.9/package/package.json not in flight; writing
341 verbose afterAdd /home/bossyang/.npm/nan/2.0.9/package/package.json written
342 silly install resolved [ { name: 'nan',
342 silly install resolved     version: '2.0.9',
342 silly install resolved     description: 'Native Abstractions for Node.js: C++ header for Node 0.8 -> 4 compatibility',
342 silly install resolved     main: 'include_dirs.js',
342 silly install resolved     repository: { type: 'git', url: 'git://github.com/nodejs/nan.git' },
342 silly install resolved     scripts:
342 silly install resolved      { test: 'tap --gc test/js/*-test.js',
342 silly install resolved        'rebuild-tests': 'pangyp rebuild --msvs_version=2013 --directory test',
342 silly install resolved        docs: 'doc/.build.sh' },
342 silly install resolved     contributors:
342 silly install resolved      [ [Object],
342 silly install resolved        [Object],
342 silly install resolved        [Object],
342 silly install resolved        [Object],
342 silly install resolved        [Object],
342 silly install resolved        [Object],
342 silly install resolved        [Object] ],
342 silly install resolved     devDependencies:
342 silly install resolved      { bindings: '~1.2.1',
342 silly install resolved        commander: '^2.8.1',
342 silly install resolved        glob: '^5.0.14',
342 silly install resolved        'node-gyp': '~2.0.2',
342 silly install resolved        pangyp: '~2.2.0',
342 silly install resolved        tap: '~0.7.1',
342 silly install resolved        xtend: '~4.0.0' },
342 silly install resolved     license: 'MIT',
342 silly install resolved     bugs: { url: 'https://github.com/nodejs/nan/issues' },
342 silly install resolved     homepage: 'https://github.com/nodejs/nan#readme',
342 silly install resolved     _id: 'nan@2.0.9',
342 silly install resolved     _shasum: 'd02a770f46778842cceb94e17cab31ffc7234a05',
342 silly install resolved     _resolved: 'https://registry.npmjs.org/nan/-/nan-2.0.9.tgz',
342 silly install resolved     _from: 'nan@>=2.0.4 <2.1.0',
342 silly install resolved     _npmVersion: '2.14.2',
342 silly install resolved     _nodeVersion: '4.0.0',
342 silly install resolved     _npmUser: { name: 'kkoopa', email: 'bbyholm@abo.fi' },
342 silly install resolved     maintainers: [ [Object], [Object] ],
342 silly install resolved     dist:
342 silly install resolved      { shasum: 'd02a770f46778842cceb94e17cab31ffc7234a05',
342 silly install resolved        tarball: 'http://registry.npmjs.org/nan/-/nan-2.0.9.tgz' },
342 silly install resolved     directories: {},
342 silly install resolved     readme: 'ERROR: No README data found!' } ]
343 info install nan@2.0.9 into /home/bossyang/node_projects/xmpp_test/node_modules/iconv
344 info installOne nan@2.0.9
345 verbose installOne of nan to /home/bossyang/node_projects/xmpp_test/node_modules/iconv not in flight; installing
346 verbose lock using /home/bossyang/.npm/_locks/nan-a2de26e8b703e21c.lock for /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
347 silly install write writing nan 2.0.9 to /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
348 verbose unbuild node_modules/iconv/node_modules/nan
349 silly gentlyRm /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan is being purged from base /home/bossyang/node_projects/xmpp_test
350 verbose gentlyRm don't care about contents; nuking /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
351 verbose tar unpack /home/bossyang/.npm/nan/2.0.9/package.tgz
352 verbose tar unpacking to /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
353 silly gentlyRm /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan is being purged
354 verbose gentlyRm don't care about contents; nuking /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
355 silly gunzTarPerm modes [ '775', '664' ]
356 silly gunzTarPerm extractEntry package.json
357 silly gunzTarPerm extractEntry README.md
358 silly gunzTarPerm extractEntry include_dirs.js
359 silly gunzTarPerm extractEntry nan_converters.h
360 silly gunzTarPerm extractEntry LICENSE.md
361 silly gunzTarPerm extractEntry .dntrc
362 silly gunzTarPerm extractEntry appveyor.yml
363 silly gunzTarPerm extractEntry doc/new.md
364 silly gunzTarPerm extractEntry doc/.build.sh
365 silly gunzTarPerm extractEntry doc/buffers.md
366 silly gunzTarPerm extractEntry doc/callback.md
367 silly gunzTarPerm extractEntry doc/converters.md
368 silly gunzTarPerm extractEntry doc/errors.md
369 silly gunzTarPerm extractEntry doc/maybe_types.md
370 silly gunzTarPerm extractEntry doc/methods.md
371 silly gunzTarPerm extractEntry doc/asyncworker.md
372 silly gunzTarPerm extractEntry doc/node_misc.md
373 silly gunzTarPerm extractEntry doc/persistent.md
374 silly gunzTarPerm extractEntry doc/scopes.md
375 silly gunzTarPerm extractEntry doc/script.md
376 silly gunzTarPerm extractEntry doc/string_bytes.md
377 silly gunzTarPerm extractEntry doc/v8_internals.md
378 silly gunzTarPerm extractEntry doc/v8_misc.md
379 silly gunzTarPerm extractEntry nan.h
380 silly gunzTarPerm extractEntry nan_callbacks.h
381 silly gunzTarPerm extractEntry nan_callbacks_12_inl.h
382 silly gunzTarPerm extractEntry nan_callbacks_pre_12_inl.h
383 silly gunzTarPerm extractEntry nan_converters_43_inl.h
384 silly gunzTarPerm extractEntry nan_converters_pre_43_inl.h
385 silly gunzTarPerm extractEntry nan_implementation_12_inl.h
386 silly gunzTarPerm extractEntry nan_implementation_pre_12_inl.h
387 silly gunzTarPerm extractEntry nan_maybe_43_inl.h
388 silly gunzTarPerm extractEntry nan_maybe_pre_43_inl.h
389 silly gunzTarPerm extractEntry nan_new.h
390 silly gunzTarPerm extractEntry nan_object_wrap.h
391 silly gunzTarPerm extractEntry nan_persistent_12_inl.h
392 silly gunzTarPerm extractEntry nan_persistent_pre_12_inl.h
393 silly gunzTarPerm extractEntry nan_string_bytes.h
394 silly gunzTarPerm extractEntry nan_weak.h
395 silly gunzTarPerm extractEntry CHANGELOG.md
396 silly gunzTarPerm extractEntry tools/package.json
397 silly gunzTarPerm extractEntry tools/README.md
398 silly gunzTarPerm extractEntry tools/1to2.js
399 verbose write writing to /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan/package.json
400 info preinstall nan@2.0.9
401 verbose readDependencies loading dependencies from /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan/package.json
402 verbose readDependencies loading dependencies from /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan/package.json
403 silly install resolved []
404 verbose about to build /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
405 info build /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
406 info linkStuff nan@2.0.9
407 silly linkStuff nan@2.0.9 has /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules as its parent node_modules
408 verbose linkBins nan@2.0.9
409 verbose linkMans nan@2.0.9
410 verbose rebuildBundles nan@2.0.9
411 info install nan@2.0.9
412 info postinstall nan@2.0.9
413 verbose unlock done using /home/bossyang/.npm/_locks/nan-a2de26e8b703e21c.lock for /home/bossyang/node_projects/xmpp_test/node_modules/iconv/node_modules/nan
414 verbose about to build /home/bossyang/node_projects/xmpp_test/node_modules/iconv
415 info build /home/bossyang/node_projects/xmpp_test/node_modules/iconv
416 info linkStuff iconv@2.1.11
417 silly linkStuff iconv@2.1.11 has /home/bossyang/node_projects/xmpp_test/node_modules as its parent node_modules
418 verbose linkBins iconv@2.1.11
419 verbose linkMans iconv@2.1.11
420 verbose rebuildBundles iconv@2.1.11
421 verbose rebuildBundles [ 'nan' ]
422 info install iconv@2.1.11
423 verbose unsafe-perm in lifecycle true
424 info iconv@2.1.11 Failed to exec install script
425 verbose unlock done using /home/bossyang/.npm/_locks/iconv-3b095812edf26b8c.lock for /home/bossyang/node_projects/xmpp_test/node_modules/iconv
426 verbose stack Error: iconv@2.1.11 install: `node-gyp rebuild`
426 verbose stack Exit status 1
426 verbose stack     at EventEmitter.<anonymous> (/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
426 verbose stack     at emitTwo (events.js:87:13)
426 verbose stack     at EventEmitter.emit (events.js:172:7)
426 verbose stack     at ChildProcess.<anonymous> (/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/npm/lib/utils/spawn.js:24:14)
426 verbose stack     at emitTwo (events.js:87:13)
426 verbose stack     at ChildProcess.emit (events.js:172:7)
426 verbose stack     at maybeClose (internal/child_process.js:818:16)
426 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
427 verbose pkgid iconv@2.1.11
428 verbose cwd /home/bossyang/node_projects/xmpp_test
429 error Linux 3.8.13-98.4.1.el6uek.x86_64
430 error argv "/home/bossyang/.nvm/versions/node/v4.1.2/bin/node" "/home/bossyang/.nvm/versions/node/v4.1.2/bin/npm" "install" "iconv"
431 error node v4.1.2
432 error npm  v2.14.4
433 error code ELIFECYCLE
434 error iconv@2.1.11 install: `node-gyp rebuild`
434 error Exit status 1
435 error Failed at the iconv@2.1.11 install script 'node-gyp rebuild'.
435 error This is most likely a problem with the iconv package,
435 error not with npm itself.
435 error Tell the author that this fails on your system:
435 error     node-gyp rebuild
435 error You can get their info via:
435 error     npm owner ls iconv
435 error There is likely additional logging output above.
436 verbose exit [ 1, true ]
437 verbose unbuild node_modules/iconv
438 info preuninstall iconv@2.1.11
439 info uninstall iconv@2.1.11
440 verbose unbuild rmStuff iconv@2.1.11 from /home/bossyang/node_projects/xmpp_test/node_modules
441 info postuninstall iconv@2.1.11
442 silly gentlyRm /home/bossyang/node_projects/xmpp_test/node_modules/iconv is being purged from base /home/bossyang/node_projects/xmpp_test
443 verbose gentlyRm don't care about contents; nuking /home/bossyang/node_projects/xmpp_test/node_modules/iconv
444 silly vacuum-fs purging /home/bossyang/node_projects/xmpp_test/node_modules/iconv
445 silly vacuum-fs removing /home/bossyang/node_projects/xmpp_test/node_modules
446 silly vacuum-fs finished vacuuming up to /home/bossyang/node_projects/xmpp_test
bnoordhuis commented 8 years ago

@bossyang Thanks. Annoyingly, npm didn't log the actual node-gyp error. What happens when you clone the repo, run npm install, followed by node-gyp rebuild?

bossyang commented 8 years ago

node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.6
gyp info using node@4.1.2 | linux | x64
(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
gyp info spawn python
gyp info spawn args [ '/usr/bin/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/bossyang/node_projects/xmpp_test/node-iconv/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon-rpm.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/share/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/usr/share/node',
gyp info spawn args   '-Dmodule_root_dir=/home/bossyang/node_projects/xmpp_test/node-iconv',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/bossyang/node_projects/xmpp_test/node-iconv/build'
  CC(target) Release/obj.target/libiconv/deps/libiconv/lib/iconv.o
  AR(target) Release/obj.target/iconv.a
  CXX(target) Release/obj.target/iconv/src/binding.o
In file included from ../src/binding.cc:18:
../node_modules/nan/nan.h:316: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
make: *** [Release/obj.target/iconv/src/binding.o] Error 1
make: Leaving directory `/home/bossyang/node_projects/xmpp_test/node-iconv/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267: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 3.8.13-98.4.1.el6uek.x86_64
gyp ERR! command "/home/bossyang/.nvm/versions/node/v4.1.2/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/bossyang/node_projects/xmpp_test/node-iconv
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
bnoordhuis commented 8 years ago

-Dnode_root_dir=/usr/share/node

node-gyp is picking up what I suspect is the distro-maintained version of node.js and that's missing the REPLACE_INVALID_UTF8 patch. Running export npm_config_nodedir=$HOME/.nvm/versions/node/v4.1.2 should fix it.

Note that this is not an issue with node-iconv, but with nan, and it's not really nan's fault either - there is no way for it to distinguish between versions with the patch, and ones without.

node-gyp -v v0.10.6

That is a really, really ancient version of node-gyp.

bossyang commented 8 years ago

After export npm_config_nodedir, the error log is as follows. So this is a node-nan issue?

gyp info it worked if it ends with ok
gyp info using node-gyp@3.0.3
gyp info using node@4.1.2 | linux | x64
gyp info spawn python2
gyp info spawn args [ '/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/bossyang/node_projects/xmpp_test/node-iconv/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/bossyang/.nvm/versions/node/v4.1.2/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/bossyang/.nvm/versions/node/v4.1.2',
gyp info spawn args   '-Dnode_gyp_dir=/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/bossyang/node_projects/xmpp_test/node-iconv',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/bossyang/node_projects/xmpp_test/node-iconv/build'
  CC(target) Release/obj.target/libiconv/deps/libiconv/lib/iconv.o
  AR(target) Release/obj.target/iconv.a
  COPY Release/iconv.a
  CXX(target) Release/obj.target/iconv/src/binding.o
In file included from /home/bossyang/.nvm/versions/node/v4.1.2/include/node/node.h:42,
                 from ../node_modules/nan/nan.h:24,
                 from ../src/binding.cc:18:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: At global scope:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:469: error: expected unqualified-id before ‘using’
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: At global scope:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:852: error: expected unqualified-id before ‘using’
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:7151: error: ‘nullptr’ was not declared in this scope
In file included from ../node_modules/nan/nan.h:182,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_maybe_43_inl.h: At global scope:
../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:60: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:65: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:70: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:77: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:84: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:92: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:99: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:109: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:115: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:119: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:126: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:131: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:136: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:140: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:146: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:151: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:157: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:163: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:169: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:175: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:181: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:187: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:195: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:202: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:206: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:210: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:214: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:218: error: expected initializer before ‘<’ token
In file included from ../node_modules/nan/nan.h:187,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../node_modules/nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type
../node_modules/nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_converters.h:26: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:27: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:28: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:29: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:30: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:31: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:32: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:42: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:43: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:44: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:45: error: ‘return_t’ does not name a type
../node_modules/nan/nan_converters.h:46: error: ‘return_t’ does not name a type
In file included from ../node_modules/nan/nan_converters.h:59,
                 from ../node_modules/nan/nan.h:187,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Boolean>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Number>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::String>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Object>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Integer>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Uint32>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactory<v8::Int32>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type
../node_modules/nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type
In file included from ../node_modules/nan/nan.h:188,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’:
../node_modules/nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’:
../node_modules/nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../node_modules/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’:
../node_modules/nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../node_modules/nan/nan_new.h: At global scope:
../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type
../node_modules/nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token
../node_modules/nan/nan_new.h:75: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:141: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:147: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:148: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:160: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:161: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:162: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:163: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:165: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:166: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:182: error: ‘return_t’ does not name a type
../node_modules/nan/nan_new.h:183: error: ‘return_t’ does not name a type
In file included from ../node_modules/nan/nan_new.h:189,
                 from ../node_modules/nan/nan.h:188,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Date>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’:
../node_modules/nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan_implementation_12_inl.h: At global scope:
../node_modules/nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::Script>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
../node_modules/nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::UnboundScript>’ does not name a type
In file included from ../node_modules/nan/nan.h:188,
                 from ../src/binding.cc:18:
../node_modules/nan/nan_new.h:291: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:297: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:303: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:309: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:315: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:321: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::String>’ does not name a type
../node_modules/nan/nan_new.h:327: error: ‘return_t’ in class ‘Nan::imp::Factory<v8::RegExp>’ does not name a type
In file included from ../src/binding.cc:18:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:
../node_modules/nan/nan.h:639: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:
../node_modules/nan/nan.h:639: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:
../node_modules/nan/nan.h:640: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:
../node_modules/nan/nan.h:640: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:
../node_modules/nan/nan.h:641: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:
../node_modules/nan/nan.h:641: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:
../node_modules/nan/nan.h:642: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:
../node_modules/nan/nan.h:642: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:
../node_modules/nan/nan.h:643: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:
../node_modules/nan/nan.h:643: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:651: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:673: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:689: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:702: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:719: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:725: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:733: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:740: error: expected initializer before ‘<’ token
../node_modules/nan/nan.h:746: error: expected initializer before ‘<’ token
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’
../node_modules/nan/nan.h:1366: error:   in call to ‘Set’
../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../node_modules/nan/nan.h:1488: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../node_modules/nan/nan.h:1506: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:
../node_modules/nan/nan.h:1540: error: no matching function for call to ‘New(const char*)’
../node_modules/nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:1829: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available
../node_modules/nan/nan.h:1829: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../node_modules/nan/nan.h:1830: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:1842: error: ‘GetFunction’ was not declared in this scope
../node_modules/nan/nan.h:1843: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../node_modules/nan/nan.h:1868: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1911: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:1959: error: ‘NewInstance’ was not declared in this scope
../node_modules/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2029: error: ‘NewInstance’ was not declared in this scope
In file included from ../src/binding.cc:18:
../node_modules/nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))’:
../node_modules/nan/nan.h:2090: error: no matching function for call to ‘New(const char*&)’
../node_modules/nan/nan.h:2091: error: ‘GetFunction’ was not declared in this scope
/home/bossyang/.nvm/versions/node/v4.1.2/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’
../node_modules/nan/nan.h:2091: error:   in call to ‘Set’
../node_modules/nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2098: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’
../node_modules/nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:
../node_modules/nan/nan.h:2111: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../node_modules/nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:
../node_modules/nan/nan.h:2117: error: ‘class v8::Local<v8::Boolean>’ has no member named ‘ToLocalChecked’
../src/binding.cc: At global scope:
../src/binding.cc:31: error: ‘v8::Handle’ has not been declared
../src/binding.cc:61: error: ‘Handle’ has not been declared
../src/binding.cc:61: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/binding.cc: In static member function ‘static void<unnamed>::Iconv::Initialize(int)’:
../src/binding.cc:66: error: ‘obj’ was not declared in this scope
../src/binding.cc:66: error: no matching function for call to ‘New(const char [5])’
../src/binding.cc:68: error: no matching function for call to ‘New(const char [8])’
../src/binding.cc:72: error: no matching function for call to ‘New(const char [7])’
../src/binding.cc:73: error: no matching function for call to ‘New(const char [7])’
../src/binding.cc:74: error: no matching function for call to ‘New(const char [6])’
make: *** [Release/obj.target/iconv/src/binding.o] Error 1
make: Leaving directory `/home/bossyang/node_projects/xmpp_test/node-iconv/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/bossyang/.nvm/versions/node/v4.1.2/lib/node_modules/node-gyp/lib/build.js:270: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 3.8.13-98.4.1.el6uek.x86_64
gyp ERR! command "/home/bossyang/.nvm/versions/node/v4.1.2/bin/node" "/home/bossyang/.nvm/versions/node/v4.1.2/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/bossyang/node_projects/xmpp_test/node-iconv
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
bnoordhuis commented 8 years ago

Make sure you use a C++11-capable compiler, g++ >= 4.8.2 or clang >= 3.4.

bossyang commented 8 years ago

After installing gcc-5.2.0, it works even without setting environment variables npm_config_nodedir. I also removed system-wide rpm.

bnoordhuis commented 8 years ago

Nice to hear it's solved. Closing.

andrydl commented 8 years ago

Hello. I have a problem. I can not install iconv , under centos 6.7 node 4.2.2., gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --with-mpc=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)

npm ERR! Linulx 2.6.32-431.el6.x86_64 npm ERR! argv "/root/.nvm/versions/node/v4.2.2/bin/node" "/root/.nvm/versions/node/v4.2.2/bin/npm" "install" npm ERR! node v4.2.2 npm ERR! npm v2.14.7 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! iconv@2.1.11 install: node-gyp rebuild npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the iconv@2.1.11 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the iconv 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 iconv npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /usr/pg-monitor/npm-debug.log

bnoordhuis commented 8 years ago

For the record, @andrydl posted #136 just now.

andrydl commented 8 years ago

If you install nde 4.2.2 from nvm . You needed to install node-gyp, and then install iconv.