Vài cài đặt trên CentOS 6

Cài đặt Python3

Run the following yum command to install Software Collections Repository (SCL) on CentOS
yum install centos-release-scl

Run the following command to check the Python 3 version available in the scl repository.
yum --disablerepo="*" --enablerepo="centos-sclo-rh" list *python3*

Run the command below to install the latest available Python 3 package from Scl.
yum install rh-python35

Run the command below to check the Python 3 version installed using the SCL repository.
yum info rh-python36

Run the below special scl command to enable the installed package version at the shell.
scl enable rh-python35 bash

Run the below command to check installed python3 version.
python --version


Cài đặt Nodejs

To install development tool we will use yum command.
sudo yum -y groupinstall “Development Tools”

Now we are ready to install NodeJS from source code
wget — no-check-certificate https://nodejs.org/dist/v14.15.0/node-v14.15.0.tar.gz

Now, unzip the downloaded tar file and change the directory to source code directory.
tar -xvf node-v14.15.0.tar.gz
cd node-v14.15.0

Now the source for NodeJS is extracted and we’re in the source directory. We can now prepare our compiler commands, by executing the configure script. After that run make command, make command is used to build and maintain the group of programs.
./configure
make
make install


Cài đặt thư viện CGG và C++ compiler

CentOS 8 already comes with GCC 8.

On CentOS 7, you can install GCC 8 from Developer Toolset. First you need to enable the Software Collections repository:
yum install centos-release-scl

Then you can install GCC 8 and its C++ compiler:
yum install devtoolset-8-gcc devtoolset-8-gcc-c++

To switch to a shell which defaults gcc and g++ to this GCC version, use:
scl enable devtoolset-8 -- bash

You need to wrap all commands under the scl call, so that the process environment changes performed by this command affect all subshells. For example, you could use the scl command to invoke a shell script that performs the required actions.

Mr.Phan

KTS, KSXD, Developer

You may also like...

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *