标签:
下载nodejs:ibm-4.4.3.0-node-v4.4.3-aix-ppc64.bin
IBM已经适配最新版本的node.js :https://developer.ibm.com/node/sdk/ (node.js官网也有链接)
使用shell安装sdk:
1)chmod a+x ibm-4.4.3.0-node-v4.4.3-aix-ppc64.bin
2)sh ibm-4.4.3.0-node-v4.4.3-aix-ppc64.bin
3)配置环境变量修改.profile
export PATH=$HOME/ibm/node/bin:$PATH
:依赖gcc
and g++
4.8 or newer,需要安装,不然会有如下报错:
$node --version
exec(): 0509-036 Cannot load program node because of the following errors:
0509-150 Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
0509-026 System error: A file or directory in the path name does not exist.
$ldd node
node needs:
/usr/lib/libc.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
Cannot find libstdc++.a(libstdc++.so.6)
Cannot find libgcc_s.a(shr.o)
/usr/lib/libperfstat.a(shr_64.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libcfg.a(shr_64.o)
/usr/lib/libodm.a(shr_64.o)
/usr/lib/liblvm.a(shr_64.o)
/usr/lib/libcorcfg.a(shr_64.o)
/usr/lib/libsrc.a(shr_64.o)
备注:安装gcc&g++
1 # ls * 2 bash-4.3.30-1.aix6.1.ppc.rpm libmpc-0.9-1.aix5.3.ppc.rpm 3 gcc-4.9.2-1.aix6.1.ppc.rpm libsigsegv-2.10-2.aix6.1.ppc.rpm 4 gcc-c++-4.9.2-1.aix6.1.ppc.rpm libsigsegv-devel-2.10-2.aix6.1.ppc.rpm 5 gcc-cpp-4.9.2-1.aix6.1.ppc.rpm libstdc++-4.9.2-1.aix6.1.ppc.rpm 6 gmp-6.1.0-4.aix6.1.ppc.rpm libstdc++-devel-4.9.2-1.aix6.1.ppc.rpm 7 gmp-devel-6.1.0-4.aix6.1.ppc.rpm mpfr-3.1.2-3.aix6.1.ppc.rpm 8 info-5.0-2.aix6.1.ppc.rpm ncurses-5.9-3.aix6.1.ppc.rpm 9 libgcc-4.9.2-1.aix6.1.ppc.rpm zlib-1.2.8-1.aix6.1.ppc.rpm 10 libiconv-1.14-22.aix6.1.ppc.rpm zlib-devel-1.2.8-1.aix6.1.ppc.rpm 11 12 bak: 13 gettext-0.18.3.1-1.aix6.1.ppc.rpm gettext-devel-0.18.3.1-1.aix6.1.ppc.rpm 14 # 15 # cd bak 16 # rpm -Uvh *.rpm 17 error: failed dependencies: 18 libxlsmp.a(smprt.o) is needed by gettext-0.18.3.1-1 19 --nodeps (直接安装会报错,因此加--nodeps不作依赖检查) 20 # 21 # rpm -Uvh *.rpm --nodeps 22 package gettext-0.18.3.1-1 is already installed 23 package gettext-devel-0.18.3.1-1 is already installed 24 # 25 # cd .. 26 # rpm -Uvh *.rpm 27 package bash-4.3.30-1 is already installed 28 package gcc-4.9.2-1 is already installed 29 package gcc-c++-4.9.2-1 is already installed 30 package gcc-cpp-4.9.2-1 is already installed 31 package gmp-6.1.0-4 is already installed 32 package gmp-devel-6.1.0-4 is already installed 33 package info-5.0-2 is already installed 34 package libgcc-4.9.2-1 is already installed 35 package libiconv-1.14-22 is already installed 36 package libmpc-0.9-1 is already installed 37 package libsigsegv-2.10-2 is already installed 38 package libsigsegv-devel-2.10-2 is already installed 39 package libstdc++-4.9.2-1 is already installed 40 package libstdc++-devel-4.9.2-1 is already installed 41 package mpfr-3.1.2-3 is already installed 42 package ncurses-5.9-3 is already installed 43 package zlib-1.2.8-1 is already installed 44 package zlib-devel-1.2.8-1 is already installed 45 #
:
gcc的rpm包,可在http://www.bullfreeware.com上下载
标签:
原文地址:http://www.cnblogs.com/book-gary/p/5431616.html