소프트웨어

[ubuntu] library path에 관해서

개발자_이훈규 2016. 7. 20. 12:24

Ubuntu library path를 총괄하는 부분은 하나의 파일에서 시작한다.


/etc/ld.so.conf

위 파일에서 부터 시작한다. 속의 내용은 아래와 같다.

include /etc/ld.so.conf.d/*.conf                                                




/etc/ld.so.conf.d 여기에 있는 library file들을 참조하는데, library가 정의된 파일이 항상 존재한다.

이름은 ld.so.conf로 되어 각 폴더별로 ld.so.conf를 연결시킨다.



위 방법대로 설정을 하지 않는다면,

export LD_LIBRARY_PATH=[ lib path ]




참고 ; https://www.google.co.kr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#safe=off&q=ld.so.conf