当前位置:网站首页>Make a record of glib2.14 upgrading glib2.18 and the principle of the steps
Make a record of glib2.14 upgrading glib2.18 and the principle of the steps
2022-06-23 07:32:00 【Stoblie】
Be careful : As for what is GLIB This article will not elaborate on it . Everyone is upgrading GLIB Remember to take a snapshot first , In order to prevent some programs from running normally after upgrading . This article is applicable to multiple versions , It only records 2.18.
background : Because of some kind of production demand , The environment of virtual machine is centos6.9,gllib2.12, And program dependence glib2.18, So this article came into being .
Environmental Science : centos6.9,GLIB2.12
The goal is : take centos6.9,GLIB2.12 Upgrade to GLIB2.18
ldd --version View local GLIB edition

Steps are as follows :
One 、 download GLIB package
curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gzIf there are students who can't connect to the Internet , It can be in a machine that can be networked ( No system requirements ) Pre download installation package , And then again SCP To need to upgrade GLIB The virtual machine of .
If you need to upgrade to other versions of the students can also go to http://ftp.gnu.org/gnu/glibc/ Download other versions , And then again SCP To need to upgrade GLIB The virtual machine of .
Two 、 Unzip the installation package
tar xf glibc-2.18.tar.gz3、 ... and 、 Get into GLIB Installation package folder
cd glibc-2.18Four 、 Start upgrading
mkdir build && cd build
../configure --prefix=/usr # Pay attention , Don't change the path
make -j2
make install
explain : establish build Folder and enter . perform configure file , And specify make install Of The installation directory by /usr.
configure: Check for file compilation interdependencies , And generate makefile.
--prefix: Appoint The installation directory .
- First check some configuration and environment of the machine , System dependencies . If there is no dependency , The script will stop executing , Software installation failed
- Based on the results of previous checks of environment and dependencies , production Makefile file (main job)
configure After successful execution, you can see the following files generated in the current directory :

When you see Makefile That means the environment is OK , You can start installing . Here are some explanations of the commands .
make: Compile the source code and generate the executable file .
-j2 ( -jn): use make -j With one parameter , You can compile projects in parallel , For example, on a dual core machine , It can be used make -j4, Give Way make Most allow 4 Compile commands are executed at the same time , This can make more effective use of CPU resources .
explain :
- make yes Unix A package under the system . perform make Command required Makefile file .make Will be based on Makefile File to install the software
- Makefile There are many labels in the document , To express a different section. General ,make Will compile the source code and generate the executable , Actually Makefile It mainly describes the interdependence of file compilation
make install: take make The executable file of stage production is copied to Corresponding place .
Corresponding place :configure Generate makefile A designated place when (--prefix The address referred to ).
explain :
- When executed make The command takes no arguments , The procedure will follow Makefile The instructions are in the corresponding section Jump between and execute the corresponding command
- add install Parameters are executed make install when , The program will only execute install section The order of .install section The order of will make Copy the stage production executable to the appropriate place .
5、 ... and 、 Check to see if the upgrade is successful
ldd --version
notice ldd (GNU libc) 2.18 Indicates that the upgrade has been successful .
If this article is useful to you , Please like the collection and forward a wave ~ thank you ~~
边栏推荐
- Mysql数据库的几个特点
- Product axure9 (English version), prototype design and production pull-down secondary menu
- Mysql事务隔离级别
- JS to determine the added and decreased elements of two arrays
- In depth learning series 47:stylegan summary
- 20bn Jester complete dataset Download
- char和varchar区别
- Data types in tensorflow
- [* * * array * * *]
- NFS 特别注意权限的问题
猜你喜欢

Advanced drawing skills of Excel lecture 100 (VIII) -excel drawing WiFi diagram

如何优雅的快速下载谷歌云盘的大文件 (二)

传智教育 | 多人协作开发出现代码冲突,如何合并代码?

In depth learning series 47:stylegan summary

Flannel 工作原理

JS to determine the added and decreased elements of two arrays

20bn Jester complete dataset Download

Initialization layer implementation

3dmax插件开发环境配置及FileExport和Utilities模板测试

Here comes the dry goods | PAAS collection to see first ~
随机推荐
[AI practice] xgb Xgbregression multioutputregressor parameter 1
Nacos适配oracle11g-修改Nacos源码
C WPF realizes dynamic loading of controls through binding
How to verify date format in PHP (regular)
SSM integration
Pspnet complete code implementation
干货来了|《PaaS》合辑抢先看~
Akamai-1.75版本-_abck参数生成-js逆向分析
User mode and kernel mode
How to achieve efficient network information dissemination
传智教育 | 项目发布前如何打tag标签及标签命名规范
The List
Technical article writing guide
codeforce 158B Taxi
897. incremental sequential search tree
Ffplay realizes user-defined input stream playback
MySQL(二) — MySQL数据类型
Pagoda forgot password
901. stock price span
‘latin-1‘ codec can‘t encode characters in position 103-115: Body (‘一串中文‘) is not valid Latin-1