Precautions for source code Installation

Source: Internet
Author: User

When compiling and installing programs in the form of source code, you need to install the GCC compiler first. Usually, you can view the help information through./configure -- help during compilation and installation, and use -- prefix to specify the installation path. Note the following:
1. Modify the PATH environment variable to identify the path of the binary program.

Method 1: Modify the/etc/profile file and add Path = $ path:/path/to/pathname.

Method 2: create a file ending with. Sh in the/etc/profile. d/directory and add the path of the binary program to the file. For example, export Path = $ path:/usr/local/httpd/bin

2. library files

By default, the search path of the library file is/usr/lib and/lib. You need to add additional search paths in/etc/lD. so. conf. d/create a new. and add the path of the library file where the binary program is located to the new file. Use ldconfig-V to search for the library files of the binary program again.

3. header file.

By default, the search path is/usr/include. To add a file search path, the link is usually used, and the link is usually the entire directory. For example, Ln-S/usr/local/httpd/include/usr/incloude/httpd

4. Man Help File

Modify/etc/man. conf, add manpath, and add the path of the man file of the binary program to/etc/man. conf.


This article is from the "Hezhang" blog, please be sure to keep this source http://hezhang.blog.51cto.com/1347601/1529630

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.