01. MySQL 설치 전 작업

2022. 3. 4. 10:51·Development

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
'Development' 카테고리의 다른 글
  • [Linux] 환경변수 확인
  • OpenSSL 업그레이드
  • [Web] User Agent에 대해 알아보자
  • 크롤러 우회
곽진돔
곽진돔
Developer
  • 곽진돔
    echo "곽박한 세상";
    곽진돔
  • 전체
    오늘
    어제
    • 분류 전체보기 (184)
      • Development (57)
        • Linux (13)
        • k8s (3)
        • Docker (5)
        • AWS (1)
        • PHP (35)
        • Python (21)
        • Java (1)
        • SpringBoot (4)
        • JavaScript (1)
        • React (8)
        • MySql (19)
        • MongoDB (1)
      • Daily (4)
      • Study (6)
        • TIL (1)
        • license (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
    • 설정
  • 링크

    • github
  • 공지사항

  • 인기 글

  • 태그

    정규표현식
    ssh
    CentOS7
    MySQL
    nodejs
    HTML
    Shell
    db
    Java
    Selenium
    Linux
    크롤링
    php
    IP
    윈도우
    date
    JavaScript
    Python
    리눅스
    chromedriver
    스프링부트
    docker
    springboot
    react
    CentOS
    error
    인코딩
    SQL
    리액트
    UTF8
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
곽진돔
01. MySQL 설치 전 작업
상단으로

티스토리툴바