How to install application software in Linux (1)

Source: Internet
Author: User

It is inevitable to install some new software after the new operating system is installed. However, in Linux, the installation of application software is somewhat different from that in Windows. For Linux beginners, installing software is a headache. Many Linux applications are released in the form of source code, which requires you to configure and compile the source program based on the actual situation of your system and your own needs before using the software.

Most Linux beginners often do not know how to configure and compile. The following describes how to install the Linux application software. Before installing the application software, make sure that the compiling environment of the software is installed, such as the GCC compiler and necessary library files. However, you do not need to worry about these issues because most Linux releases have installed the GCC compiler by default.

Currently, popular software packages are available in two common forms: one is the smart software package represented by rpm1_deb, and the other is the file.tar.gz compression. This document describes how to install file.tar.gz and how to install the smart software package in a text or graphic environment.

I. Source Code Installation

The source code of the application software is generally in file.tar.gz or file. tgz format, that is, it is packed in tar and compressed with gzip.

Take the application software xfce-3.8.7.tar.gz as an example, first enter the current directory of the software, and then use gzip unzip: # gzip-d xfce-3.8.7.tar.gz (Note:-d Indicates decompression ). Then decompress the package with tar: # tar-xvf xfce-3.8.7.tar. Because tar and gzip are often used together, tar also provides a parameter that can automatically call gzip to decompress, namely: # tar-xzvf xfce-3.8.7.tar.gz.

Enter the new directory after decompression. Generally, the application software has an executable file called configure, which has many parameters and is flexible in usage. Of course, the parameters for installing different software vary. For specific parameters, run the command: #./configure help to get detailed help. For example,./configure -- prefix =/usr/local/mysql indicates that the installation directory of the software is/usr/local/mysql)

After you run the #./configure [options] configuration software, it generates an installation configuration file based on your current system, compilation, and installation information. Makefile files are usually used to compile and install software. when running the make command, the system automatically compiles and installs the software based on the settings in the Makefile file. If the compilation succeeds, run the # make install command to install the SDK.


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.