vue-cli安装记录
docker安装
docker network rm mydk
docker network create --subnet=192.168.1.0/24 mydk
cat centos-7-x86_64.tar.gz |docker import - cent7
docker run -itd --name vue -h vue --net mydk --ip 192.168.1.11 -v /opt:/opt -v /disk/vue:/export -v /tmp:/tmp cent7 bash
docker start vue
docker exec -it vue bash
yum install -y net-tools
yum install -y libaio
yum install -y bzip2 gcc gcc-c++ make wget
gcc版本升级
wget http://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz
参考下面的内容安装
https://blog.csdn.net/llwy1428/article/details/89918703
cd gcc-9.3.0
./contrib/download_prerequisites
mkdir gcc-build
cd gcc-build/
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
ll
total 1100
-rw-r--r-- 1 root root 1048777 Mar 27 22:15 Makefile
-rw-r--r-- 1 root root 27485 Mar 27 22:15 config.log
-rwxr-xr-x 1 root root 38042 Mar 27 22:15 config.status
-rw-r--r-- 1 root root 13 Mar 27 22:15 serdep.tmp
make
make install
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 9.3.0 (GCC)
动态链接库升级
# strings /usr/lib64/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
find / -name "libstdc++.so.*"
cp -r /opt/soft/docker/gcc-9.3.0/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.28 /usr/lib64/
cd /usr/lib64/
ll libstdc++.so.6
lrwxrwxrwx 1 root root 19 Mar 27 22:14 libstdc++.so.6 -> libstdc++.so.6.0.19
rm libstdc++.so.6
rm: remove symbolic link 'libstdc++.so.6'? y
ln -s libstdc++.so.6.0.28 libstdc++.so.6
# strings /usr/lib64/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_1.3.8
CXXABI_1.3.9
CXXABI_1.3.10
CXXABI_1.3.11
CXXABI_1.3.12
CXXABI_TM_1
CXXABI_FLOAT128
CXXABI_1.3
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3.6
CXXABI_FLOAT128
CXXABI_1.3.12
CXXABI_1.3.9
CXXABI_1.3.1
CXXABI_1.3.5
CXXABI_1.3.8
CXXABI_1.3.4
CXXABI_TM_1
CXXABI_1.3.7
CXXABI_1.3.10
CXXABI_1.3.3
docker stop vue
docker ps -a |grep vue
c66b591e16eb cent7 "bash" 6 hours ago Exited (137) 30 seconds ago vue
docker commit -m "update gcc to 9.3.0 centos7" -a "tanpf" c66b591e16eb vue
docker save -o /opt/soft/docker/cent7_gcc.tar vue
nodejs安装
http://nodejs.cn/download/
wget https://cdn.npm.taobao.org/dist/node/v12.16.1/node-v12.16.1.tar.gz
./configure
make
make install
# npm -v
6.13.4
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm i yarn -g -verbose
yarn config set registry https://registry.npm.taobao.org
which yarn
cnpm install webpack -g //全局安装webpack
cnpm install webpack-cli -g -D //全局安装webpack-cli
yarn add webpack@^5.0.0
选择4.42.0
cnpm install vue-cli -g
vue init webpack dbmng-ui
cd dbmng-ui
cnpm install mkdirp@^1.0.0
cnpm install mkdirp@^1.0.0 --save-dev
cnpm install fibers --save-dev
yarn install
cnpm install css-loader style-loader --save-dev
yarn add element-ui
cnpm install webpack@4.42.0 -g -D
cnpm install webpack@4.42.0 --save-dev
cnpm install node-sass --save-dev
cnpm install sass-loader --save-dev
cnpm install mkdirp@1.0.0 -D
cnpm install html-webpack-plugin@^3.0.0
cnpm install html-webpack-plugin@^3.0.0 -D
cnpm install webpack-dev-server@3.0.0 -D
yarn add -D webpack-cli@3.3.2 -D
npm install vue-loader@latest --save-dev
未完......