[Linux] CentOS 6 安裝 Node.js v.12 血淚過程
ref:
yum install devtoolset-7-toolchain
scl enable devtoolset-7 bash
就可以用比較新的 devtool 去編譯檔案了!
在把 CentOS 從6.4 => 6.10 之後,編譯Node.js v12速度太慢
最後執行了以下指令,才可以透過 yum install nodejs 把 v12 裝上去
# curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
# wget ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/7.0/x86_64/os/Packages/libstdc++-4.8.2-16.el7.i686.rpm
# rpm -ivh libstdc++-4.8.2-16.el7.i686.rpm --replacefiles
# ls /usr/lib/ | grep libstdc++
# rm /usr/lib/libstdc++.so.6
# ls /usr/lib/ | grep libstdc++
# ln /usr/lib/libstdc++.so.6.0.19 /usr/lib/libstdc++.so.6
# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX
# rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/libstdc++-4.8.5-39.el7.x86_64.rpm --replacefiles
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm &
# wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &
# rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps
# rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/libstdc++-4.8.5-39.el7.x86_64.rpm --replacefiles
# yum install nodejs
留言
張貼留言