"우분투 libncursesw5-dev 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>))
9번째 줄: 9번째 줄:
enable support for wide chars? [autodetect] :  
enable support for wide chars? [autodetect] :  
path to ncurses installation? [autodetect] :  
path to ncurses installation? [autodetect] :  
</source>
</syntaxhighlight>
<source lang='console'>
<source lang='console'>
... (생략)
... (생략)
22번째 줄: 22번째 줄:
configure: error: Wrong ncurses lib version or lib not found
configure: error: Wrong ncurses lib version or lib not found
ERROR: `/tmp/pear/temp/ncurses/configure --enable-ncursesw=autodetect --with-ncurses' failed
ERROR: `/tmp/pear/temp/ncurses/configure --enable-ncursesw=autodetect --with-ncurses' failed
</source>
</syntaxhighlight>
:→ pecl로 ncurses 패키지 설치 실패
:→ pecl로 ncurses 패키지 설치 실패


34번째 줄: 34번째 줄:
libncurses5-dev is already the newest version.
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
</source>
</syntaxhighlight>
<source lang='console'>
<source lang='console'>
root@zetawiki:~# apt-get install libncurses5-dev
root@zetawiki:~# apt-get install libncurses5-dev
42번째 줄: 42번째 줄:
libncurses5-dev is already the newest version.
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
</source>
</syntaxhighlight>
<source lang='console'>
<source lang='console'>
root@zetawiki:~# apt-get install libncursesw5-dev
root@zetawiki:~# apt-get install libncursesw5-dev
58번째 줄: 58번째 줄:
Unpacking libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...
Unpacking libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...
Setting up libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...
Setting up libncursesw5-dev:amd64 (5.9+20140118-1ubuntu1) ...
</source>
</syntaxhighlight>


== pecl 설치 테스트 ==
== pecl 설치 테스트 ==
69번째 줄: 69번째 줄:
configuration option "php_ini" is not set to php.ini location
configuration option "php_ini" is not set to php.ini location
You should add "extension=ncurses.so" to php.ini
You should add "extension=ncurses.so" to php.ini
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 00:43 판

  다른 뜻에 대해서는 CentOS ncurses-devel 설치 문서를 참조하십시오.

1 문제상황

<source lang='console'> root@zetawiki:~# pecl install ncurses ... (생략) Zend Extension Api No: 220121212 enable support for wide chars? [autodetect] : path to ncurses installation? [autodetect] : </syntaxhighlight> <source lang='console'> ... (생략) 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 </syntaxhighlight>

→ pecl로 ncurses 패키지 설치 실패

2 libncursesw5-dev 설치

<source lang='console'> 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. </syntaxhighlight> <source lang='console'> 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. </syntaxhighlight> <source lang='console'> 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) ... </syntaxhighlight>

3 pecl 설치 테스트

<source lang='console'> 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 </syntaxhighlight>

4 같이 보기

5 참고

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