# ========================================================================================================================================== # ========================================================================================================================================== # [make-4.2.1] # ��װ�����make-4.2.1 (Ҫ�Ȱ�װautomake-1.15�����ϰ汾) # ����Դ�� �� # ����Ҫ���� ����4.2.1 or newer # http://ftp.gnu.org/gnu/make/make-4.2.1.tar.gz == ����ȷ���룬���������޷�������װ�� # ��ѹԴ���룺make-4.2.1 mkdir -p /home/soft/glibc/ wget -L http://ftp.gnu.org/gnu/make/make-4.2.1.tar.gz -O /home/soft/glibc/make-4.2.1.tar.gz tar -zxf /home/soft/glibc/make-4.2.1.tar.gz -C /home/soft/glibc/ # ========================================== # ׼������ # ���û��configure�ļ������Լ�����һ��configure�ļ��� # �������������� # https://www.jianshu.com/p/b97db7c9c915 # ִ�����yum install -y autoconf # ִ�����yum install -y automake yum install -y gcc gcc-c++ make && \ yum install -y libtool && \ yum install -y gettext-devel ## ��װ autopoint ��� cd /home/soft/glibc/make-4.2.1 # cd /home/soft/glibc/make-4.3.91 autoconf autoreconf -vif ## �������autoconfִ�б�������ִ����һ������ # �����������£� ## autoreconf: running: aclocal --force -I m4 ## autoreconf: configure.ac: tracing ## autoreconf: configure.ac: not using Libtool ## autoreconf: running: /usr/local/bin/autoconf --force ## configure.ac:86: error: possibly undefined macro: AC_STRUCT_ST_MTIM_NSEC ## If this token and others are legitimate, please use m4_pattern_allow. ## See the Autoconf documentation. ## autoreconf: /usr/local/bin/autoconf failed with exit status: 1 # ����ԭ��aclocal ·���Ҳ��� cp -rf /usr/share/aclocal/* /usr/local/share/aclocal/ # ========================================== # ׼������ cd /home/soft/glibc/make-4.2.1 ./configure --prefix=/usr/local # �����������£� ## configure: creating ./config.status ## config.status: creating Makefile ## config.status: creating glob/Makefile ## config.status: creating po/Makefile.in ## config.status: creating config/Makefile ## config.status: creating doc/Makefile ## config.status: creating w32/Makefile ## config.status: creating tests/config-flags.pm ## config.status: creating config.h ## config.status: executing depfiles commands ## config.status: executing po-directories commands ## config.status: creating po/POTFILES ## config.status: creating po/Makefile ## config.status: creating build.sh ## [root@CNT7XDFLY01 make-4.2.1]# # ========================================== # ִ�б��� make -j4 # ִ�а�װ make install # �����������£� ## make[2]: Leaving directory `/home/soft/glibc/make-4.2.1' ## make[1]: Leaving directory `/home/soft/glibc/make-4.2.1' ## [root@CNT7XDFLY01 make-4.2.1]# # ���Ұ�װ����ļ� find /usr/local/ | grep /make # ���������� mkdir -p /usr/bin/make_backup/ mv /usr/bin/make /usr/bin/make_backup/ ln -s /usr/local/bin/make /usr/bin/make # ��鰲װ������������� make --version # �����������£� ## [root@CNT7XDFLY01 make-4.2.1]# make --version ## GNU Make 4.2.1 ## Built for x86_64-pc-linux-gnu ## Copyright (C) 1988-2016 Free Software Foundation, Inc. ## License GPLv3+: GNU GPL version 3 or later ## This is free software: you are free to change and redistribute it. ## There is NO WARRANTY, to the extent permitted by law. ## [root@CNT7XDFLY01 make-4.2.1]# # ========================================================================================================================================== # ==========================================================================================================================================