Three methods for installing LINUX source code

Source: Internet
Author: User
Three methods for installing LINUX source code-general Linux technology-Linux technology and application information. For more information, see the following. 1. First, use tar-xzvf to unbind the package, for example:
?? # Tar-xzvf apache_1_3_6_tar.gz
?? In this example, a new directory (the directory name is similar to the file name of the .tat.gz package) is created in the current directory to store the extracted content. In this example, apache_1.3.6 is used.
?? 2. Enter the Directory and run the ls command to view the files contained, such:
?? # Cd apache_1.3.6
?? # Ls
?? Check which of the following files is contained in the directory: configure, Makefile, or Imake.
?? If the configure file is used, run the following command:
?? #./Configure
?? # Make
?? # Make install
?? If it is a Makefile file, run the following command:
?? # Make
?? # Make install
?? If the Imake file is used, run:
?? # Xmkmf
?? # Make
?? # Make install
?? 3. If no error message is displayed, it will be done. Where the software is installed, it usually appears during installation. Otherwise, you can only check README, or ask me ,:-)
??
?? If an error is prompted, do not worry. It is usually a very simple problem:
?? C or C ++ compiler is not installed;
?? Diagnosis Method: Execute the command gcc (C ++ is g ++) and prompt that the command cannot be found.
?? Solution: mount the Linux installation disc and enter the RPMS directory. Run the following command:
?? # Rpm-ivh gcc * (haha, we used the second installation method)
?? 2) The make tool is not installed;
?? Diagnosis Method: Execute the make command and prompt that the command cannot be found.
?? Solution: mount the Linux installation disc and enter the RPMS directory. Run the following command:
?? # Rpm-ivh make *
?? 3) the autoconf tool is not installed;
?? Diagnosis Method: Execute the make command and prompt that the command cannot be found.
?? Solution: mount the Linux installation disc and enter the RPMS directory. Run the following command:
?? # Rpm-ivh autoconf *
?? 4) Some link libraries are missing;
?? Diagnosis Method: some files are prompted during make.
?? Solution: Install the package containing this file, which requires accumulation.

[ This post was last edited by firmstre]
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.