우분투 libncursesw5-dev 설치

Jmnote (토론 | 기여)님의 2016년 4월 20일 (수) 02:22 판 (→‎설치 성공)
  다른 뜻에 대해서는 CentOS ncurses-devel 설치 문서를 참조하십시오.

1 문제상황

root@zetawiki:~# pecl install ncurses
... (생략)
Zend Extension Api No:   220121212
enable support for wide chars? [autodetect] : 
path to ncurses installation? [autodetect] :
... (생략)
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether we should enable wide char support... autodetect
checking for ncurses support... yes, shared
checking for initscr in -lncursesw... no
configure: error: Wrong ncurses lib version or lib not found
ERROR: `/tmp/pear/temp/ncurses/configure --enable-ncursesw=autodetect --with-ncurses' failed
→ pecl로 ncurses 패키지 설치 실패

2 libncursesw5-dev 설치

root@zetawiki:~# apt-get install ncurses-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
root@zetawiki:~# apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
root@zetawiki:~# apt-get install libncursesw5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncursesw5-dev
0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded.
Need to get 197 kB of archives.
After this operation, 1,208 kB of additional disk space will be used.
... (생략)
Unpacking libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...
Setting up libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...

3 (Optional) 설치 성공

root@zetawiki:~# pecl install ncurses
... (생략)
Build process completed successfully
Installing '/usr/lib/php5/20121212/ncurses.so'
install ok: channel://pecl.php.net/ncurses-1.0.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=ncurses.so" to php.ini

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}