Posts

Showing posts with the label centos

Installing CentOS7 NodeJS source compilation / v12.16.1 LTS

Image
0. Installation environment (g ++ 6.3.x) CentOS 7 has gcc version 4.8 installed by default.  However, nodejs build environment requires version 6.3 or higher. Please refer to the following link to install version 6.3. https://lucidmaj7.tistory.com/144   Installing CentOS7 GCC 6.x devtoolset-6 Installing CentOS7 GCC 6.x Installing GCC on CentOS 7 will install version 4.8.5.   In some cases, you may need to install a higher version.   The following is how to install GCC, G ++ 6.x version.   $ sudo yum install .. lucidmaj7.tistory.com   1. Download NodeJS source Connect to the NodeJS homepage and download the source of the LTS version using the wget command. https://nodejs.org/en/download/   Download |   Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org [root@localhost ~] # wget https: //nodejs.org/dist/v12.16.1/node-v12.16.1.tar.gz 2. Decompression Unzip ...

Installing CentOS7 GCC 6.x

Installing CentOS7 GCC 6.x Installing GCC on CentOS 7 will install version 4.8.5.  In some cases, you may need to install a higher version. The following is how to install GCC, G ++ 6.x version. $ sudo yum install centos- release -scl $ sudo yum install devtoolset- 6 After installation, enable gcc 6 with the command below.  The command below should be run every time you use gcc 6. $ scl enable devtoolset-6 bash You can check the installed version through the GCC command. [root@localhost ~] # gcc --version gcc (GCC) 6.3 .1 20170216 (Red Hat 6.3 .1 -3 ) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~] # g++ --version g++ (GCC) 6.3 .1 20170216 (Red Hat 6.3 .1 -3 ) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. Ther...