Installation of compilation environment in Linux extreme environment

Source: Internet
Author: User
Tags redis cluster install redis

Previous: Typically, there are several ways to install a package or service in a Linux system.

The simplest one is to configure the network Yum source in case you can connect to an external network, and what package you need to configure Yum and then go all the way to the Yum install package name (necessary: You can connect to the extranet)

Second, if the required package can be found in the system's image, then it is convenient to configure the local Yum source for installation (necessary: local mirror, can not connect the network)

The last option is to use the RPM package installation (The advantage is that you can not need a local image, or you can not connect the extranet, but the disadvantage is that a dependent package will depend on a lot of dependent packages, after installation if you need some service new features must install a new installation package)

Background: This is the actual operation of the site using the server to build a Redis cluster. The system version is: Red Hat 7.2, unable to connect the external network, but configured an HTTP server yum source. In the process of using the Yum source, it is found that one server is always unable to use the Yum source and there is no system mirroring and compiling environment in the field, but to install the Redis cluster, it is either compiled or installed, or the Yum source is installed, and no hero has ever been installed with the RPM package. After several twists and turns, finally thought of the following methods and test success.

Method 1: Borrow the chicken eggs (by other the same environment with a compile-capable server to compile, and then install on a server that does not have the ability to compile), and finally complete the installation of Redis (this method is only expedient, does not solve the fundamental problem, only for some of the compilation environment less complex software installation)

Law 2: Cobwebs, Shun teng touch melon. Now, push it backwards once. To install Redis, you can use Yum to install (exclude: No extranet, yum commands are not available), you can use the compile installation, choose to compile the installation, you must have a compilation environment (gcc,gcc-c++). It is not possible to use Yum to install gcc,gcc-c++, nor to compile GCC's installation package to install GCC (no compilation environment), fortunately Avenue 50, day 49. All things will leave chance, and now, leave me the only way to live only RPM package installed gcc,gcc-c++. This method is very useful, but it must be in the extreme. So leave the post, forget the later to take this as a guide. Here is the RPM package to install the GCC method:

When installing GCC with RPM packages, the main thing is the installation sequence (this time mainly for the 7.2 system):

Installation package required for installation:

Link: Https://pan.baidu.com/s/1Je5aKc2Jny7VtoUKCOHJnQ Password: LXKF

RPM-IVH glibc-2.17-* nss-softokn-*

RPM-IVH libgcc-4.8.5*

RPM-IVH gmp-6.0*

RPM-IVH Mpfr-3.1*

RPM-IVH Libmpc-1.0.1*

RPM-IVH cpp-4.8.5*

RPM-IVH kernel-headers-*

RPM-IVH glibc-headers-*

RPM-IVH glibc-devel*

RPM-IVH gcc-4.8.5*

RPM-IVH libstdc++-4.8*

RPM-IVH libstdc++-devel*

RPM-IVH gcc-c++*

Installation of compilation environment in Linux extreme environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.