質問編集履歴

2

エラー内容の追加

2019/02/23 05:55

投稿

sentakuki
sentakuki

スコア22

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,151 @@
47
47
  ubuntu 16.04
48
48
 
49
49
  バーチャルボックスから起動しています。
50
+
51
+
52
+
53
+
54
+
55
+ ご指摘して頂いた部分の修正しました。
56
+
57
+ npm install の際にエラーが出てしまいました。お答えいただける助かります。
58
+
59
+
60
+
61
+
62
+
63
+ ```Linux
64
+
65
+ > socketwatcher@0.3.0 install /home/k/dasher/node_modules/socketwatcher
66
+
67
+ > node-gyp rebuild
68
+
69
+
70
+
71
+ make: ディレクトリ '/home/k/dasher/node_modules/socketwatcher/build' に入ります
72
+
73
+ CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
74
+
75
+ ../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’:
76
+
77
+ ../socket_watcher.cpp:77:60: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
78
+
79
+ Nan::MakeCallback(watcher->handle(), callback, argc, argv);
80
+
81
+ ^
82
+
83
+ In file included from ../socket_watcher.hpp:8:0,
84
+
85
+ from ../socket_watcher.cpp:5:
86
+
87
+ ../../nan/nan.h:959:46: note: declared here
88
+
89
+ NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
90
+
91
+ ^~~~~~~~~~~~
92
+
93
+ SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
94
+
95
+ COPY Release/socketwatcher.node
96
+
97
+ make: ディレクトリ '/home/ユーザー名/dasher/node_modules/socketwatcher/build' から出ます
98
+
99
+
100
+
101
+ > pcap@2.1.0 install /home/ユーザー名/dasher/node_modules/pcap
102
+
103
+ > node-gyp rebuild
104
+
105
+
106
+
107
+ make: ディレクトリ '/home/ユーザー名/dasher/node_modules/pcap/build' に入ります
108
+
109
+ CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
110
+
111
+ ../pcap_binding.cc:2:10: fatal error: pcap/pcap.h: そのようなファイルやディレクトリはありません
112
+
113
+ #include <pcap/pcap.h>
114
+
115
+ ^~~~~~~~~~~~~
116
+
117
+ compilation terminated.
118
+
119
+ pcap_binding.target.mk:96: recipe for target 'Release/obj.target/pcap_binding/pcap_binding.o' failed
120
+
121
+ make: *** [Release/obj.target/pcap_binding/pcap_binding.o] Error 1
122
+
123
+ make: ディレクトリ '/home/ユーザー名/dasher/node_modules/pcap/build' から出ます
124
+
125
+ gyp ERR! build error
126
+
127
+ gyp ERR! stack Error: `make` failed with exit code: 2
128
+
129
+ gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:258:23)
130
+
131
+ gyp ERR! stack at emitTwo (events.js:126:13)
132
+
133
+ gyp ERR! stack at ChildProcess.emit (events.js:214:7)
134
+
135
+ gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
136
+
137
+ gyp ERR! System Linux 4.15.0-20-generic
138
+
139
+ gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
140
+
141
+ gyp ERR! cwd /home/k/dasher/node_modules/pcap
142
+
143
+ gyp ERR! node -v v8.10.0
144
+
145
+ gyp ERR! node-gyp -v v3.6.2
146
+
147
+ gyp ERR! not ok
148
+
149
+ npm ERR! Linux 4.15.0-20-generic
150
+
151
+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
152
+
153
+ npm ERR! node v8.10.0
154
+
155
+ npm ERR! npm v3.5.2
156
+
157
+ npm ERR! code ELIFECYCLE
158
+
159
+
160
+
161
+ npm ERR! pcap@2.1.0 install: `node-gyp rebuild`
162
+
163
+ npm ERR! Exit status 1
164
+
165
+ npm ERR!
166
+
167
+ npm ERR! Failed at the pcap@2.1.0 install script 'node-gyp rebuild'.
168
+
169
+ npm ERR! Make sure you have the latest version of node.js and npm installed.
170
+
171
+ npm ERR! If you do, this is most likely a problem with the pcap package,
172
+
173
+ npm ERR! not with npm itself.
174
+
175
+ npm ERR! Tell the author that this fails on your system:
176
+
177
+ npm ERR! node-gyp rebuild
178
+
179
+ npm ERR! You can get information on how to open an issue for this project with:
180
+
181
+ npm ERR! npm bugs pcap
182
+
183
+ npm ERR! Or if that isn't available, you can get their info via:
184
+
185
+ npm ERR! npm owner ls pcap
186
+
187
+ npm ERR! There is likely additional logging output above.
188
+
189
+
190
+
191
+ npm ERR! Please include the following file with any support request:
192
+
193
+ npm ERR! /home/ユーザー名/dasher/npm-debug.log
194
+
195
+
196
+
197
+ ```

1

ご指摘頂いた部分を修正しました。

2019/02/23 05:55

投稿

sentakuki
sentakuki

スコア22

test CHANGED
File without changes
test CHANGED
@@ -18,6 +18,8 @@
18
18
 
19
19
  実行した結果
20
20
 
21
+ ```Linux
22
+
21
23
  module.js:549
22
24
 
23
25
  throw err;
@@ -36,6 +38,8 @@
36
38
 
37
39
 
38
40
 
41
+ ```
42
+
39
43
  動かし方がわかる方教えて頂けないでしょうか?よろしくお願いします。
40
44
 
41
45