From windows to * nix (1) Software Installation

Source: Internet
Author: User

Note: this series of articles describes the similarities and differences between windows and unix-like operating systems (* nix) for programmers, and focuses on * nix. This article covers program installation, daily operations, editors, IDE, pipelines, GUI vs CLI.... The purpose of this article is to guide experienced windows programmers to smoothly transition to * nix.

 

The general steps for installing software under windows are as follows: Find setup.exe, click it, and next, select the installation directory, next, select the optional components, next ,...

* Similar to nix, the difference is that the command line completes:

 

Tar-xzf xxx-n.n.n.tgz; <br/> Cd xxx-n.n.n; <br/>./configure; <br/> make intall 

The above tar is for decompression,./configure is for configuration, make is for compilation, and make install is for installation.

Most of the things to consider are done during configuration.

During configuration, use the command line parameter to specify:

./Configure -- Help 

You can obtain available parameter descriptions.

A common parameter is -- prefix, for example

# Install to your home directory <br/>./configure -- prefix = $ home <br/> # Install to the/usr directory <br/>./configure -- prefix =/usr 

 

 

We know that windows software usually specifies its own configuration files, program files, and library files to a directory, such as c:/program files/xxx

The sub-directory structure under the sub-directory is the random structure of the software author.

* The prefix parameter for nix software configuration is also the specified installation directory,

Difference 1: The Sub-directories in the installation directory have a set of naming conventions, such as $ prefix/bin program files, $ prefix/etc configuration files, and $ prefix/lib library files.

Difference 2: Most * nix software will be installed under the same prefix, usually/usr,/usr/local.

 

In addition, common configure parameters include -- With-xxx, -- without-xxx, -- enable-xxx, and -- disable -- XXX. The first two determine whether to reuse other software, and the last two determine whether a feature of the software is available.

 

The above describes the general installation process from the source code. Binary installation is much simpler (take Gentoo release as an example ):

 

Emerge-K xxx 

 

For other releases, RedHat uses rpm, Debian uses apt-get, and FreeBSD uses pkg_add.

Using Binary installation means that the custom features are lost, because the Binary Package is compiled from the source code with a set of configuration parameters in advance.

 

 

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.