重新编译安装gtypist步骤
wget http://ftp.gnu.org/gnu/gtypist/gtypist-2.9.tar.xz
$ tar zxvf gtypist-@VERSION.tar.gz
$ 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 /
按如下步骤安装,重新成功编译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