Linux software installation experience summary Linux software installation, can be divided into source code installation, RPM installation package installation, yum/apt-get and other methods to install software. The yum/apt-get method is the simplest, so I will not explain it in this article. 1. install the source code by compiling the source code... linux software installation experience summary Linux software installation, can be divided into source code installation, RPM installation package installation, yum/apt-get and other methods to install software. The yum/apt-get method is the simplest, so I will not explain it in this article. 1. install the source code by compiling the source code. This process is generally implemented using the make tool. 1.1 The root permission is not required during the compilation process. you can directly execute the make command to compile the software. for details, refer to the installation instructions of the software. The following is a command example: $ make prefix =/usr/local all doc info, but this process is generally not so smooth. various errors may occur during the compilation process, however, some files or commands are missing. What should I do now? Use the yum provides command to find the files or the installation package provided by the command, and then use yum to install the corresponding installation package. If the file git-commit is missing, run the following command to find the corresponding software package: $ yum provides git-commit or $ yum provides */git-commit 1.2 usually requires the root permission to install and use the make command. for details, refer to the software installation instructions. The following is an example of the command: $ make prefix =/usr/local install-doc install-html install-info 2 install the rpm package from the rpm package, the compilation phase is no longer required during installation. Although the compilation stage is missing, its installation is not simple. Generally, install rpm by following the steps below: test and install-> solve the dependency problem-> execute the installation 2.1 test and install using the-I and -- test options of the rpm command for testing and installation, check whether there are any problems during the installation process, the following command example: $ rpm-I perl-XML-SAX-Base-1.08-1.el5.pp.noarch.rpm -- test in the test installation is also a lot of problems, there are general prompts that the lack of XX dependencies, the following error occurs: error: Failed dependencies: perl (: MODULE_COMPAT_5.8.8) is needed by perl-XML-SAX-Base-1.08-1.el5.pp.noarch 2.2 to solve dependency problems. we can find the corresponding installation package for this dependency through the resolvedep sub-command of yum, then use yum to install the package. For example: $ yum resolvedep 'Perl (: MODULE_COMPAT_5.8.8) '2.3 execute installation $ rpm-I perl-XML-SAX-Base-1.08-1.el5.pp.noarch.rpm
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