Skip to content

1. openssl 설치 ( ./config && make && make install)

2. mod_ssl configure설정 ( ./configure --with-apache=/usr/local/src/apache-1.3.37 --with-ssl=/usr/local/ssl )

3. apache ./configure 설정 후 make 실행시 Bad Value라는 에러메시지와 함께 컴파일 중단



에러메세지

/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

make[4]: *** [libssl.so] 오류 1

make[3]: *** [all] 오류 1

make[2]: *** [subdirs] 오류 1

make[2]: Leaving directory `/usr/local/src/apache_1.3.37/src'

make[1]: *** [build-std] 오류 2

make[1]: Leaving directory `/usr/local/src/apache_1.3.37'

make: *** [build] 오류 2


해결방법

-> openssl 을 ./config 할때 -fPIC 옵션을 추가해주면 해결됩니다

./config -fPIC && make && make install



www.modssl.or.kr 에서는, -fPIC 옵션에 대해 다음과 같이 설명하고 있습니다.

=> " . /config -fPIC로 해, DSO판 작성시에 필요한 PIC(Position Independent Code) 옵션을 지정해 configure 한다. " 

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/2021/a48/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수

sysctl 커널 파라미터

history 시간 정보 출력

hdparm - 하드디스크의 자세한 정보 보기

시스템 최적화 - 동시사용자 늘리기위한 커널 조정

아파치 HARD_SERVER_LIMIT

Linux 소켓 접속 개수 늘리기

net-snmp 설치 및 snmp 사용법

리눅스 파일 복구 명령 debugfs

오라클시작

[APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법

압축 : tar / gzip / jar / tbz 사용법

tar.gz 특정 디렉토리에 압축풀기

MRTG 설치

net-snmp-5.3.2.3

아파치 모듈 mod_status file

리눅스 쓸데없는 파일,로그파일 주기적으로 삭제하기

리눅스에서 일정기간 이상된 파일 삭제하기

리눅스로그파일삭제 어떤걸삭제하나요?

보안서버구축시 아파치 컴파일 중 "can not be used when ...

리눅스 vsftp의 root 접속문제

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234