2016-06-17 7 views
1

나는 git repo에서 VScode 1.2 브랜치를 컴파일하려고한다. 플랫폼은 Chomebook의 crouton에서 우분투가 믿을 만하다. CPU는 Nvidia Tegra K1, 32 비트 ARMv7입니다.ARM Linux에서 VScode를 컴파일하거나 설치할 수 있습니까?

왜 이것을 ARM에서 컴파일 할 수 없습니까? 그것은 주로 Node.JS와 Python으로 작성된 것 같습니다. 두 가지 모두 ARM에 있으며 두 가지 모두 CPU에 무관합니다.

================================= 

[email protected] ~/v/scripts> tail -15 npm-debug.log 
6702 info installOne [email protected] 
6703 info installOne [email protected] 
6704 error notsup Unsupported 
6704 error notsup Not compatible with your operating system or architecture: [email protected] 
6704 error notsup Valid OS: darwin 
6704 error notsup Valid Arch: any 
6704 error notsup Actual OS: linux 
6704 error notsup Actual Arch: arm 
6705 error System Linux 3.10.18 
6706 error command "/usr/bin/nodejs" "/usr/bin/npm" "install" 
6707 error cwd /home/philo/vscode/scripts 
6708 error node -v v0.10.25 
6709 error npm -v 1.3.10 
6710 error code EBADPLATFORM 
6711 verbose exit [ 1, true ] 

나는 아래의 조언에 따라 fsevent을 편집했습니다. 나는 그것을 실행하려고하면

npm WARN cannot run in wd [email protected] node build/npm/postinstall.js (wd=/home/philo/vscode-release-1.2) 

: 나는 또한 아직도 작업 빌드를받지 못했습니다, 그러나 ln -s /usr/bin/nodejs /usr/bin/node로했다

[email protected] ~/vscode-release-1.2> ./scripts/code.sh 

TypeError: Object function Object() { [native code] } has no method 'assign' 
    at Object.create (/home/philo/vscode-release-1.2/node_modules/gulp-tsb/lib/index.js:28:16) 
    at createCompile (/home/philo/vscode-release-1.2/gulpfile.js:47:15) 
    at compileTask (/home/philo/vscode-release-1.2/gulpfile.js:80:16) 
    at Object.<anonymous> (/home/philo/vscode-release-1.2/gulpfile.js:106:47) 
    at Module._compile (module.js:456:26) 
    at Object.Module._extensions..js (module.js:474:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 
    at Module.require (module.js:364:17) 
    at require (module.js:380:17) 

TypeError: Object function Object() { [native code] } has no method 'assign' 
    at Object.create (/home/philo/vscode-release-1.2/node_modules/gulp-tsb/lib/index.js:28:16) 
    at createCompile (/home/philo/vscode-release-1.2/gulpfile.js:47:15) 
    at compileTask (/home/philo/vscode-release-1.2/gulpfile.js:80:16) 
    at Object.<anonymous> (/home/philo/vscode-release-1.2/gulpfile.js:106:47) 
    at Module._compile (module.js:456:26) 
    at Object.Module._extensions..js (module.js:474:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 
    at Module.require (module.js:364:17) 
    at require (module.js:380:17) 
./scripts/code.sh: line 32: /home/philo/vscode-release-1.2/.build/electron/electron: No such file or directory 
+0

OS X 버전 ('Valid OS : darwin')을 설치하려고합니까? 유효한 아키텍처는'any'이므로'arm'은 문제가되지 않습니다. – jonrsharpe

+0

[this] (http://www.hanselman.com/blog/BuildingVisualStudioCodeOnARaspberryPi3.aspx)을 보았습니까? – krontogiannis

+0

어떤 노드 버전을 사용하고 있습니까? 노드의 버전을 출력하려면'node -v '를 실행하십시오. –

답변

0

을에 CentOS 6 (64)와에 같은 문제가 있었다 :

./scripts/npm.sh install --arch=x64 

이 OS X 특정 모듈을 비 선택적 종속성으로 처리합니다. 내가 보는 유일한 것은 2016-04-19 commitnpm-shrinkwrap.json 인 것으로 밝혀졌습니다. 그것이 버그인지 확실하지 않습니다.

내가 NPM-shrinkwrap.json에서 fsevent 항목을 제거, OS X 용으로 컴파일 아니에요 때문에

나를 계속 허용했다. 내부적으로 fsevent이 없으면 파일 폴링으로 되돌아갑니다.

+0

도움을 주셔서 감사합니다. 'ln -s/usr/bin/nodejs/usr/bin/node'이 필요했습니다. gyp가 nodej보다는 node를 호출하기 때문에. 나는 그것을 고칠 곳을 보지 못했지만, 링크 cludge는 트릭을했습니다. –