Myo-Kyeong Tech Blog
[리눅스] 프로그램 설치 - 컴파일된 binary 압축 파일 다운로드 및 설치 본문
728x90
반응형
sqlite 데이터베이스 소스코드를 웹에서 다운받아 컴파일 한 후, 로컬 머신에 설치하는 방법입니다.
[ sqlite 다운로드 홈페이지 ]
https://sqlite.org/download.html
SQLite Download Page
Templates (1) and (2) are used for source-code products. Template (1) is used for generic source-code products and templates (2) is used for source-code products that are generally only useful on unix-like platforms. Template (3) is used for precompiled bi
sqlite.org
#SQLite 소스코드를 다운로드
wget https://sqlite.org/2023/sqlite-autoconf-3410200.tar.gz
#압축 해제
tar xf sqlite-autoconf-3410200.tar.gz
#압축이 해제된 디렉토리인 sqlite-autoconf-3410200로 이동
cd sqlite-autoconf-3410200
#--prefix 옵션을 사용하여 /sql 디렉토리에 SQLite를 설치하도록 지정
./configure --prefix=/sql
#make 명령어 사용하여 빌드
make
#SQLite를 /sql 디렉토리에 설치
make install
#/sql/bin 디렉토리에 sqlite3 바이너리 파일이 생성되어 있는지 확인
cd /sql
ls bin/
#SQLite 데이터베이스를 실행
/sql/bin/sqlite3
728x90
반응형
'리눅스' 카테고리의 다른 글
[리눅스] 환경 설정 ( Ubuntu 22.04 ) - 한글 locale , timezonee 설정 (0) | 2023.05.01 |
---|---|
[리눅스] 윈도우 마운트 ( Ubuntu 22.04 ) (0) | 2023.04.27 |
[리눅스] 웹 서버 설치 및 실행 ( Ubuntu 22.04 ) (0) | 2023.04.27 |
[리눅스] 파일 압축 및 해제 ( tar 명령어 ) (0) | 2023.04.26 |
[리눅스] 파일 분류 - 파일 종류, file 명령어 (0) | 2023.04.26 |