본문 바로가기
Dev

oauth 모듈 컴파일 오류 해결법

by ryush00 2013. 2. 19.

[root@ryush00 oauth-1.2.3]# make && make install

/bin/sh /root/dev/oauth-1.2.3/libtool --mode=compile cc  -I. -I/root/dev/oauth-1.2.3 -DPHP_ATOM_INC -I/root/dev/oauth-1.2.3/include -I/root/dev/oauth-1.2.3/main -I/root/dev/oauth-1.2.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -g   -c /root/dev/oauth-1.2.3/oauth.c -o oauth.lo

libtool: compile:  cc -I. -I/root/dev/oauth-1.2.3 -DPHP_ATOM_INC -I/root/dev/oauth-1.2.3/include -I/root/dev/oauth-1.2.3/main -I/root/dev/oauth-1.2.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /root/dev/oauth-1.2.3/oauth.c  -fPIC -DPIC -o .libs/oauth.o

In file included from /root/dev/oauth-1.2.3/php_oauth.h:47,

                 from /root/dev/oauth-1.2.3/oauth.c:14:

/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: 그런 파일이나 디렉터리가 없습니다

In file included from /root/dev/oauth-1.2.3/php_oauth.h:47,

                 from /root/dev/oauth-1.2.3/oauth.c:14:

/usr/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

/usr/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'

make: *** [oauth.lo] 오류 1


oauth를 깔다가 이런 오류가 발생되었습니다.

인터넷을 뒤지다 해결법 발견.


yum install pcre
yum install pcre-devel

이 명령어를 쳐주면 해결됩니다.

댓글