{"id":994,"date":"2013-07-21T10:03:32","date_gmt":"2013-07-21T02:03:32","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=994"},"modified":"2013-07-21T10:03:32","modified_gmt":"2013-07-21T02:03:32","slug":"rlwrap%e7%9a%84%e5%ae%89%e8%a3%85_x64_linux6-0","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=994","title":{"rendered":"rlwrap\u7684\u5b89\u88c5_x64_linux6.0"},"content":{"rendered":"<p>rlwrap\u7684\u5b89\u88c5<br \/>\n\u8be5\u5305\u7684\u4f5c\u7528\u662f\u4e3a\u4e86\u89e3\u51b3\u5728sql*plus\u4e0b\u4e0a\u4e0b\u5de6\u53f3\u5220\u9664\u6309\u952e\u663e\u793a\u4e71\u7801\u7684\u95ee\u9898<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f<br \/>\n[root@rhl6 ~]# uname -a<br \/>\nLinux rhl6.0x64 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU\/Linux<br \/>\n[root@rhl6 ~]# cat \/etc\/redhat-release<br \/>\nRed Hat Enterprise Linux Server release 6.0 (Santiago)<\/p>\n<p>\u4e0a\u4f20rlwrap\u5305\u5e76\u89e3\u538b<br \/>\n[root@rhl6 tmp]# ls -l rlwrap-0.37.tar.gz<br \/>\n-rw-r--r--. 1 root root 251438 Jul 21 09:35 rlwrap-0.37.tar.gz<br \/>\n[root@rhl6 tmp]# tar -zxvf rlwrap-0.37.tar.gz<br \/>\nrlwrap-0.37\/<br \/>\nrlwrap-0.37\/completions\/<br \/>\nrlwrap-0.37\/completions\/testclient<br \/>\nrlwrap-0.37\/completions\/coqtop<br \/>\nrlwrap-0.37\/doc\/<br \/>\nrlwrap-0.37\/doc\/rlwrap.man.in<br \/>\nrlwrap-0.37\/doc\/Makefile.am<br \/>\nrlwrap-0.37\/doc\/Makefile.in<br \/>\nrlwrap-0.37\/filters\/<br \/>\nrlwrap-0.37\/filters\/README<br \/>\nrlwrap-0.37\/filters\/RlwrapFilter.pm<br \/>\nrlwrap-0.37\/filters\/RlwrapFilter.3pm<br \/>\nrlwrap-0.37\/filters\/count_in_prompt<br \/>\nrlwrap-0.37\/filters\/pipeto<br \/>\nrlwrap-0.37\/filters\/logger<br \/>\nrlwrap-0.37\/filters\/null<br \/>\nrlwrap-0.37\/filters\/unbackspace<br \/>\nrlwrap-0.37\/filters\/pipeline<br \/>\nrlwrap-0.37\/filters\/ftp_filter<br \/>\nrlwrap-0.37\/filters\/history_format<br \/>\nrlwrap-0.37\/filters\/simple_macro<br \/>\nrlwrap-0.37\/filters\/template<br \/>\nrlwrap-0.37\/filters\/scrub_prompt<br \/>\nrlwrap-0.37\/filters\/paint_prompt<br \/>\nrlwrap-0.37\/filters\/censor_passwords<br \/>\nrlwrap-0.37\/filters\/listing<br \/>\nrlwrap-0.37\/filters\/Makefile.am<br \/>\nrlwrap-0.37\/filters\/Makefile.in<br \/>\nrlwrap-0.37\/src\/<br \/>\nrlwrap-0.37\/src\/rlwrap.h<br \/>\nrlwrap-0.37\/src\/redblack.h<br \/>\nrlwrap-0.37\/src\/malloc_debug.h<br \/>\nrlwrap-0.37\/src\/completion.rb<br \/>\nrlwrap-0.37\/src\/Makefile.am<br \/>\nrlwrap-0.37\/src\/Makefile.in<br \/>\nrlwrap-0.37\/src\/main.c<br \/>\nrlwrap-0.37\/src\/signals.c<br \/>\nrlwrap-0.37\/src\/readline.c<br \/>\nrlwrap-0.37\/src\/pty.c<br \/>\nrlwrap-0.37\/src\/completion.c<br \/>\nrlwrap-0.37\/src\/term.c<br \/>\nrlwrap-0.37\/src\/ptytty.c<br \/>\nrlwrap-0.37\/src\/utils.c<br \/>\nrlwrap-0.37\/src\/string_utils.c<br \/>\nrlwrap-0.37\/src\/malloc_debug.c<br \/>\nrlwrap-0.37\/src\/filter.c<br \/>\nrlwrap-0.37\/test\/<br \/>\nrlwrap-0.37\/test\/testclient<br \/>\nrlwrap-0.37\/test\/testit<br \/>\nrlwrap-0.37\/tools\/<br \/>\nrlwrap-0.37\/tools\/config.guess<br \/>\nrlwrap-0.37\/tools\/config.sub<br \/>\nrlwrap-0.37\/tools\/depcomp<br \/>\nrlwrap-0.37\/tools\/install-sh<br \/>\nrlwrap-0.37\/tools\/missing<br \/>\nrlwrap-0.37\/README<br \/>\nrlwrap-0.37\/configure.ac<br \/>\nrlwrap-0.37\/aclocal.m4<br \/>\nrlwrap-0.37\/Makefile.am<br \/>\nrlwrap-0.37\/Makefile.in<br \/>\nrlwrap-0.37\/config.h.in<br \/>\nrlwrap-0.37\/configure<br \/>\nrlwrap-0.37\/AUTHORS<br \/>\nrlwrap-0.37\/COPYING<br \/>\nrlwrap-0.37\/ChangeLog<br \/>\nrlwrap-0.37\/INSTALL<br \/>\nrlwrap-0.37\/NEWS<br \/>\nrlwrap-0.37\/TODO<br \/>\nrlwrap-0.37\/BUGS<br \/>\nrlwrap-0.37\/PLEA<\/p>\n<p>\u914d\u7f6erlwrap<br \/>\n[root@rhl6 tmp]# cd rlwrap-0.37<br \/>\n[root@rhl6 rlwrap-0.37]$ ls<br \/>\naclocal.m4  BUGS       completions  configure     COPYING  filters  Makefile.am  NEWS  README  test  tools<br \/>\nAUTHORS     ChangeLog  config.h.in  configure.ac  doc      INSTALL  Makefile.in  PLEA  src     TODO<br \/>\n[root@rhl6 rlwrap-0.37]$ .\/configure<br \/>\nchecking build system type... x86_64-unknown-linux-gnu<br \/>\nchecking host system type... x86_64-unknown-linux-gnu<br \/>\nchecking for a BSD-compatible install... \/usr\/bin\/install -c<br \/>\nchecking whether build environment is sane... yes<br \/>\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p<br \/>\nchecking for gawk... gawk<br \/>\nchecking whether make sets $(MAKE)... yes<br \/>\nchecking whether make sets $(MAKE)... (cached) yes<br \/>\nchecking whether build environment is sane... yes<br \/>\nchecking for style of include used by make... GNU<br \/>\nchecking for gcc... gcc<br \/>\nchecking for C compiler default output file name... a.out<br \/>\nchecking whether the C compiler works... yes<br \/>\nchecking whether we are cross compiling... no<br \/>\nchecking for suffix of executables...<br \/>\nchecking for suffix of object files... o<br \/>\nchecking whether we are using the GNU C compiler... yes<br \/>\nchecking whether gcc accepts -g... yes<br \/>\nchecking for gcc option to accept ISO C89... none needed<br \/>\nchecking dependency style of gcc... gcc3<br \/>\nchecking how to run the C preprocessor... gcc -E<br \/>\nchecking for grep that handles long lines and -e... \/bin\/grep<br \/>\nchecking for egrep... \/bin\/grep -E<br \/>\nchecking for ANSI C header files... yes<br \/>\nchecking for sys\/types.h... yes<br \/>\nchecking for sys\/stat.h... yes<br \/>\nchecking for stdlib.h... yes<br \/>\nchecking for string.h... yes<br \/>\nchecking for memory.h... yes<br \/>\nchecking for strings.h... yes<br \/>\nchecking for inttypes.h... yes<br \/>\nchecking for stdint.h... yes<br \/>\nchecking for unistd.h... yes<br \/>\nchecking minix\/config.h usability... no<br \/>\nchecking minix\/config.h presence... no<br \/>\nchecking for minix\/config.h... no<br \/>\nchecking whether it is safe to define __EXTENSIONS__... yes<br \/>\nchecking for gcc... (cached) gcc<br \/>\nchecking whether we are using the GNU C compiler... (cached) yes<br \/>\nchecking whether gcc accepts -g... (cached) yes<br \/>\nchecking for gcc option to accept ISO C89... (cached) none needed<br \/>\nchecking dependency style of gcc... (cached) gcc3<br \/>\nchecking how to run the C preprocessor... gcc -E<br \/>\nchecking for perl... \/usr\/bin\/perl<br \/>\nchecking for strip... strip<br \/>\nchecking for ANSI C header files... (cached) yes<br \/>\nchecking for sys\/wait.h that is POSIX.1 compatible... yes<br \/>\nchecking errno.h usability... yes<br \/>\nchecking errno.h presence... yes<br \/>\nchecking for errno.h... yes<br \/>\nchecking fcntl.h usability... yes<br \/>\nchecking fcntl.h presence... yes<br \/>\nchecking for fcntl.h... yes<br \/>\nchecking libutil.h usability... no<br \/>\nchecking libutil.h presence... no<br \/>\nchecking for libutil.h... no<br \/>\nchecking for stdlib.h... (cached) yes<br \/>\nchecking for string.h... (cached) yes<br \/>\nchecking sched.h usability... yes<br \/>\nchecking sched.h presence... yes<br \/>\nchecking for sched.h... yes<br \/>\nchecking sys\/ioctl.h usability... yes<br \/>\nchecking sys\/ioctl.h presence... yes<br \/>\nchecking for sys\/ioctl.h... yes<br \/>\nchecking for sys\/wait.h... (cached) yes<br \/>\nchecking sys\/resource.h usability... yes<br \/>\nchecking sys\/resource.h presence... yes<br \/>\nchecking for sys\/resource.h... yes<br \/>\nchecking stddef.h usability... yes<br \/>\nchecking stddef.h presence... yes<br \/>\nchecking for stddef.h... yes<br \/>\nchecking termios.h usability... yes<br \/>\nchecking termios.h presence... yes<br \/>\nchecking for termios.h... yes<br \/>\nchecking for unistd.h... (cached) yes<br \/>\nchecking for stdint.h... (cached) yes<br \/>\nchecking time.h usability... yes<br \/>\nchecking time.h presence... yes<br \/>\nchecking for time.h... yes<br \/>\nchecking getopt.h usability... yes<br \/>\nchecking getopt.h presence... yes<br \/>\nchecking for getopt.h... yes<br \/>\nchecking regex.h usability... yes<br \/>\nchecking regex.h presence... yes<br \/>\nchecking for regex.h... yes<br \/>\nchecking curses.h usability... no<br \/>\nchecking curses.h presence... no<br \/>\nchecking for curses.h... no<br \/>\nchecking termcap.h usability... no<br \/>\nchecking termcap.h presence... no<br \/>\nchecking for termcap.h... no<br \/>\nchecking for term.h... no<br \/>\nchecking for ncurses\/term.h... no<br \/>\nchecking argument type of tputs putc function... char<br \/>\nchecking whether your getopt() correctly understands double colons in option string... yes<br \/>\nchecking for an ANSI C-conforming const... yes<br \/>\nchecking for pid_t... yes<br \/>\nchecking whether time.h and sys\/time.h may both be included... yes<br \/>\nchecking whether gcc needs -traditional... no<br \/>\nchecking return type of signal handlers... void<br \/>\nchecking for getopt_long... yes<br \/>\nchecking for getopt_long... (cached) yes<br \/>\nchecking for isastream... yes<br \/>\nchecking for mkstemp... yes<br \/>\nchecking for pselect... yes<br \/>\nchecking for putenv... yes<br \/>\nchecking for readlink... yes<br \/>\nchecking for sched_yield... yes<br \/>\nchecking for setenv... yes<br \/>\nchecking for setitimer... yes<br \/>\nchecking for setsid... yes<br \/>\nchecking for setrlimit... yes<br \/>\nchecking for sigaction... yes<br \/>\nchecking for snprintf... yes<br \/>\nchecking for strlcpy... no<br \/>\nchecking for strlcat... no<br \/>\nchecking for strnlen... yes<br \/>\nchecking for system... yes<br \/>\nchecking for openpty in -lutil... yes<br \/>\nchecking for openpty... yes<br \/>\nchecking for getpty... no<br \/>\nchecking for grantpt... yes<br \/>\nchecking for unlockpt... yes<br \/>\nchecking for getpt... yes<br \/>\nchecking for pty\/tty type... checking pty.h usability... yes<br \/>\nchecking pty.h presence... yes<br \/>\nchecking for pty.h... yes<br \/>\nOPENPTY<br \/>\nconfigure: checking for pty ranges...<br \/>\nchecking for tgetent... no<br \/>\nchecking for tgetent in -lcurses... no<br \/>\nchecking for tgetent in -lncurses... no<br \/>\nchecking for tgetent in -ltermcap... no<br \/>\nconfigure: WARNING: No termcap nor curses library found<br \/>\nchecking for readline in -lreadline... no<br \/>\nconfigure: error: <\/p>\n<p>You need the GNU readline library(ftp:\/\/ftp.gnu.org\/gnu\/readline\/ ) to build<br \/>\nthis program!<br \/>\n\u6ce8\uff1a\u6b64\u5904\u53d1\u73b0\u7f3a\u5c11readline rpm\u5305<\/p>\n<p>\u6302\u8f7d\u5b89\u88c5\u76d8\u5e76\u5b89\u88c5\u76f8\u5e94\u7684rpm\u5305<br \/>\n[root@rhl6 ~]# mount -t iso9660 \/dev\/cdrom \/mnt\/<br \/>\nmount: block device \/dev\/sr0 is write-protected, mounting read-only<br \/>\n[root@rhl6 Packages]# yum install readline-*<br \/>\nLoaded plugins: rhnplugin<br \/>\nThis system is not registered with RHN.<br \/>\nRHN support will be disabled.<br \/>\nrhel-localrepos                                                                                              | 3.7 kB     00:00 ...<br \/>\nSetting up Install Process<br \/>\nExamining readline-6.0-3.el6.i686.rpm: readline-6.0-3.el6.i686<br \/>\nMarking readline-6.0-3.el6.i686.rpm to be installed<br \/>\nExamining readline-6.0-3.el6.x86_64.rpm: readline-6.0-3.el6.x86_64<br \/>\nreadline-6.0-3.el6.x86_64.rpm: does not update installed package.<br \/>\nExamining readline-devel-6.0-3.el6.i686.rpm: readline-devel-6.0-3.el6.i686<br \/>\nMarking readline-devel-6.0-3.el6.i686.rpm to be installed<br \/>\nExamining readline-devel-6.0-3.el6.x86_64.rpm: readline-devel-6.0-3.el6.x86_64<br \/>\nMarking readline-devel-6.0-3.el6.x86_64.rpm to be installed<br \/>\nResolving Dependencies<br \/>\n--> Running transaction check<br \/>\n---> Package readline.i686 0:6.0-3.el6 set to be updated<br \/>\n--> Processing Dependency: libtinfo.so.5 for package: readline-6.0-3.el6.i686<br \/>\n---> Package readline-devel.i686 0:6.0-3.el6 set to be updated<br \/>\n--> Processing Dependency: ncurses-devel for package: readline-devel-6.0-3.el6.i686<br \/>\n---> Package readline-devel.x86_64 0:6.0-3.el6 set to be updated<br \/>\n--> Running transaction check<br \/>\n---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 set to be updated<br \/>\n---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 set to be updated<br \/>\n--> Finished Dependency Resolution<\/p>\n<p>Dependencies Resolved<\/p>\n<p>====================================================================================================================================<br \/>\n Package                    Arch               Version                           Repository                                    Size<br \/>\n====================================================================================================================================<br \/>\nInstalling:<br \/>\n readline                   i686               6.0-3.el6                         \/readline-6.0-3.el6.i686                     386 k<br \/>\n readline-devel             i686               6.0-3.el6                         \/readline-devel-6.0-3.el6.i686               255 k<br \/>\n readline-devel             x86_64             6.0-3.el6                         \/readline-devel-6.0-3.el6.x86_64             255 k<br \/>\nInstalling for dependencies:<br \/>\n ncurses-devel              x86_64             5.7-3.20090208.el6                rhel-localrepos                              642 k<br \/>\n ncurses-libs               i686               5.7-3.20090208.el6                rhel-localrepos                              251 k<\/p>\n<p>Transaction Summary<br \/>\n====================================================================================================================================<br \/>\nInstall       5 Package(s)<br \/>\nUpgrade       0 Package(s)<\/p>\n<p>Total size: 1.7 M<br \/>\nTotal download size: 892 k<br \/>\nInstalled size: 3.3 M<br \/>\nIs this ok [y\/N]: y<br \/>\nDownloading Packages:<br \/>\n------------------------------------------------------------------------------------------------------------------------------------<br \/>\nTotal                                                                                                10 MB\/s | 892 kB     00:00<br \/>\nRunning rpm_check_debug<br \/>\nRunning Transaction Test<br \/>\nTransaction Test Succeeded<br \/>\nRunning Transaction<br \/>\nWarning: RPMDB altered outside of yum.<br \/>\n  Installing     : ncurses-libs-5.7-3.20090208.el6.i686                                                                         1\/5<br \/>\n  Installing     : readline-6.0-3.el6.i686                                                                                      2\/5<br \/>\n  Installing     : ncurses-devel-5.7-3.20090208.el6.x86_64                                                                      3\/5<br \/>\n  Installing     : readline-devel-6.0-3.el6.x86_64                                                                              4\/5<br \/>\n  Installing     : readline-devel-6.0-3.el6.i686                                                                                5\/5 <\/p>\n<p>Installed:<br \/>\n  readline.i686 0:6.0-3.el6              readline-devel.i686 0:6.0-3.el6              readline-devel.x86_64 0:6.0-3.el6             <\/p>\n<p>Dependency Installed:<br \/>\n  ncurses-devel.x86_64 0:5.7-3.20090208.el6                          ncurses-libs.i686 0:5.7-3.20090208.el6                         <\/p>\n<p>Complete!<\/p>\n<p>\u518d\u6b21\u914d\u7f6erlwrap<br \/>\n[root@rhl6 rlwrap-0.37]# .\/configure<br \/>\nchecking build system type... x86_64-unknown-linux-gnu<br \/>\nchecking host system type... x86_64-unknown-linux-gnu<br \/>\nchecking for a BSD-compatible install... \/usr\/bin\/install -c<br \/>\nchecking whether build environment is sane... yes<br \/>\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p<br \/>\nchecking for gawk... gawk<br \/>\nchecking whether make sets $(MAKE)... yes<br \/>\nchecking whether make sets $(MAKE)... (cached) yes<br \/>\nchecking whether build environment is sane... yes<br \/>\nchecking for style of include used by make... GNU<br \/>\nchecking for gcc... gcc<br \/>\nchecking for C compiler default output file name... a.out<br \/>\nchecking whether the C compiler works... yes<br \/>\nchecking whether we are cross compiling... no<br \/>\nchecking for suffix of executables...<br \/>\nchecking for suffix of object files... o<br \/>\nchecking whether we are using the GNU C compiler... yes<br \/>\nchecking whether gcc accepts -g... yes<br \/>\nchecking for gcc option to accept ISO C89... none needed<br \/>\nchecking dependency style of gcc... gcc3<br \/>\nchecking how to run the C preprocessor... gcc -E<br \/>\nchecking for grep that handles long lines and -e... \/bin\/grep<br \/>\nchecking for egrep... \/bin\/grep -E<br \/>\nchecking for ANSI C header files... yes<br \/>\nchecking for sys\/types.h... yes<br \/>\nchecking for sys\/stat.h... yes<br \/>\nchecking for stdlib.h... yes<br \/>\nchecking for string.h... yes<br \/>\nchecking for memory.h... yes<br \/>\nchecking for strings.h... yes<br \/>\nchecking for inttypes.h... yes<br \/>\nchecking for stdint.h... yes<br \/>\nchecking for unistd.h... yes<br \/>\nchecking minix\/config.h usability... no<br \/>\nchecking minix\/config.h presence... no<br \/>\nchecking for minix\/config.h... no<br \/>\nchecking whether it is safe to define __EXTENSIONS__... yes<br \/>\nchecking for gcc... (cached) gcc<br \/>\nchecking whether we are using the GNU C compiler... (cached) yes<br \/>\nchecking whether gcc accepts -g... (cached) yes<br \/>\nchecking for gcc option to accept ISO C89... (cached) none needed<br \/>\nchecking dependency style of gcc... (cached) gcc3<br \/>\nchecking how to run the C preprocessor... gcc -E<br \/>\nchecking for perl... \/usr\/bin\/perl<br \/>\nchecking for strip... strip<br \/>\nchecking for ANSI C header files... (cached) yes<br \/>\nchecking for sys\/wait.h that is POSIX.1 compatible... yes<br \/>\nchecking errno.h usability... yes<br \/>\nchecking errno.h presence... yes<br \/>\nchecking for errno.h... yes<br \/>\nchecking fcntl.h usability... yes<br \/>\nchecking fcntl.h presence... yes<br \/>\nchecking for fcntl.h... yes<br \/>\nchecking libutil.h usability... no<br \/>\nchecking libutil.h presence... no<br \/>\nchecking for libutil.h... no<br \/>\nchecking for stdlib.h... (cached) yes<br \/>\nchecking for string.h... (cached) yes<br \/>\nchecking sched.h usability... yes<br \/>\nchecking sched.h presence... yes<br \/>\nchecking for sched.h... yes<br \/>\nchecking sys\/ioctl.h usability... yes<br \/>\nchecking sys\/ioctl.h presence... yes<br \/>\nchecking for sys\/ioctl.h... yes<br \/>\nchecking for sys\/wait.h... (cached) yes<br \/>\nchecking sys\/resource.h usability... yes<br \/>\nchecking sys\/resource.h presence... yes<br \/>\nchecking for sys\/resource.h... yes<br \/>\nchecking stddef.h usability... yes<br \/>\nchecking stddef.h presence... yes<br \/>\nchecking for stddef.h... yes<br \/>\nchecking termios.h usability... yes<br \/>\nchecking termios.h presence... yes<br \/>\nchecking for termios.h... yes<br \/>\nchecking for unistd.h... (cached) yes<br \/>\nchecking for stdint.h... (cached) yes<br \/>\nchecking time.h usability... yes<br \/>\nchecking time.h presence... yes<br \/>\nchecking for time.h... yes<br \/>\nchecking getopt.h usability... yes<br \/>\nchecking getopt.h presence... yes<br \/>\nchecking for getopt.h... yes<br \/>\nchecking regex.h usability... yes<br \/>\nchecking regex.h presence... yes<br \/>\nchecking for regex.h... yes<br \/>\nchecking curses.h usability... yes<br \/>\nchecking curses.h presence... yes<br \/>\nchecking for curses.h... yes<br \/>\nchecking termcap.h usability... yes<br \/>\nchecking termcap.h presence... yes<br \/>\nchecking for termcap.h... yes<br \/>\nchecking for term.h... yes<br \/>\nchecking for ncurses\/term.h... yes<br \/>\nchecking argument type of tputs putc function... int<br \/>\nchecking whether your getopt() correctly understands double colons in option string... yes<br \/>\nchecking for an ANSI C-conforming const... yes<br \/>\nchecking for pid_t... yes<br \/>\nchecking whether time.h and sys\/time.h may both be included... yes<br \/>\nchecking whether gcc needs -traditional... no<br \/>\nchecking return type of signal handlers... void<br \/>\nchecking for getopt_long... yes<br \/>\nchecking for getopt_long... (cached) yes<br \/>\nchecking for isastream... yes<br \/>\nchecking for mkstemp... yes<br \/>\nchecking for pselect... yes<br \/>\nchecking for putenv... yes<br \/>\nchecking for readlink... yes<br \/>\nchecking for sched_yield... yes<br \/>\nchecking for setenv... yes<br \/>\nchecking for setitimer... yes<br \/>\nchecking for setsid... yes<br \/>\nchecking for setrlimit... yes<br \/>\nchecking for sigaction... yes<br \/>\nchecking for snprintf... yes<br \/>\nchecking for strlcpy... no<br \/>\nchecking for strlcat... no<br \/>\nchecking for strnlen... yes<br \/>\nchecking for system... yes<br \/>\nchecking for openpty in -lutil... yes<br \/>\nchecking for openpty... yes<br \/>\nchecking for getpty... no<br \/>\nchecking for grantpt... yes<br \/>\nchecking for unlockpt... yes<br \/>\nchecking for getpt... yes<br \/>\nchecking for pty\/tty type... checking pty.h usability... yes<br \/>\nchecking pty.h presence... yes<br \/>\nchecking for pty.h... yes<br \/>\nOPENPTY<br \/>\nconfigure: checking for pty ranges...<br \/>\nchecking for tgetent... no<br \/>\nchecking for tgetent in -lcurses... yes<br \/>\nchecking for readline in -lreadline... yes<br \/>\nchecking whether your readline headers know about rl_set_screen_size... yes<br \/>\nchecking whether your readline library knows about rl_set_screen_size... checking for rl_set_screen_size... yes<br \/>\nchecking whether your readline knows about rl_variable_value... yes<br \/>\nchecking whether your readline knows about rl_readline_version... yes<br \/>\nWill rlwrap find command's working directory under \/proc\/<commands pid>\/cwd? let's see...<br \/>\nchecking for \/proc\/3653\/cwd\/configure.ac... yes<\/p>\n<p>configure: creating .\/config.status<br \/>\nconfig.status: creating Makefile<br \/>\nconfig.status: creating filters\/Makefile<br \/>\nconfig.status: creating doc\/Makefile<br \/>\nconfig.status: creating src\/Makefile<br \/>\nconfig.status: creating doc\/rlwrap.man<br \/>\nconfig.status: creating config.h<br \/>\nconfig.status: executing depfiles commands<\/p>\n<p>Now do:<br \/>\n    make (or gmake)  to build rlwrap<br \/>\n    make check       for instructions how to test it<br \/>\n    make install     to install it<\/p>\n<p>\u7f16\u8bd1rlwrap\u5305<br \/>\n[root@rhl6 rlwrap-0.37]# make<br \/>\nmake  all-recursive<br \/>\nmake[1]: Entering directory `\/tmp\/rlwrap-0.37'<br \/>\nMaking all in doc<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nsed -e 's#@DATADIR@#\/usr\/local\/share#'  rlwrap.man > rlwrap.1<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nMaking all in src<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/src'<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/main.Tpo .deps\/main.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/signals.Tpo .deps\/signals.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/readline.Tpo .deps\/readline.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/pty.Tpo .deps\/pty.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/completion.Tpo .deps\/completion.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/term.Tpo .deps\/term.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/ptytty.Tpo .deps\/ptytty.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/utils.Tpo .deps\/utils.Po<br \/>\ngcc -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.c<br \/>\nstring_utils.c: In function a\u20ac?colourless_strlena\u20ac?:<br \/>\nstring_utils.c:626: warning: assignment discards qualifiers from pointer target type<br \/>\nmv -f .deps\/string_utils.Tpo .deps\/string_utils.Po<br \/>\ngcc -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.c<br \/>\nmv -f .deps\/malloc_debug.Tpo .deps\/malloc_debug.Po<br \/>\ngcc -DHAVE_CONFIG_H -I. -I..    -DDATADIR=\\\"\/usr\/local\/share\\\"  -g -O2 -MT filter.o -MD -MP -MF .deps\/filter.Tpo -c -o filter.o filter.c<br \/>\nmv -f .deps\/filter.Tpo .deps\/filter.Po<br \/>\ngcc -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 filter.o  -lutil  -lreadline -lcurses<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/src'<br \/>\nMaking all in filters<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[2]: Nothing to be done for `all'.<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[1]: Leaving directory `\/tmp\/rlwrap-0.37'<\/p>\n<p>\u5b89\u88c5rlwrap\u5305<br \/>\n[root@rhl6 rlwrap-0.37]# make install<br \/>\nMaking install in doc<br \/>\nmake[1]: Entering directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nmake[2]: Nothing to be done for `install-exec-am'.<br \/>\ntest -z \"\/usr\/local\/share\/man\/man1\" || \/bin\/mkdir -p \"\/usr\/local\/share\/man\/man1\"<br \/>\n \/usr\/bin\/install -c -m 644 rlwrap.1 '\/usr\/local\/share\/man\/man1'<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nmake[1]: Leaving directory `\/tmp\/rlwrap-0.37\/doc'<br \/>\nMaking install in src<br \/>\nmake[1]: Entering directory `\/tmp\/rlwrap-0.37\/src'<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/src'<br \/>\ntest -z \"\/usr\/local\/bin\" || \/bin\/mkdir -p \"\/usr\/local\/bin\"<br \/>\n  \/usr\/bin\/install -c rlwrap '\/usr\/local\/bin'<br \/>\nmake[2]: Nothing to be done for `install-data-am'.<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/src'<br \/>\nmake[1]: Leaving directory `\/tmp\/rlwrap-0.37\/src'<br \/>\nMaking install in filters<br \/>\nmake[1]: Entering directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[2]: Nothing to be done for `install-exec-am'.<br \/>\ntest -z \"\/usr\/local\/share\/man\/man3\" || \/bin\/mkdir -p \"\/usr\/local\/share\/man\/man3\"<br \/>\n \/usr\/bin\/install -c -m 644 RlwrapFilter.3pm '\/usr\/local\/share\/man\/man3'<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[1]: Leaving directory `\/tmp\/rlwrap-0.37\/filters'<br \/>\nmake[1]: Entering directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[2]: Entering directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[2]: Nothing to be done for `install-exec-am'.<br \/>\ntest -z \"\/usr\/local\/share\/rlwrap\" || \/bin\/mkdir -p \"\/usr\/local\/share\/rlwrap\"<br \/>\n\/bin\/mkdir -p '\/usr\/local\/share\/rlwrap\/filters'<br \/>\n \/usr\/bin\/install -c -m 644  filters\/README filters\/RlwrapFilter.pm filters\/RlwrapFilter.3pm filters\/count_in_prompt filters\/pipeto filters\/logger filters\/null filters\/unbackspace filters\/pipeline filters\/ftp_filter filters\/history_format filters\/simple_macro filters\/template filters\/scrub_prompt filters\/paint_prompt filters\/censor_passwords filters\/listing '\/usr\/local\/share\/rlwrap\/filters'<br \/>\n\/bin\/mkdir -p '\/usr\/local\/share\/rlwrap\/completions'<br \/>\n \/usr\/bin\/install -c -m 644  completions\/testclient completions\/coqtop '\/usr\/local\/share\/rlwrap\/completions'<br \/>\nmake  install-data-hook<br \/>\nmake[3]: Entering directory `\/tmp\/rlwrap-0.37'<br \/>\nchmod a+x \/usr\/local\/share\/rlwrap\/filters\/*<br \/>\nmake[3]: Leaving directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[2]: Leaving directory `\/tmp\/rlwrap-0.37'<br \/>\nmake[1]: Leaving directory `\/tmp\/rlwrap-0.37'<\/p>\n<p>\u4fee\u6539oracle\u73af\u5883\u53d8\u91cf\u4e2d\u7684rlwrap\u8bbe\u7f6e<br \/>\n[oracle@rhl6 ~]$ cat .bash_profile<br \/>\n# .bash_profile<\/p>\n<p># Get the aliases and functions<br \/>\nif [ -f ~\/.bashrc ]; then<br \/>\n        . ~\/.bashrc<br \/>\nfi<\/p>\n<p># User specific environment and startup programs<\/p>\n<p>PATH=$PATH:$HOME\/bin<\/p>\n<p>export PATH<\/p>\n<p>#oracle set<br \/>\nTMP=\/tmp; export TMP<br \/>\nTMPDIR=$TMP; export TMPDIR<\/p>\n<p>ORACLE_BASE=\/u01\/app\/oracle; export ORACLE_BASE<br \/>\nORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/db_1; export ORACLE_HOME<br \/>\nORACLE_SID=ora11gr2; export ORACLE_SID<br \/>\nPATH=$ORACLE_HOME\/bin:$PATH; export PATH<br \/>\nDISPLAY=192.168.137.1:0.0; export DISPLAY<\/p>\n<p>alias sqlplus=\"rlwrap sqlplus\"<br \/>\nalias rman=\"rlwrap rman\"<\/p>\n<p>if [ $USER = \"oracle\" ]; then<br \/>\n        if [ $SHELL = \"\/bin\/ksh\" ]; then<br \/>\n              ulimit -p 16384<br \/>\n              ulimit -n 65536<br \/>\n        else<br \/>\n              ulimit -u 16384 -n 65536<br \/>\n        fi<br \/>\nfi<\/p>\n<p>\u81f3\u6b64ok\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rlwrap\u7684\u5b89\u88c5 \u8be5\u5305\u7684\u4f5c\u7528\u662f\u4e3a\u4e86\u89e3\u51b3\u5728sql*plus\u4e0b\u4e0a\u4e0b\u5de6\u53f3\u5220\u9664\u6309\u952e\u663e\u793a\u4e71\u7801\u7684\u95ee\u9898 \u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f [r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[224],"_links":{"self":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/994"}],"collection":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=994"}],"version-history":[{"count":1,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":995,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions\/995"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}