zlib 소스설치

ITWeb/서버관리 2011. 9. 7. 13:35
요즘은 yum 으로 기본 설치 하는게 더 좋습니다.

# 다운로드

    http://zlib.net/

 

# 설치

    root 로 설치

 

# 압축풀기

    tar -xvzf zlib-1.2.7.tar.gz

 

# configure & make

    cd zlib-1.2.7

    ./configure --shared --prefix=/usr/local/zlib --libdir=/usr/lib --includedir=/usr/include

    make

    make install

 

# ld.so.conf 수정

    vi /etc/ld.so.conf

        파일 하단에 아래 내용 추가

        include /usr/local/zlib

 

# lib load

    /sbin/ldconfig 실행

:

openssl 소스설치하기.

ITWeb/서버관리 2011. 9. 7. 13:34
걍.. 요즘은 yum 으로 default 설치 하시는게 좋은 것 같습니다.

# 다운로드

    http://www.openssl.org/source/

 

# 설치

    root 로 설치

 

# 압축풀기

    tar -xvzf openssl-1.0.0d.tar.gz

 

# configure & make

    cd openssl-1.0.0d

    ./config --openssldir=/usr/local/ssl shared threads zlib

    make

    make install

 

# ld.so.conf 수정

    vi /etc/ld.so.conf

        파일 하단에 아래 내용 추가

        include /usr/local/ssl/lib

 

# lib load

    /sbin/ldconfig 실행

:

[httpd] mod_disk_cache.c:91: undefined reference to `ap_cache_generate_name'

ITWeb/서버관리 2011. 9. 7. 13:33
오타 또는 옵션을 빼먹기 쉽습니다.. ^^;

configure 옵션에 --enable-cache 옵션을 주지 않고 다른 cache 옵션을 주게 되면 make 시에 아래와 같은 오류가 발생 합니다.

 

넣는다고 넣었는데.. 빼먹는 경우가 간혹 있으니 주의 하세요!!

 

modules/cache/.libs/libmod_disk_cache.a(mod_disk_cache.o): In function
`data_file':
/u00/httpd-2.2.6/modules/cache/mod_disk_cache.c:91: undefined reference to
`ap_cache_generate_name'
modules/cache/.libs/libmod_disk_cache.a(mod_disk_cache.o): In function
`header_file':
/u00/httpd-2.2.6/modules/cache/mod_disk_cache.c:73: undefined reference to
`ap_cache_generate_name'
modules/cache/.libs/libmod_disk_cache.a(mod_disk_cache.o): In function
`store_headers':
/u00/httpd-2.2.6/modules/cache/mod_disk_cache.c:906: undefined reference to
`ap_cache_cacheable_hdrs_out'
/u00/httpd-2.2.6/modules/cache/mod_disk_cache.c:928: undefined reference to
`ap_cache_cacheable_hdrs_out'

 
:

berkeley db 소스설치하기

ITWeb/서버관리 2011. 9. 7. 13:32

# 다운로드

    http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html

 

# 압축풀기

    tar -xvzf db-4.8.30.NC.tar.gz

 

# configure & make

    cd db-4.8.30.NC

    make clean

    cd build_unix

    ../dist/configure --prefix=/home/계정/app/bdb --enable-cxx --enable-shared --enable-static

    make

    make install

:

CentOS network proxy 설정

ITWeb/서버관리 2011. 9. 7. 13:30

1. cd /etc

2. vi profile

3. 아래 코드 삽입 (/bin/bash 사용)

    http_proxy=프락시정보등록
    export http_proxy

 

기본 GUI 환경에서 세팅을 먼저 진행한 후 설정 정보 이기 때문에 동작 여부 확인 필요함.

: