TCL/Tk package 가 설치되어 있는지 확인해 보시기 바랍니다.
rpm -qa | grep tk
rpm -qa | grep tcl
그리고 설치되어 있다면 /usr/include/tk.h 라는 파일이 있어야 합니다. 만약 없다면 다시 tcl/tk package 를 설치하시고 다시 재시도 하시기 바랍니다.
-- Q_mina 님이 쓰신 글:
>> 환경은 영문 레드햇 7.2 입니다.
>>
>> 컴파일시 아래와 같은 오류가 납니다.
>>
>> /usr/include/tk.h:83:29: X11/Xlib.h: 그런 파일이나 디렉토리가 없음
>>
>> 이라는 에러가 납니다. 이것을 어떻게 처리해야 할까요?
>>
>> 아래는 에러가 발생한 부분으로부터의 약간 윗줄부터의 내용입니다.
>>
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpgtcl -I../../../src/include -I/usr/X11R6/include -c -o pgtclAppInit.o pgtclAppInit.c
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl -L../../../src/interfaces/libpq -lpq -L/usr/lib -ltcl -ldl -lieee -lm -Wl,-rpath,/usr/local/pgsql/lib -lz -lcrypt -lresolv -lnsl -ldl -lm -lbsd -lreadline -ltermcap -o pgtclsh
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpgtcl -I../../../src/include -I/usr/X11R6/include -c -o pgtkAppInit.o pgtkAppInit.c
>> In file included from pgtkAppInit.c:15:
>> /usr/include/tk.h:83:29: X11/Xlib.h: 그런 파일이나 디렉토리가 없음
>> make[3]: *** [pgtkAppInit.o] 오류 1
|