티스토리 뷰
node.js 사용하다가 gyp 이용하는 모듈 설치시 오류.
$ npm install base64
.
.
.
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/ec2-user/.nvm/v0.10.26/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.4.82-69.112.amzn1.x86_64
gyp ERR! command "node" "/home/ec2-user/.nvm/v0.10.26/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
이런 오류는 필시 python2.6을 사용할 때 나온다. script_main은 python2.7에 딸린 모듈에는 있으므로, 아래와 같은 방법으로 시도해 보자스라.
$ PYTHON=python27 npm install base64
끝.
- Total
- Today
- Yesterday
- 대화
- Tattertools plugin
- SSO
- ssh
- SVN
- 식물
- 킹벤자민
- OpenID
- 디버깅
- Linux
- 커피
- 덴드롱
- JavaScript
- 수선화
- VIM
- 클레로덴드럼
- nodejs
- perl
- TCP/IP
- tattertools
- url
- writely
- 벤자민
- Subversion
- 퀴즈
- BlogAPI
- MySQL
- 오픈소스
- macosx
- 구근
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |