重新編譯安裝gtypist時沒有找到ncurses/ncursesw庫 原

重新編譯安裝gtypist步驟

 

wget http://ftp.gnu.org/gnu/gtypist/gtypist-2.9.tar.xz

 $ tar zxvf [email protected]
 $ cd gtypist-@VERSION
 $ ./configure
 $ make
 $ sudo make install
 $ gtypist

./configure時出錯, 沒有找到ncurses/ncursesw庫

checking ncursesw/ncurses.h usability... no
checking ncursesw/ncurses.h presence... no
checking for ncursesw/ncurses.h... no
Error:  both library and header files for ncursesw library
is required to build this package.  See INSTALL file for further information.
 ✘ ⚡ root@cubietruck  /xsz/backup/gtypist-2.9  apt

檢查系統ncurses已經存在

 



 ⚡ root@cubietruck  /xsz/backup/gtypist-2.9  apt-get install libncurses
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libncurses
 ✘ ⚡ root@cubietruck  /xsz/backup/gtypist-2.9  apt-get install libncursesw
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libncursesw
 ✘ ⚡ root@cubietruck  /xsz/backup/gtypist-2.9  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 0 not upgraded.
 ⚡ root@cubietruck  /xsz/backup/gtypist-2.9 


 root@cubietruck  /  ldconfig -p | grep curs
        libncursesw.so.5 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libncursesw.so.5
        libncurses.so.5 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libncurses.so.5
        libXcursor.so.1 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libXcursor.so.1
locate ncurses.h:
	/usr/include/ncurses.h


 ⚡ root@cubietruck  / 
 ⚡ root@cubietruck  /  locate ncurses.h
/usr/include/ncurses.h
 ⚡ root@cubietruck  / 


linux下安裝ncurses

按如下步驟安裝,重新成功編譯ncurses後也沒有解決。

wget ftp://ftp.gnu.org/gnu/ncurses/ ncurses-6.1.tar.gz

tar zxvf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure
make
make install

 

安裝 libncursesw5-dev 後成功編譯 gtypist

 


 ⚡ root@cubietruck  /xsz/backup/gtypist-2.9  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 0 not upgraded.
Need to get 178 kB of archives.
After this operation, 912 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libncursesw5-dev armhf 5.9+20140118-1ubuntu1 [178 kB]
Fetched 178 kB in 2s (86.6 kB/s)
Selecting previously unselected package libncursesw5-dev:armhf.
(Reading database ... 132046 files and directories currently installed.)
Preparing to unpack .../libncursesw5-dev_5.9+20140118-1ubuntu1_armhf.deb ...
Unpacking libncursesw5-dev:armhf (5.9+20140118-1ubuntu1) ...
Setting up libncursesw5-dev:armhf (5.9+20140118-1ubuntu1) ...
 ⚡ root@cubietruck  /xsz/backup/gtypist-2.9 
[B] 14.04  0:..p/gtypist-2.9* 1:..p/ncurses-6.1-                   2h56m 2x1.0


 

gtypist - 類似DOS下的TT

 

運行環境

Linaro 14.04 \n \l

=========================================
Linux cubietruck 3.4.79 #1 SMP PREEMPT Wed Jan 28 10:07:33 CST 2015 armv7l armv7l armv7l GNU/Linux
=========================================
Linux version 3.4.79 (allen@cubieboard) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 SMP PREEMPT Wed Jan 28 10:07:33 CST 2015
=========================================
No LSB modules are available.
Distributor ID: Linaro
Description:    Linaro 14.04
Release:        14.04
Codename:       trusty
=========================================
         system boot  2018-07-06 19:18
 ⚡ root@cubietruck  /xsz 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章