linux上下キー、rlwrapで解決
6246 ワード
2つのパッケージをインストールする必要があります.readline,yum直接インストールを構成する[root@test152 ~]# yum install readline*2.rlwrapこのダウンロード接続は現在有効で、たくさん探して役に立ちませんでしたhttps://files-cdn.cnblogs.com/files/killkill/rlwrap-0.30.tar.gz.zip
または
[root@test152 ~]# tar -zxvf rlwrap-0.30.tar.gz.zip [root@test152 ~]# cd rlwrap-0.30[root@test152 rlwrap-0.30]# ./configure ...configure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating doc/Makefileconfig.status: creating src/Makefileconfig.status: creating doc/rlwrap.manconfig.status: creating distribution/rlwrap.specconfig.status: creating config.hconfig.status: executing depfiles commands
Now do: make (or gmake) to build rlwrap make check for instructions how to test it make install to install it
[root@test152 rlwrap-0.30]# makemake all-recursivemake[1]: Entering directory `/root/rlwrap-0.30'Making all in docmake[2]: Entering directory `/root/rlwrap-0.30/doc'sed -e 's#@DATADIR@#/usr/local/share#' rlwrap.man > rlwrap.1make[2]: Leaving directory `/root/rlwrap-0.30/doc'Making all in srcmake[2]: Entering directory `/root/rlwrap-0.30/src'gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cmv -f .deps/main.Tpo .deps/main.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT signals.o -MD -MP -MF .deps/signals.Tpo -c -o signals.o signals.cmv -f .deps/signals.Tpo .deps/signals.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT readline.o -MD -MP -MF .deps/readline.Tpo -c -o readline.o readline.cmv -f .deps/readline.Tpo .deps/readline.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT pty.o -MD -MP -MF .deps/pty.Tpo -c -o pty.o pty.cmv -f .deps/pty.Tpo .deps/pty.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT completion.o -MD -MP -MF .deps/completion.Tpo -c -o completion.o completion.cmv -f .deps/completion.Tpo .deps/completion.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT term.o -MD -MP -MF .deps/term.Tpo -c -o term.o term.cmv -f .deps/term.Tpo .deps/term.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT ptytty.o -MD -MP -MF .deps/ptytty.Tpo -c -o ptytty.o ptytty.cmv -f .deps/ptytty.Tpo .deps/ptytty.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cmv -f .deps/utils.Tpo .deps/utils.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT string_utils.o -MD -MP -MF .deps/string_utils.Tpo -c -o string_utils.o string_utils.cmv -f .deps/string_utils.Tpo .deps/string_utils.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT malloc_debug.o -MD -MP -MF .deps/malloc_debug.Tpo -c -o malloc_debug.o malloc_debug.cmv -f .deps/malloc_debug.Tpo .deps/malloc_debug.Pogcc -DDATADIR=\"/usr/local/share\"-g -O2 -o rlwrap main.o signals.o readline.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o -lutil -lreadline -lcursesmake[2]: Leaving directory `/root/rlwrap-0.30/src'make[2]: Entering directory `/root/rlwrap-0.30'make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'[root@test152 rlwrap-0.30]# make checkMaking check in docmake[1]: Entering directory `/root/rlwrap-0.30/doc'make[1]: Nothing to be done for `check'.make[1]: Leaving directory `/root/rlwrap-0.30/doc'Making check in srcmake[1]: Entering directory `/root/rlwrap-0.30/src'make[1]: Nothing to be done for `check'.make[1]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Entering directory `/root/rlwrap-0.30'make check-TESTSmake[2]: Entering directory `/root/rlwrap-0.30'
****************************************************************************** ** Testing rlwrap from within "make"causes problems with signal handling ** therefore, you should do it by hand: ** $ src/rlwrap perl test/testclient ** ******************************************************************************
PASS: test/testit==================All 1 tests passed==================make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'[root@test152 rlwrap-0.30]# make installMaking install in docmake[1]: Entering directory `/root/rlwrap-0.30/doc'make[2]: Entering directory `/root/rlwrap-0.30/doc'make[2]: Nothing to be done for `install-exec-am'.test -z "/usr/local/share/man/man1"||/bin/mkdir -p "/usr/local/share/man/man1"/usr/bin/install -c -m 644 './rlwrap.1' '/usr/local/share/man/man1/rlwrap.1'make[2]: Leaving directory `/root/rlwrap-0.30/doc'make[1]: Leaving directory `/root/rlwrap-0.30/doc'Making install in srcmake[1]: Entering directory `/root/rlwrap-0.30/src'make[2]: Entering directory `/root/rlwrap-0.30/src'test -z "/usr/local/bin"||/bin/mkdir -p "/usr/local/bin"/usr/bin/install -c 'rlwrap' '/usr/local/bin/rlwrap'make[2]: Nothing to be done for `install-data-am'.make[2]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Entering directory `/root/rlwrap-0.30'make[2]: Entering directory `/root/rlwrap-0.30'make[2]: Nothing to be done for `install-exec-am'.test -z "/usr/local/share/rlwrap"||/bin/mkdir -p "/usr/local/share/rlwrap"/usr/bin/install -c -m 644 'completions/ftp' '/usr/local/share/rlwrap/ftp'/usr/bin/install -c -m 644 'completions/testclient' '/usr/local/share/rlwrap/testclient'/usr/bin/install -c -m 644 'completions/coqtop' '/usr/local/share/rlwrap/coqtop'make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'
[root@test152 ~]# su - oracle [oracle@test152 ~]$ vi .bash_profile ...alias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'
[oracle@test152 ~]$ source .bash_profileそれから、波を上下にひっくり返すことができます
または
wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
[root@test152 ~]# tar -zxvf rlwrap-0.30.tar.gz.zip [root@test152 ~]# cd rlwrap-0.30[root@test152 rlwrap-0.30]# ./configure ...configure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating doc/Makefileconfig.status: creating src/Makefileconfig.status: creating doc/rlwrap.manconfig.status: creating distribution/rlwrap.specconfig.status: creating config.hconfig.status: executing depfiles commands
Now do: make (or gmake) to build rlwrap make check for instructions how to test it make install to install it
[root@test152 rlwrap-0.30]# makemake all-recursivemake[1]: Entering directory `/root/rlwrap-0.30'Making all in docmake[2]: Entering directory `/root/rlwrap-0.30/doc'sed -e 's#@DATADIR@#/usr/local/share#' rlwrap.man > rlwrap.1make[2]: Leaving directory `/root/rlwrap-0.30/doc'Making all in srcmake[2]: Entering directory `/root/rlwrap-0.30/src'gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cmv -f .deps/main.Tpo .deps/main.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT signals.o -MD -MP -MF .deps/signals.Tpo -c -o signals.o signals.cmv -f .deps/signals.Tpo .deps/signals.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT readline.o -MD -MP -MF .deps/readline.Tpo -c -o readline.o readline.cmv -f .deps/readline.Tpo .deps/readline.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT pty.o -MD -MP -MF .deps/pty.Tpo -c -o pty.o pty.cmv -f .deps/pty.Tpo .deps/pty.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT completion.o -MD -MP -MF .deps/completion.Tpo -c -o completion.o completion.cmv -f .deps/completion.Tpo .deps/completion.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT term.o -MD -MP -MF .deps/term.Tpo -c -o term.o term.cmv -f .deps/term.Tpo .deps/term.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT ptytty.o -MD -MP -MF .deps/ptytty.Tpo -c -o ptytty.o ptytty.cmv -f .deps/ptytty.Tpo .deps/ptytty.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cmv -f .deps/utils.Tpo .deps/utils.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT string_utils.o -MD -MP -MF .deps/string_utils.Tpo -c -o string_utils.o string_utils.cmv -f .deps/string_utils.Tpo .deps/string_utils.Pogcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\"-g -O2 -MT malloc_debug.o -MD -MP -MF .deps/malloc_debug.Tpo -c -o malloc_debug.o malloc_debug.cmv -f .deps/malloc_debug.Tpo .deps/malloc_debug.Pogcc -DDATADIR=\"/usr/local/share\"-g -O2 -o rlwrap main.o signals.o readline.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o -lutil -lreadline -lcursesmake[2]: Leaving directory `/root/rlwrap-0.30/src'make[2]: Entering directory `/root/rlwrap-0.30'make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'[root@test152 rlwrap-0.30]# make checkMaking check in docmake[1]: Entering directory `/root/rlwrap-0.30/doc'make[1]: Nothing to be done for `check'.make[1]: Leaving directory `/root/rlwrap-0.30/doc'Making check in srcmake[1]: Entering directory `/root/rlwrap-0.30/src'make[1]: Nothing to be done for `check'.make[1]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Entering directory `/root/rlwrap-0.30'make check-TESTSmake[2]: Entering directory `/root/rlwrap-0.30'
****************************************************************************** ** Testing rlwrap from within "make"causes problems with signal handling ** therefore, you should do it by hand: ** $ src/rlwrap perl test/testclient ** ******************************************************************************
PASS: test/testit==================All 1 tests passed==================make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'[root@test152 rlwrap-0.30]# make installMaking install in docmake[1]: Entering directory `/root/rlwrap-0.30/doc'make[2]: Entering directory `/root/rlwrap-0.30/doc'make[2]: Nothing to be done for `install-exec-am'.test -z "/usr/local/share/man/man1"||/bin/mkdir -p "/usr/local/share/man/man1"/usr/bin/install -c -m 644 './rlwrap.1' '/usr/local/share/man/man1/rlwrap.1'make[2]: Leaving directory `/root/rlwrap-0.30/doc'make[1]: Leaving directory `/root/rlwrap-0.30/doc'Making install in srcmake[1]: Entering directory `/root/rlwrap-0.30/src'make[2]: Entering directory `/root/rlwrap-0.30/src'test -z "/usr/local/bin"||/bin/mkdir -p "/usr/local/bin"/usr/bin/install -c 'rlwrap' '/usr/local/bin/rlwrap'make[2]: Nothing to be done for `install-data-am'.make[2]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Leaving directory `/root/rlwrap-0.30/src'make[1]: Entering directory `/root/rlwrap-0.30'make[2]: Entering directory `/root/rlwrap-0.30'make[2]: Nothing to be done for `install-exec-am'.test -z "/usr/local/share/rlwrap"||/bin/mkdir -p "/usr/local/share/rlwrap"/usr/bin/install -c -m 644 'completions/ftp' '/usr/local/share/rlwrap/ftp'/usr/bin/install -c -m 644 'completions/testclient' '/usr/local/share/rlwrap/testclient'/usr/bin/install -c -m 644 'completions/coqtop' '/usr/local/share/rlwrap/coqtop'make[2]: Leaving directory `/root/rlwrap-0.30'make[1]: Leaving directory `/root/rlwrap-0.30'
[root@test152 ~]# su - oracle [oracle@test152 ~]$ vi .bash_profile ...alias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'
[oracle@test152 ~]$ source .bash_profileそれから、波を上下にひっくり返すことができます