Source package installation and upgrade kernel class content

Source: Internet
Author: User

SOURCE program (source package)--------------and binary format

Some features are compile-selected and cannot be used if the compilation is not selected for this attribute;

RPM package version will lag behind the source package, or even a lot behind; bind-9.8.7, bind-9.7.2

Customizing: Manually compiling the installation


Compilation environment, development environment

Development libraries, development tools


LINUX:C,

Gnu:c


C,c++:

Gcc:gnu c Complier, C

g++:


Make: Project management tools,

Makefile: Defines the order in which make (gcc,g++) compiles the source program in these source program files


Automake,-makefile.in-Makefile

autoconf,--Configure


100 selectable features,


Make install



Three steps to compile the installation:

Prerequisite: Preparing the development Environment (compilation environment)

Install "Development Tools" and "Development Libraries"


# tar

# CD

#./configure

--help

--prefix=/path/to/somewhere #指定安装目录

--sysconfdir=/path/to/conffile_path

--conf-path=/path/to/conffile_path #指定配置文件目录

Function: 1, let the user select the compilation feature; 2, check the compilation environment;

# make

# make Install


# Tar XF tengine-1.4.2.tar.gz

# CD tegnine-1.4.2

#./configure--prefix=/usr/local/tengine--conf-path=/etc/tengine/tengine.conf

# make

# make Install

#/usr/local/tengine/sbin/nginx


1, modify the PATH environment variable, to be able to identify the binary file path of this program;

Modify the/etc/profile file

In the/etc/profile.d/directory, create a file with a name suffix of. SH, which defines the export path= $PATH:/path/to/somewhere

2, by default, the system search library file path/lib,/usr/lib; To add additional search paths:

Create a file with a suffix of. conf in/etc/ld.so.conf.d/, and then write the path you want to add directly to the file;

# Ldconfig notifies the system to re-search the library file

-V: Shows the process of re-searching the library

3. header file: Output to System

Default:/usr/include

Add header file search path, using links to:

/usr/local/tengine/include//usr/include/

Two different ways:

Ln-s/usr/local/tengine/include/*/usr/include/or

Ln-s/usr/local/tengine/include/usr/include/tengine

4, man file path: installed in the--prefix specified directory of the man directory;

The system defaults to look for this directory :/usr/share/man

/etc/man.config the path of the man command to find the Help document in this configuration file

RHEL7 is/etc/man_db.conf.

1. Man-m/path/to/man_dir COMMAND

2, add a manpath in the/etc/man.config

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/9A/wKioL1XpKdDA744nABVXuF5QOFA925.bmp "title=" Rec025 [01_21_04] [20150904-130816-0]. BMP "alt=" Wkiol1xpkdda744nabvxuf5qofa925.bmp "/>

Source package installation and upgrade kernel class content

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.