rlwrap install on SUSE Linux

http://utopia.knoware.nl/~hlub/uck/rlwrap/#rlwrap

http://www.oraklet.no/2010/03/make-life-easier-with-rlwrap/

http://linux.die.net/man/1/rlwrap

rlwrap install

rpm -ivh glibc-2.17-3.1.x86_64.rpm

imdbhdb:~/DOWNLOADS/rlwrap-0.37 # ./configure –enable-64bit –build x86_64-redhat-linux-gnu

SLES 11 = SUSE Linux Enterprise Server v11

yast2 -i gcc-c++ Will install gcc

imdbhdb:~/DOWNLOADS/rlwrap-0.37/.configure –enable-64bit –build x86_64-redhat-linux-gnu stills errors out with You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build this program!

http://pkgs.org/opensuse-12.1/opensuse-update-x86_64/readline-devel-6.2-1.11.1.x86_64.rpm/download/

zypper install readline-devel

rlwrap-0.37/.configure –enable-64bit –build x86_64-redhat-linux-gnu works now

make

make check

make install

rlwrap uses the up/down arrow keys for history by default but, if you want vi command line editing:

More reading:

http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/

http://blog.tanelpoder.com/2010/05/07/flexible-sqlplus-command-line-history-with-rlwrap/

Also, Instead of using set -o vi you add ‘set editing-mode vi’ to you $HOME/.inputrc file you have vi-keybinding-loveless

export INPUTRC=~/.inputrc

Also, see the global config fileĀ /etc/inputrc

in all applications that support readline. You can also set this to system wide by added this to /etc/inputrc.

rlwrap hdbsql -c “;” -m -i 00 -n 0.0.0.0:30015 -u SYSTEM -p manager

Note: Should be able to do the same thing for other flavors of UNIX/Linux that do not have ied(ied is on HP-UX).

More notes: http://sysdba.wordpress.com/2006/10/08/how-to-use-rlwrap-to-get-a-command-history-in-sqlplus/

If you get a missing library error you probable need to run ldconfig.

About these ads
This entry was posted in HANA on AWS, SAP, UNIX and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s