Software packages for release of programs in Linux

Source: Internet
Author: User
To release a program in Linux, pay attention to the version of the software package-general Linux technology-Linux programming and kernel information. The following is a detailed description. Gcc is a collection of GNU compilers, including C, C ++, Java, Ada, Forturn and other compilers. We mainly use C and C ++, their corresponding programs are gcc and g ++. To be compatible with UNIX systems such as BSD, the C compiler program name can also be cc or CC.



Everything in Linux is compiled by gcc. Because the ABI of gcc of different main versions is not the same, if the Linux system and applications use gcc of different main versions for compilation, many problems may occur.



The gcc-v method is used to view the gcc version. Note: not only can the gcc version be displayed, but also the gcc compilation parameters are displayed. This is also very important, even for gcc of the same version, different compilation parameters may also cause compatibility issues, such as the thread model.



Glibc



Glibc is a standard library function in Linux. It encapsulates the vast majority of system calls in Linux, which is equivalent to Windows APIs. All application software depends on it.



When the main version of glibc is changed, the function behavior provided by it may be greatly changed. When programs of different glibc versions are used in hybrid mode, segment errors may often occur.



You can view the glibc version in either of the following ways. One is that the software package for Linux is released in RPM mode. You can use the rpm-q glibc command to view the installed version of glibc. the number after the file name is the version number. In addition to view the/lib directory under the libc-x.y.z.so file, x, y, z marked the main version, the minor version and the revised version.



Kernel



The kernel is the core of Linux, and all functions of Linux are provided by the kernel, but different kernel versions will change a lot. For example, the differences between 2.4.x and 2.6.x are very large, they are completely incompatible. In addition, even if the 2.6.x kernel is used, different correction versions may be significantly different and may cause compatibility problems.



The production kernel version is run by the uname-r command.
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.