쉘 소스 설치시 wget url로 파일 다운로드 후
tar로 압축 해제
/configure
/configure
configure는 소스 파일에 대한 환경설정을 해주는 명령어이다. configure뒤에 필요한 옵션을 줄 수 있다.
--prefix=경로 : 해당 경로에 파일을 설치
configure에서 에러가 발생할 경우, 에러 내용을 확인 후 configure 구성내용을 변경한다.
필요한 프로그램이나 라이브러리가 없는 경우에는 설치해주면 되고, 입력한 경로에서 문제가 발생할 수도 있는데 configure 구성에서 경로가 맞게 설정되어있는지 확인한다.
ex. php cofigure
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/apache/conf --enable-safe-mode --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --with-gd --with-gettext --with-iconv=/usr/local/bin/iconv
/cofigure에서 설정을 잘못한 경우 make distclean 으로 지우면 된다.
make
make
make는 소스를 컴파일 하는 것이다. 소스 파일을 사용자가 실행 가능한 파일로 만들어 주는 과정이다.
make 과정이 끝나면 설치 파일이 생성된다.
make 다시 컴파일하려면 make clean 을 입력하면된다.
make install
make install
make 과정으로 생성된 설치 파일을 설치한다.
설치를 제거하려면 make uninstall 을 입력하면된다.
'Development > Linux' 카테고리의 다른 글
[Python] 리눅스 서버(centos7)에 파이썬 크롤러 환경 셋팅하기 (0) | 2023.01.26 |
---|---|
[centOS7] 리눅스 ssh 접속 허용하기 (0) | 2023.01.20 |
한글 깨질 때 인코딩 설정하기 (0) | 2023.01.12 |
[WSL] 터미널에서 로그인이 되지않을 때 바꾸는 법 (0) | 2023.01.12 |
윈도우에서 cron 사용하기 (0) | 2022.12.08 |