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