OpenSSL 설치
2022.03.17 - [개발일기] - 01. OpenSSL 업그레이드
기본 라이브러리 설치
# yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel libtool libtool-libs openldap openldap-devel nss_ldap openldap-clients openldap-servers libtool-ltdl libtool-ltdl-devel bison expat-devel
# yum -y install gd gd2 gd-devel gd2-devel wget pcre perl libaio
# yum -y install crontabs vixie-cron wget ntp
yum 안될 경우
# yum clean all
# yum clean metadata
epel 문제일 수 있으므로 설치(이미 설치된 경우에는 재설치)
# yum install epel-release
MySQL 5.7.24 설치
1. cmake, ncures-devel, boost 설치
ncures-devel
# yum -y install ncurses-devel
boost 설치
# cd APP
# pwd
/root/APP
# wget https://boostorg.jfrog.io/artifactory/main/release/1.70.0/source/boost_1_70_0.tar.gz
# tar xvfz boost_1_70_0.tar.gz
# cd /root/APP/boost_1_70_0
# ./bootstrap.sh
# ./b2 install
# ls /usr/local/include/
# ls /usr/local/include/boost
wget https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download?use_mirror=jaist
wget https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz
cmake 설치
# cd APP
# pwd
/root/APP
# wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1.tar.gz
# tar xvfz cmake-3.15.1.tar.gz
# cd cmake-3.15.1
# pwd
/root/APP/cmake-3.15.1
# ./bootstrap
# make
# make install
# cp -f ./bin/cmake ./bin/cpack ./bin/ctest /bin/
cp -f .bin/cmake ./bin/cpack ./binctest /bin/
cmake 버전 확인
# cmake --version
cmake version 3.15.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
# wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz
# tar xvfz cmake-3.20.0.tar.gz
# cd cmake-3.20.0
# pwd
/root/APP/cmake-3.20.0
# ./bootstrap --prefix=/usr/local
# make
# make install
# cmake --version
cmake version 3.15.1
GCC, G++ 7.x 설치
설치 전 gcc 버전 확인
# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7–23)
Software Collections 리포지토리 활성화
# yum install centos-release-scl
# yum update scl-utils
# yum install centos-release-sc
# yum install centos-release-scl
둘 중에 뭐가 맞는지 모르겠다. 첫번째는 No Available 에러 발생, 두번째는 Complete 된다. 둘이 다른 패키지인가?
No package centos-release-sc available. 에러 발생시
# yum clean all
yum clean all 후 재설치
Developer Toolset 설치
# yum install devtoolset-7
SCL 명령어를 사용하여 추가 설치한 GCC 활성화
# scl enable devtoolset-7 bash
재부팅 시, 활성화가 종료되어 이전 버전으로 실행된다.
gcc, g++ 설치 확인
4 ➡ 7 로 업그레이드 되었다.
# gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# g++ --version
g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
'Development' 카테고리의 다른 글
[Linux] 환경변수 확인 (0) | 2022.03.17 |
---|---|
OpenSSL 업그레이드 (0) | 2022.03.17 |
[Web] User Agent에 대해 알아보자 (0) | 2022.02.24 |
크롤러 우회 (0) | 2022.01.27 |
리눅스 에러 You have new mail in /var/spool/mail/root (0) | 2022.01.17 |