LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-07-2014, 08:20 AM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
rlwrap installation issue


Hi all;

After installing rlwrap in my system.
I cant execute previous SQL commands. why so ?



PHP Code:
# cd rlwrap-0.41
[root@oel5 rlwrap-0.41]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type
... i686-pc-linux-gnu
checking 
for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane
... yes
checking 
for a thread-safe mkdir -p... /bin/mkdir -p
checking 
for gawk... gawk
checking whether make sets 
$(MAKE)... yes
checking whether make sets 
$(MAKE)... (cachedyes
checking whether build environment is sane
... yes
checking 
for style of include used by make... GNU
checking 
for gcc... gcc
checking whether the C compiler works
... yes
checking 
for C compiler default output file name... a.out
checking 
for suffix of executables...
checking whether we are cross compiling... no
checking 
for suffix of object files... o
checking whether we are using the GNU C compiler
... yes
checking whether gcc accepts 
-g... yes
checking 
for gcc option to accept ISO C89... none needed
checking dependency style of gcc
... gcc3
checking how to run the C preprocessor
... gcc -E
checking 
for grep that handles long lines and -e... /bin/grep
checking 
for egrep... /bin/grep -E
checking 
for ANSI C header files... yes
checking 
for sys/types.h... yes
checking 
for sys/stat.h... yes
checking 
for stdlib.h... yes
checking 
for string.h... yes
checking 
for memory.h... yes
checking 
for strings.h... yes
checking 
for inttypes.h... yes
checking 
for stdint.h... yes
checking 
for unistd.h... yes
checking minix
/config.h usability... no
checking minix
/config.h presence... no
checking 
for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__
... yes
checking 
for gcc... (cachedgcc
checking whether we are using the GNU C compiler
... (cachedyes
checking whether gcc accepts 
-g... (cachedyes
checking 
for gcc option to accept ISO C89... (cachednone needed
checking dependency style of gcc
... (cachedgcc3
checking how to run the C preprocessor
... gcc -E
checking 
for perl... /usr/bin/perl
checking 
for strip... strip
checking 
for ANSI C header files... (cachedyes
checking 
for sys/wait.h that is POSIX.1 compatible... yes
checking errno
.h usability... yes
checking errno
.h presence... yes
checking 
for errno.h... yes
checking fcntl
.h usability... yes
checking fcntl
.h presence... yes
checking 
for fcntl.h... yes
checking libutil
.h usability... no
checking libutil
.h presence... no
checking 
for libutil.h... no
checking 
for stdlib.h... (cachedyes
checking 
for string.h... (cachedyes
checking sched
.h usability... yes
checking sched
.h presence... yes
checking 
for sched.h... yes
checking sys
/ioctl.h usability... yes
checking sys
/ioctl.h presence... yes
checking 
for sys/ioctl.h... yes
checking 
for sys/wait.h... (cachedyes
checking sys
/resource.h usability... yes
checking sys
/resource.h presence... yes
checking 
for sys/resource.h... yes
checking stddef
.h usability... yes
checking stddef
.h presence... yes
checking 
for stddef.h... yes
checking termios
.h usability... yes
checking termios
.h presence... yes
checking 
for termios.h... yes
checking 
for unistd.h... (cachedyes
checking 
for stdint.h... (cachedyes
checking time
.h usability... yes
checking time
.h presence... yes
checking 
for time.h... yes
checking getopt
.h usability... yes
checking getopt
.h presence... yes
checking 
for getopt.h... yes
checking regex
.h usability... yes
checking regex
.h presence... yes
checking 
for regex.h... yes
checking curses
.h usability... yes
checking curses
.h presence... yes
checking 
for curses.h... yes
checking termcap
.h usability... yes
checking termcap
.h presence... yes
checking 
for termcap.h... yes
checking 
for term.h... yes
checking 
for ncurses/term.h... yes
checking argument type of tputs putc 
function... int
checking whether your getopt
() correctly understands double colons in option string... yes
checking 
for an ANSI C-conforming const... yes
checking 
for pid_t... yes
checking whether time
.and sys/time.h may both be included... yes
checking whether gcc needs 
-traditional... no
checking 
return type of signal handlers... void
checking 
for getopt_long... yes
checking 
for getopt_long... (cachedyes
checking 
for isastream... yes
checking 
for mkstemps... no
checking 
for pselect... yes
checking 
for putenv... yes
checking 
for readlink... yes
checking 
for sched_yield... yes
checking 
for setenv... yes
checking 
for setitimer... yes
checking 
for setsid... yes
checking 
for setrlimit... yes
checking 
for sigaction... yes
checking 
for snprintf... yes
checking 
for strlcpy... no
checking 
for strlcat... no
checking 
for strnlen... yes
checking 
for system... yes
checking 
for openpty in -lutil... yes
checking 
for openpty... yes
checking 
for getpty... no
checking 
for grantpt... yes
checking 
for unlockpt... yes
checking 
for getpt... yes
checking 
for pty/tty type... checking pty.h usability... yes
checking pty
.h presence... yes
checking 
for pty.h... yes
OPENPTY
configure
checking for pty ranges...
checking for tgetent... no
checking 
for tgetent in -ltinfo... no
checking 
for tgetent in -lcurses... yes
checking 
for readline in -lreadline... yes
checking 
for tigetnum... yes
checking readline
/readline.h usability... yes
checking readline
/readline.h presence... yes
checking 
for readline/readline.h... yes
checking whether your readline headers know about rl_set_screen_size
... yes
checking whether your readline library knows about rl_set_screen_size
... checking for rl_set_screen_size... yes
checking whether your readline knows about rl_variable_value
... yes
checking whether your readline knows about rl_readline_version
... yes
Will rlwrap find command
's working directory under /proc/<commands pid>/cwd? let's see...
checking for /proc/18148/cwd/configure.ac... yes


configure
creating ./config.status
config
.statuscreating Makefile
config
.statuscreating filters/Makefile
config
.statuscreating doc/Makefile
config
.statuscreating src/Makefile
config
.statuscreating doc/rlwrap.man
config
.statuscreating config.h
config
.statusconfig.h is unchanged
config
.statusexecuting depfiles commands

Now 
do:
    
make (or gmake)  to build rlwrap
    make check       
for instructions how to test it
    make install     to install it 
PHP Code:
[root@oel5 rlwrap-0.41]# make
make  all-recursive
make
[1]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41'
Making all in doc
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/doc'
sed -e '
s#@DATADIR@#/usr/local/share#'  rlwrap.man > rlwrap.1
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/doc'
Making all in src
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/src'
make[2]: Nothing to be done for `all'
.
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/src'
Making all in filters
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[2]: Nothing to be done for `all'
.
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41'
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41'
make[1]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41' 
PHP Code:
[root@oel5 rlwrap-0.41]# make install
Making install in doc
make
[1]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41/doc'
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/doc'
make[2]: Nothing to be done for `install-exec-am'
.
 /
bin/mkdir -'/usr/local/share/man/man1'
 
/usr/bin/install --m 644 rlwrap.1 '/usr/local/share/man/man1'
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/doc'
make[1]: Leaving directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/doc'
Making install in src
make[1]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41/src'
make[2]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41/src'
 /bin/mkdir -p '/usr/local/bin'
  /usr/bin/install -c rlwrap '/usr/local/bin'
make[2]: Nothing to be done for 
`install-data-am'.
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/src'
make[1]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/src'
Making install in filters
make[1]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[2]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[2]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/local/share/man/man3'
 /usr/bin/install -c -m 644 RlwrapFilter.3pm '/usr/local/share/man/man3'
make[2]: Leaving directory 
`/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[1]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41/filters'
make[1]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41'
make[2]: Entering directory 
`/mnt/hgfs/Sharing/rlwrap-0.41'
make[2]: Nothing to be done for `install-exec-am'
.
 /
bin/mkdir -'/usr/local/share/rlwrap'
 
/bin/mkdir -'/usr/local/share/rlwrap/filters'
 
/usr/bin/install --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'
 
/bin/mkdir -'/usr/local/share/rlwrap/completions'
 
/usr/bin/install --m 644  completions/testclient completions/coqtop '/usr/local/share/rlwrap/completions'
make  install-data-hook
make
[3]: Entering directory `/mnt/hgfs/Sharing/rlwrap-0.41'
chmod a+x /usr/local/share/rlwrap/filters/*
make[3]: Leaving directory 
`/mnt/hgfs/Sharing/rlwrap-0.41'
make[2]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41'
make[1]: Leaving directory `/mnt/hgfs/Sharing/rlwrap-0.41' 
PHP Code:
[oracle@oel5 ~]$ . ./ora10.env
ORACLE_SID 
= [oracle] ? sham
[oracle@oel5 ~]$ rlwrap  sqlplus /nolog

SQL
*PlusRelease 10.2.0.5.0 Production on Sun Sep 7 18:45:16 2014

Copyright 
(c19822010Oracle.  All Rights Reserved.

SQLconn sys / as sysdba
Enter password
:
Connected.
SQLselect name from v$database;

NAME
---------
SHAM

SQL
select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
/
u01/app/oracle/oradata/sham/control01.ctl
/u01/app/oracle/oradata/sham/control02.ctl
/u01/app/oracle/oradata/sham/control03.ctl

SQL
>
SQL>
SQL>
SQL>
SQL
PHP Code:
# cat /etc/issue
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel \r on an \m

[root@oel5 ~]# uname -r
2.6.18-194.el5 

Last edited by thiyagusham; 09-07-2014 at 08:26 AM.
 
Old 09-08-2014, 04:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by thiyagusham View Post
Hi all;
After installing rlwrap in my system. I cant execute previous SQL commands. why so ?
PHP Code:
[oracle@oel5 ~]$ . ./ora10.env
ORACLE_SID 
= [oracle] ? sham
[oracle@oel5 ~]$ rlwrap  sqlplus /nolog

SQL
*PlusRelease 10.2.0.5.0 Production on Sun Sep 7 18:45:16 2014

Copyright 
(c19822010Oracle.  All Rights Reserved.

SQLconn sys / as sysdba
Enter password
:
Connected.
SQLselect name from v$database;

NAME
---------
SHAM

SQL
select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
/
u01/app/oracle/oradata/sham/control01.ctl
/u01/app/oracle/oradata/sham/control02.ctl
/u01/app/oracle/oradata/sham/control03.ctl

SQL
>
SQL>
SQL>
SQL>
SQL
You've not shown ANY errors in the configure, make, or install. You have also not shown any errors in what you've posted, and have only said you can't execute previous commands...but don't tell us HOW you tried to execute them, what you've done, etc. There are MANY pages of tips on how to use rlwrap...have you referenced any of them??
http://www.dba-oracle.com/t_rlwrap.htm
http://www.oracle-base.com/articles/linux/rlwrap.php

Since you're PAYING FOR OEL, you should have been able to install this from the online repositories...did you try that? Building from source is typically done when you can't get packages from the online sources.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 13.37 installation/Dual Boot/Raid config. Installation issue spacecowboy1858 Slackware - Installation 8 06-26-2012 02:54 PM
Fedora 13 Installation issue -- Unable to install multiple linux distributions ---partition issue navneethr Linux - General 6 12-22-2010 11:17 PM
Installation Issue nirmaltom SUSE / openSUSE 3 03-07-2006 01:17 AM
Installation issue... jhoin Fedora - Installation 5 11-05-2004 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration