달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

http://suite.tistory.com/   fs 2008 03 19


make 하면 나오는에러 내용


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format


/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


이런류 에러원인은 32비트에서 쓰던 소스를  64비트 가서 컴파일 하면서 나오는 현상인데
해결은 여러가지가 있겠지만 링크 파일을 바꾸는방법이 제일 쉬운것 같다.


ex)

CentOS 4.4 64비트경우

==== .bash_profile =====


64비트용으로 변경후

#/usr/lib> ln -s /usr/lib64/libexpat.so libexpat.so
#/usr/lib> ln -s /usr/lib64/libdb-4.3.so libdb-4.3.so


다시 컴파일

/httpd-2.0.54/>make clean
/httpd-2.0.54/>./configure
/httpd-2.0.54/>make
/httpd-2.0.54/>make install

 

:
Posted by mastar