安装依赖包的作用是为编译和安装MongoDB提供必要的依赖和环境。
1 2 |
cd ~ yum -y install gcc gcc-c++ cmake wget net-tools libyaml python2 python2-setuptools libcurl-devel python2-devel gmp gmp-devel mpfr mpfr-devel libmpc libpcap net-tools |
开始回显:
结束回显:
cd ~ yum -y install gcc gcc-c++ cmake wget net-tools libyaml python3 python3-setuptools libcurl-devel python3-devel gmp gmp-devel mpfr mpfr-devel libmpc libpcap net-tools pip3 install jsonschema memory_profiler puremagic networkx cxxfilt requirements_parser
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz tar -zxvf Python-2.7.10.tgz
cd Python-2.7.10
./configure --prefix=/usr/local/python-2.7.10
make && make install