読者です 読者をやめる 読者になる 読者になる

Mirakurunを導入できない

なにやらMirakurunとかいうチューナー管理?プログラムが人気らしいので導入しようとしてみたお話

www.jifu-labo.net



sudo npm install arib-b25-stream-test -g --unsafe
のところでエラーが出ます。

normalizeTree ▄ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░normalizeTree → install ▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░normalizeTree → network ▐ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░normalizeTree → 304 ▄ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░normalizeTree → headers ▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░loadRequestedDeps → get ▌ ╢████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░diffTrees → generateActio ▌ ╢████████████████████████████

> arib-b25-stream-test@0.2.6 preinstall /usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6
> make clean && make && mkdir bin && cp src/b25 bin/

cd src; make clean
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' に入ります
gcc -fPIC -MM arib_std_b25.c b_cas_card.c multi2.c ts_section_parser.c td.c > Makefile.dep
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' から出ます
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' に入ります
rm -f arib_std_b25.o b_cas_card.o multi2.o ts_section_parser.o td.o b25 libarib25.so Makefile.dep
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' から出ます
cd src; make all
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' に入ります
gcc -fPIC -MM arib_std_b25.c b_cas_card.c multi2.c ts_section_parser.c td.c > Makefile.dep
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' から出ます
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' に入ります
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o arib_std_b25.o arib_std_b25.c
arib_std_b25.c:1793:13: warning: ‘dump_pts’ defined but not used [-Wunused-function]
static void dump_pts(uint8_t *src, int32_t crypt)
^
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o b_cas_card.o b_cas_card.c
In file included from /usr/include/PCSC/winscard.h:20:0,
from b_cas_card.c:12:
b_cas_card.c: In function ‘get_id_b_cas_card’:
/usr/include/PCSC/pcsclite.h:74:24: error: ‘g_rgSCardT1Pci’ undeclared (first use in this function)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:240:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
/usr/include/PCSC/pcsclite.h:74:24: note: each undeclared identifier is reported only once for each function it appears in
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:240:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
b_cas_card.c:270:8: warning: variable ‘check_code’ set but not used [-Wunused-but-set-variable]
int check_code;
^
b_cas_card.c:269:8: warning: variable ‘version’ set but not used [-Wunused-but-set-variable]
int version;
^
b_cas_card.c:268:8: warning: variable ‘maker_id’ set but not used [-Wunused-but-set-variable]
int maker_id;
^
In file included from /usr/include/PCSC/winscard.h:20:0,
from b_cas_card.c:12:
b_cas_card.c: In function ‘get_pwr_on_ctrl_b_cas_card’:
/usr/include/PCSC/pcsclite.h:74:24: error: ‘g_rgSCardT1Pci’ undeclared (first use in this function)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:314:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
b_cas_card.c: In function ‘proc_ecm_b_cas_card’:
/usr/include/PCSC/pcsclite.h:74:24: error: ‘g_rgSCardT1Pci’ undeclared (first use in this function)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:383:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
b_cas_card.c: In function ‘proc_emm_b_cas_card’:
/usr/include/PCSC/pcsclite.h:74:24: error: ‘g_rgSCardT1Pci’ undeclared (first use in this function)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:434:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
b_cas_card.c: In function ‘connect_card’:
/usr/include/PCSC/pcsclite.h:74:24: error: ‘g_rgSCardT1Pci’ undeclared (first use in this function)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
^
b_cas_card.c:608:15: note: in expansion of macro ‘SCARD_PCI_T1’
memcpy(&sir, SCARD_PCI_T1, sizeof(sir));
^
make[1]: *** [b_cas_card.o] エラー 1
make[1]: ディレクトリ `/usr/local/lib/node_modules/.staging/arib-b25-stream-test-f66723b6/src' から出ます
make: *** [all] エラー 2
preinstall:arib-b25-strea ▐ ╢█████████████████████████████
npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "arib-b25-stream-test" "-g" "--unsafe"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE

npm ERR! arib-b25-stream-test@0.2.6 preinstall: `make clean && make && mkdir bin && cp src/b25 bin/`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the arib-b25-stream-test@0.2.6 preinstall script 'make clean && make && mkdir bin && cp src/b25 bin/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the arib-b25-stream-test package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make clean && make && mkdir bin && cp src/b25 bin/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs arib-b25-stream-test
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls arib-b25-stream-test
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/bern/npm-debug.log

npm-debug.logを見てみてもよくわからない・・・
誰か分かりそうな人いたら教えて下さい・・・

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'bugs',
1 verbose cli   'arib-b25-stream-test' ]
2 info using npm@3.9.5
3 info using node@v6.2.2
4 verbose config Skipping project config: /home/bern/.npmrc. (matches userconfig)
5 silly fetchPackageMetaData arib-b25-stream-test
6 silly fetchNamedPackageData arib-b25-stream-test
7 silly mapToRegistry name arib-b25-stream-test
8 silly mapToRegistry using default registry
9 silly mapToRegistry registry https://registry.npmjs.org/
10 silly mapToRegistry data Result {
10 silly mapToRegistry   raw: 'arib-b25-stream-test',
10 silly mapToRegistry   scope: null,
10 silly mapToRegistry   name: 'arib-b25-stream-test',
10 silly mapToRegistry   rawSpec: '',
10 silly mapToRegistry   spec: 'latest',
10 silly mapToRegistry   type: 'tag' }
11 silly mapToRegistry uri https://registry.npmjs.org/arib-b25-stream-test
12 verbose request uri https://registry.npmjs.org/arib-b25-stream-test
13 verbose request no auth needed
14 info attempt registry request try #1 at 09:05:02
15 verbose request id c1c9d5a693afe3b9
16 verbose etag "9MSOXCRY0Q0ULF7JS5145W9B3"
17 http request GET https://registry.npmjs.org/arib-b25-stream-test
18 http 304 https://registry.npmjs.org/arib-b25-stream-test
19 verbose headers   'cache-control': 'max-age=300',
19 verbose headers   etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
19 verbose headers   'x-served-by': 'cache-itm7422-ITM',
19 verbose headers   'x-cache': 'HIT',
19 verbose headers   'x-cache-hits': '1',
19 verbose headers   'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get   { date: 'Sat, 02 Jul 2016 00:05:03 GMT',
20 silly get     via: '1.1 varnish',
20 silly get     'cache-control': 'max-age=300',
20 silly get     etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
20 silly get     age: '113',
20 silly get     connection: 'keep-alive',
20 silly get     'x-served-by': 'cache-itm7422-ITM',
20 silly get     'x-cache': 'HIT',
20 silly get     'x-cache-hits': '1',
20 silly get     'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get     vary: 'Accept-Encoding' } ]
21 verbose etag https://registry.npmjs.org/arib-b25-stream-test from cache
23 verbose correctMkdir /home/bern/.npm correctMkdir not in flight; initializing
24 silly bugs url https://www.npmjs.org/package/arib-b25-stream-test
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
25 verbose stack
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'bugs',
1 verbose cli   'arib-b25-stream-test' ]
2 info using npm@3.9.5
3 info using node@v6.2.2
4 verbose config Skipping project config: /home/bern/.npmrc. (matches userconfig)
5 silly fetchPackageMetaData arib-b25-stream-test
6 silly fetchNamedPackageData arib-b25-stream-test
7 silly mapToRegistry name arib-b25-stream-test
8 silly mapToRegistry using default registry
9 silly mapToRegistry registry https://registry.npmjs.org/
10 silly mapToRegistry data Result {
10 silly mapToRegistry   raw: 'arib-b25-stream-test',
10 silly mapToRegistry   scope: null,
10 silly mapToRegistry   name: 'arib-b25-stream-test',
10 silly mapToRegistry   rawSpec: '',
10 silly mapToRegistry   spec: 'latest',
10 silly mapToRegistry   type: 'tag' }
11 silly mapToRegistry uri https://registry.npmjs.org/arib-b25-stream-test
12 verbose request uri https://registry.npmjs.org/arib-b25-stream-test
13 verbose request no auth needed
14 info attempt registry request try #1 at 09:05:02
15 verbose request id c1c9d5a693afe3b9
16 verbose etag "9MSOXCRY0Q0ULF7JS5145W9B3"
17 http request GET https://registry.npmjs.org/arib-b25-stream-test
18 http 304 https://registry.npmjs.org/arib-b25-stream-test
19 verbose headers   'cache-control': 'max-age=300',
19 verbose headers   etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
19 verbose headers   'x-served-by': 'cache-itm7422-ITM',
19 verbose headers   'x-cache': 'HIT',
19 verbose headers   'x-cache-hits': '1',
19 verbose headers   'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get   { date: 'Sat, 02 Jul 2016 00:05:03 GMT',
20 silly get     via: '1.1 varnish',
20 silly get     'cache-control': 'max-age=300',
20 silly get     etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
20 silly get     age: '113',
20 silly get     connection: 'keep-alive',
20 silly get     'x-served-by': 'cache-itm7422-ITM',
20 silly get     'x-cache': 'HIT',
20 silly get     'x-cache-hits': '1',
20 silly get     'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get     vary: 'Accept-Encoding' } ]
21 verbose etag https://registry.npmjs.org/arib-b25-stream-test from cache
23 verbose correctMkdir /home/bern/.npm correctMkdir not in flight; initializing
24 silly bugs url https://www.npmjs.org/package/arib-b25-stream-test
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
25 verbose stack
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'bugs',
1 verbose cli   'arib-b25-stream-test' ]
2 info using npm@3.9.5
3 info using node@v6.2.2
4 verbose config Skipping project config: /home/bern/.npmrc. (matches userconfig)
5 silly fetchPackageMetaData arib-b25-stream-test
6 silly fetchNamedPackageData arib-b25-stream-test
7 silly mapToRegistry name arib-b25-stream-test
8 silly mapToRegistry using default registry
9 silly mapToRegistry registry https://registry.npmjs.org/
10 silly mapToRegistry data Result {
10 silly mapToRegistry   raw: 'arib-b25-stream-test',
10 silly mapToRegistry   scope: null,
10 silly mapToRegistry   name: 'arib-b25-stream-test',
10 silly mapToRegistry   rawSpec: '',
10 silly mapToRegistry   spec: 'latest',
10 silly mapToRegistry   type: 'tag' }
11 silly mapToRegistry uri https://registry.npmjs.org/arib-b25-stream-test
12 verbose request uri https://registry.npmjs.org/arib-b25-stream-test
13 verbose request no auth needed
14 info attempt registry request try #1 at 09:05:02
15 verbose request id c1c9d5a693afe3b9
16 verbose etag "9MSOXCRY0Q0ULF7JS5145W9B3"
17 http request GET https://registry.npmjs.org/arib-b25-stream-test
18 http 304 https://registry.npmjs.org/arib-b25-stream-test
19 verbose headers   'cache-control': 'max-age=300',
19 verbose headers   etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
19 verbose headers   'x-served-by': 'cache-itm7422-ITM',
19 verbose headers   'x-cache': 'HIT',
19 verbose headers   'x-cache-hits': '1',
19 verbose headers   'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get   { date: 'Sat, 02 Jul 2016 00:05:03 GMT',
20 silly get     via: '1.1 varnish',
20 silly get     'cache-control': 'max-age=300',
20 silly get     etag: '"9MSOXCRY0Q0ULF7JS5145W9B3"',
20 silly get     age: '113',
20 silly get     connection: 'keep-alive',
20 silly get     'x-served-by': 'cache-itm7422-ITM',
20 silly get     'x-cache': 'HIT',
20 silly get     'x-cache-hits': '1',
20 silly get     'x-timer': 'S1467417903.034156,VS0,VE0',
20 silly get     vary: 'Accept-Encoding' } ]
21 verbose etag https://registry.npmjs.org/arib-b25-stream-test from cache
23 verbose correctMkdir /home/bern/.npm correctMkdir not in flight; initializing
24 silly bugs url https://www.npmjs.org/package/arib-b25-stream-test
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
25 verbose stack /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
25 verbose stack
25 verbose stack     at ChildProcess.exithandler (child_process.js:207:12)
25 verbose stack     at emitTwo (events.js:106:13)
25 verbose stack     at ChildProcess.emit (events.js:191:7)
25 verbose stack     at maybeClose (internal/child_process.js:852:16)
25 verbose stack     at Socket.<anonymous> (internal/child_process.js:323:11)
25 verbose stack     at emitOne (events.js:96:13)
25 verbose stack     at Socket.emit (events.js:188:7)
25 verbose stack     at Pipe._handle.close [as _onclose] (net.js:492:12)
26 verbose cwd /home/bern
27 error Linux 3.13.0-24-generic
28 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "bugs" "arib-b25-stream-test"
29 error node v6.2.2
30 error npm  v3.9.5
31 error code 3
32 error Command failed: xdg-open https://www.npmjs.org/package/arib-b25-stream-test
32 error /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
32 error /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
32 error /usr/bin/xdg-open: 461: /usr/bin/xdg-open: lynx: not found
32 error /usr/bin/xdg-open: 461: /usr/bin/xdg-open: w3m: not found
32 error xdg-open: no method available for opening 'https://www.npmjs.org/package/arib-b25-stream-test'
33 error If you need help, you may report this error at:
33 error     <https://github.com/npm/npm/issues>
34 verbose exit [ 1, true ]