Linux basics software source package installation

  In Linux, different software services need to be installed according to different needs. In Linux, software packages are classified into two types of source package installation and binary package installation.

1. Source package

  1. Advantages and disadvantages

  Advantages: open source, optional installation function, installation requires compilation (high stability)

  Disadvantages: error-prone installation steps (errors difficult to resolve), long compilation time

  2. The installation process

  2.1. Download and install the package: The source package is usually downloaded from the official website.

  2.2. Unzip package: Compressed packages are generally in two formats, tar.gz and tar.bz2

  2.3. Enter the decompressed software directory.

  .2.4, / configure  (This is not a system command, but a program script that exists in the source package.)

  After running, if there is a lack of dependent packages, an error will be reported (as shown below)

  

 

 

   The above picture is missing APR related software packages. yum can be installed. (The specific lack of dependent packages depends on the system environment, so check by yourself)

  To determine whether an error is reported, you can use keywords such as error warning no.

  Generally, the software is written in C language, so the gcc compiler is also needed, the purpose is to use this compiler to compile C language into a language recognized by Linux.

  

 

 

   Compile completed

  2.5, make  compilation (call the gcc compiler to compile the software package)

  2.6, make install  starts installation

  2.7 Note

    ./configure --prefix = The installation path can specify the installation location of the software

    Make and ./configure, when these two steps report errors, you need to solve the dependency problem (install the dependent package); you also need to execute make clean (clear the compiled content, it will empty the Makefile file or the .o file generated by compilation)

Two, script installation

  You can install webmin.

Guess you like

Origin www.cnblogs.com/641055499-mozai/p/12729053.html