現在の 0.10.26 バージョンの node.js をインストールするために、さまざまな方法を試しました。
マシンは、Xubuntu 12.04 がインストールされた Arm Cortex A9 です。
lsb_release -a
私に与えます:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
uname -a
私に与えます:
Linux utilite-ubuntu-desktop 3.0.35-cm-fx6-4 #123 SMP Thu Sep 12 10:41:30 IST 2013 armv7l armv7l armv7l GNU/Linux
簡単な方法で node.js をインストールすると、次のようになります。
sudo apt-get install git-core curl build-essential openssl libssl-dev
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
最終的にnode.jsバージョンになります
v0.6.12
node.js のインストール中に、次の出力が得られます。
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/629 kB of archives.
After this operation, 2186 kB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 164415 files and directories currently installed.)
Unpacking nodejs (from .../nodejs_0.6.12~dfsg1-1ubuntu1_armel.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up nodejs (0.6.12~dfsg1-1ubuntu1) ...
update-alternatives: using /usr/bin/node to provide /usr/bin/js (js) in auto mode.
これは、「以前に選択されていないパッケージ nodejs を選択しています」という意味ですか?以前にインストールされたバージョンを再度インストールしますか? または、なぜ彼は最新バージョンを選択しないのでしょうか?
とにかく、ほぼこの指示を使用して完全にアンインストールしました: Node.js を完全にアンインストールし、最初から再インストールする方法 (Mac OS X)
私はこのようなことをする指示を見つけました(以下は私の場合です):
sudo apt-get install nodejs=0.10.26-1chl1~precise1
しかし、それは私にしか与えませんでした:
E: Version '0.10.26-1chl1~precise1' for 'nodejs' was not found
だから私はnvmバージョンv0.5.1をダウンロードしてインストールしました。
nvm install v0.10.26
私は得る:
######################################################################## 100.0%
Checksums empty
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Binary download failed, trying source.
Additional options while compiling:
######################################################################## 100.0%
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'arm_fpu': 'vfpv3',
'arm_neon': 0,
'armv7': 1,
'clang': 0,
'gcc_version': 46,
'host_arch': 'arm',
'node_install_npm': 'true',
'node_prefix': '/home/utilite/.nvm/v0.10.26',
'node_shared_cares': 'false',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_openssl': 'false',
'node_shared_v8': 'false',
'node_shared_zlib': 'false',
'node_tag': '',
'node_unsafe_optimizations': 0,
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_openssl': 'true',
'node_use_perfctr': 'false',
'node_use_systemtap': 'false',
'python': '/usr/bin/python',
'target_arch': 'arm',
'v8_enable_gdbjit': 0,
'v8_no_strict_aliasing': 1,
'v8_use_arm_eabi_hardfloat': 'false',
'v8_use_snapshot': 'true'}}
creating ./config.gypi
creating ./config.mk
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/utilite/.nvm/src/node-v0.10.26/out'
make[1]: Warning: File `/home/utilite/.nvm/src/node-v0.10.26/out/Release/.deps//home/utilite/.nvm/src/node-v0.10.26/out/Release/libv8_nosnapshot.a.d' has modification time 4.4e+04 s in the future
LD_LIBRARY_PATH=/home/utilite/.nvm/src/node-v0.10.26/out/Release/lib.host:/home/utilite/.nvm/src/node-v0.10.26/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/tools/gyp; mkdir -p /home/utilite/.nvm/src/node-v0.10.26/out/Release/obj.target/v8_snapshot/geni; "/home/utilite/.nvm/src/node-v0.10.26/out/Release/mksnapshot" --log-snapshot-positions --logfile "/home/utilite/.nvm/src/node-v0.10.26/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/home/utilite/.nvm/src/node-v0.10.26/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
^Cmake[1]: *** [/home/utilite/.nvm/src/node-v0.10.26/out/Release/obj.target/v8_snapshot/geni/snapshot.cc]
そこでは、Cntrl C を押すまでループで実行されます。残念ながら、git で実行しようとすると同じことが起こります。
git clone https://github.com/joyent/node.git
コンパイルしてから、無限ループでハングします(すでに数時間試しました)。ぶら下がっているプロセスはmksnapshot
. 同様の動作に関して、V8 で次の問題を見つけました
。
したがって、現時点では、私はこれ以上何も知りません。ここで私の Linux に何か問題があるようですが、どこから始めればよいかわかりません。
どうもありがとう、
ベンジャミン