GD 라이브러리 설치 방법이 궁금합니다.
페도라 코어 3를 사용중입니다.
친구가 GD 라이브러리가 필요하다해서 설치를 하려 하는데 검색을 해도 없고
네이버에 나온것은
cd /usr/local1. gd 파일을 다운받는다.
2. 압축을 해제한다.
3. 압축 해제한 디렉토리로 이동한다.LIBS="-lpthread" LDFLAGS="-lpthread" \
CFLAGS="-O3 -funroll-loops -mcpu=i686 -march=i686 -fomit-frame-pointer" \
CXXFLAGS="-O3 -funroll-loops -mcpu=i686 -march=i686 -fomit-frame-pointer" \
./configure --prefix=/usr/local/gd
make
make install
이게 전부 입니다... 따라서 해봤는데
PATH="$PATH:/sbin" ldconfig -n /usr/local/gd/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/gd/libIf you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
이런 글귀가 나왔습니다.
그런데 솔직히 제대로 설치가 됬는지도 모르겠고..
인터넷 찾아보니 이미 설치가 되어있다는 글도 있고
aphache를 다시 컴파일 하라고 하는분도 있고[사실 이건 할줄을 모릅니다]
더이상 어떻게 진행을 해야 될지 막막합니다.
혹시 이전에 설치해보신 분 계시면 도움 부탁드립니다.
rpm으로 검색해보니 설치가 되어있는것도 갔습니다..
gd-2.0.33]# rpm -qa |grep gd
gd-2.0.28-1.30.1
gdb-6.1post-1.20040607.43.0.1
gdbm-1.8.0-24
sysklogd-1.4.1-26_FC3
gdk-pixbuf-0.22.0-16.fc3
gdm-2.6.0.5-6
gdbm-devel-1.8.0-24
gd-devel-2.0.28-1.30.1
[ gd-2.0.33]#
------------------------------------------------------------------------------
제대로 표현을 하지 않은 것이 있는것 같습니다.
php에서 사용할 목적입니다.
좋은 답변 부탁드립니다.
설치되어 있습니다.gd-x.y.z가 설치되어 있으니, gd에 의존
설치되어 있습니다.
gd-x.y.z가 설치되어 있으니, gd에 의존하는 다른 프로그램이 정상 동작할 것이며,
gd-devel-x.y.z가 설치되어 있으니, gd library를 쓰는 프로그램을 build할 수 있습니다.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
댓글 달기