-
[Cassandra 설치 #2] Python2.7 파이썬 2점대 버전 설치 및 실행DataBase/Cassandra 2021. 7. 23. 23:08
Cassandra CLI 환경을 사용하기 위해서는 반드시 2.7버전 설치 필요!!
1. Python 2.7 버전 다운로드
https://www.python.org/downloads/source/
# CLI python 다운로드 $ wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
# 다운로드 폴더 압축 해제 $ tar -xzvf Python-2.7.11.tgz
# 다운로드 파일 삭제 $ rm -rf Python-2.7.11.tgz
2. Python 2.7 소스 빌드 환경 구성
- 파이썬 실행을 위한 소스 빌드 환경 구성하기
$ cd Python-2.7.11 $ make install
💩 에러 메세지1
The program 'make' can be found in the following packages: * make * make-guile Ask your administrator to install one of them
👉 make로 다시 시도
$ make
💩 에러 메세지2
make: *** No targets specified and no makefile found. Stop.
👉 makefile이 없으므로, 아래 명령어로 makefile 만들어주기
# makefile 만들어주기 $ ./configure
💩 에러 메세지3
configure: error: in `/home/data/Python-2.7.15':
configure: error: no acceptable C compiler found in $PATH3. 소스 빌드 환경 구성에 필요한 라이브러리 설치
$ sudo apt-get update $ sudo apt-get install build-essential
# Profile Guided Optimization을 사용하여 python 코드를 실행하는 interpreter 속도를 향상 시킴 $ ./configure --enable-optimizations
$ sudo make altinstall
4. Python2 실행
# "python" 실행 파일 생성 확인 $ ls
$ python2.7
# 별칭 바꿔주기 $ alias python=python2.7 # python 2점대 버전만 사용할 경우 $ alis python2=python2.7 # python 3점대 버전과 함께 사용할 경우
- 이상 오늘의 삽질일기 끝:)
여기저기 삽질도 해보고
날려도 먹으면서
배우는 게
결국 남는거다
- Z.Sabziller
'DataBase > Cassandra' 카테고리의 다른 글
👀 Cassandra Keyspace, Table 스키마 생성(feat. Collection type, User-Defined type 생성) (0) 2021.07.31 [Cassandra 설치 #3] Cassandra 3.11 설치 및 Cqlsh 실행 오류 해결(feat. Cassandra-driver) (0) 2021.07.26 [Cassandra 설치 #1] 리눅스 JAVA 설치 (feat. Java SDK Java 8 버전) (0) 2021.07.21 [Cassandra] Tutorial #1 (0) 2021.02.09 [Cassandra] 카산드라 3.9 버전 설치 및 실행 오류 해결 (feat. Java jdk1.8.0_251, Python2.7 버전) (0) 2021.01.10