How to install expect after installing tcl on Redhat Linux

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to install expect after installing tcl on Redhat Linux
# 1  
Old 09-07-2010
How to install expect after installing tcl on Redhat Linux

Hi,
I have install tcl and then expect but I am getting below ouput while trying which expect
Code:
which expect
/usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

I have copied both in /usr/local/src and then installed as below

Code:
cp tcl8.2.0.tar /usr/local/src
cp expect.tar   /usr/local/src

cd /usr/local/src

tar xvf tcl8.2.0.tar
tar xvf expect.tar

# Tcl

cd tcl8.2.0/unix
./configure
make install

--------------------------------------
Code:
# Expect

cd /usr/local/src/expect-5.40
./configure
make

Now I could see the ouput for tcl but not for expect while trying rpm -qa
Code:
[root@linux1 expect-5.32]# rpm -qa | grep tcl
tcl-8.4.7-2
tclx-8.3.5-4

Expect:-
I am not getting anything while trying rpm -qa | grep expect.

I have also attached the log of ./configure make for expect.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
Code:
configure:566: checking for autoconf
configure:594: checking configure up to date
configure:655: checking host system type
configure:676: checking target system type
configure:694: checking build system type
configure:724: checking shell to use within Make
configure:758: checking for gcc
configure:871: checking whether the C compiler (gcc ) works
configure:887: gcc -o conftest conftest.c 1>&5
configure:913: checking whether the C compiler (gcc ) is a cross-compiler
configure:918: checking whether we are using GNU C
configure:927: gcc -E conftest.c
configure:946: checking whether gcc accepts -g
configure:986: checking for building with threads
configure:1039: checking for Tcl configuration
configure:1132: checking Tcl build library
configure:1136: checking for Tcl_CreateCommand
configure:1164: gcc -o conftest conftest.c -L/usr/local/src/tcl8.5.8/unix -ltcl8.5 -ldl -lieee -lm 1>&5
configure:1180: checking if Tcl library build specification is valid
configure:1222: checking for Tk configuration
configure:1311: checking for Tk_Init
configure:1339: gcc -o conftest conftest.c -L/usr/local/src/tcl8.5.8/unix -ltcl8.5 1>&5
/tmp/ccKJdzfD.o(.text+0x1d): In function `main':
: undefined reference to `Tk_Init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1316 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char Tk_Init(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char Tk_Init();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
choke me
#else
Tk_Init();
#endif
; return 0; }
configure:1365: checking if Tk library build specification is valid
configure:1380: checking whether the compiler (gcc) actually works
configure:1389: gcc -c conftest.c 1>&5
configure:1408: gcc -o conftest conftest.c 1>&5
configure:1442: checking for a BSD compatible install
configure:1499: checking for ranlib
configure:1539: checking how to run the C preprocessor
configure:1560: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1620: checking if running LynxOS
configure:1696: checking for ANSI C header files
configure:1709: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1776: gcc -o conftest conftest.c 1>&5
configure:1800: checking for pid_t
configure:1833: checking return type of signal handlers
configure:1855: gcc -c conftest.c 1>&5
configure:1874: checking whether time.h and sys/time.h may both be included
configure:1888: gcc -c conftest.c 1>&5
configure:1909: checking for sys/wait.h that is POSIX.1 compatible
configure:1930: gcc -c conftest.c 1>&5
configure:1972: checking if running Mach
configure:1988: checking if running MachTen
configure:1998: checking if on Pyramid
configure:2008: checking if on Apollo
configure:2018: checking if on Interactive
configure:2028: checking if stty reads stdout
configure:2084: checking if running Solaris
configure:2104: checking for sin
configure:2132: gcc -o conftest conftest.c 1>&5
configure:2116: warning: conflicting types for built-in function 'sin'
/tmp/ccVoibud.o(.text+0x1d): In function `main':
: undefined reference to `sin'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2109 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sin(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sin();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sin) || defined (__stub___sin)
choke me
#else
sin();
#endif
; return 0; }
configure:2230: checking for Tcl private headers
configure:2372: checking type of library to build
configure:2451: checking for gethostname
configure:2479: gcc -o conftest conftest.c -lm 1>&5
configure:2547: checking for gethostname
configure:2575: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:2643: checking for gethostname
configure:2671: gcc -o conftest conftest.c 1>&5
configure:2742: checking for socket
configure:2770: gcc -o conftest conftest.c -lm 1>&5
configure:2838: checking for socket
configure:2866: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:2934: checking for socket
configure:2962: gcc -o conftest conftest.c 1>&5
configure:3032: checking for select
configure:3060: gcc -o conftest conftest.c -lm 1>&5
configure:3128: checking for select
configure:3156: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:3224: checking for select
configure:3252: gcc -o conftest conftest.c 1>&5
configure:3322: checking for getpseudotty
configure:3350: gcc -o conftest conftest.c -lm 1>&5
/tmp/ccUmd7vZ.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3327 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3373: checking for getpseudotty in -lseq
configure:3392: gcc -o conftest conftest.c -lseq -lm 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3381 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3425: checking for getpseudotty
configure:3453: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
/tmp/cc4WoeaE.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3430 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3476: checking for getpseudotty in -lseq
configure:3495: gcc -o conftest conftest.c -lseq -ldl -lieee -lm 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3484 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3528: checking for getpseudotty
configure:3556: gcc -o conftest conftest.c 1>&5
/tmp/ccHq1Tra.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3533 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3579: checking for getpseudotty in -lseq
configure:3598: gcc -o conftest conftest.c -lseq 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3587 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3634: checking for openpty
configure:3662: gcc -o conftest conftest.c -lm 1>&5
/tmp/cckgayyA.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3639 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3685: checking for openpty in -lutil
configure:3704: gcc -o conftest conftest.c -lutil -lm 1>&5
configure:3739: checking for openpty
configure:3767: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
/tmp/ccUfNGvd.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3744 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3790: checking for openpty in -lutil
configure:3809: gcc -o conftest conftest.c -lutil -ldl -lieee -lm 1>&5
configure:3841: checking for openpty
configure:3869: gcc -o conftest conftest.c 1>&5
/tmp/cc6naHWN.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3846 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3892: checking for openpty in -lutil
configure:3911: gcc -o conftest conftest.c -lutil 1>&5
configure:3949: checking if running Sequent running SVR4
configure:3963: checking for sys/sysmacros.h
configure:3973: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3999: checking for stdlib.h
configure:4009: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4036: checking for inttypes.h
configure:4046: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4076: checking for varargs.h
configure:4086: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from configure:4082:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
configure: failed program was:
#line 4081 "configure"
#include "confdefs.h"
#include <varargs.h>
configure:4112: checking for unistd.h
configure:4122: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4150: checking for sys/stropts.h
configure:4160: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4187: checking for sys/sysconfig.h
configure:4197: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4193:27: sys/sysconfig.h: No such file or directory
configure: failed program was:
#line 4192 "configure"
#include "confdefs.h"
#include <sys/sysconfig.h>
configure:4223: checking for sys/fcntl.h
configure:4233: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4259: checking for sys/select.h
configure:4269: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4295: checking for sys/time.h
configure:4305: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4331: checking for sys/ptem.h
configure:4341: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4337:22: sys/ptem.h: No such file or directory
configure: failed program was:
#line 4336 "configure"
#include "confdefs.h"
#include <sys/ptem.h>
configure:4367: checking for sys/strredir.h
configure:4377: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4373:26: sys/strredir.h: No such file or directory
configure: failed program was:
#line 4372 "configure"
#include "confdefs.h"
#include <sys/strredir.h>
configure:4403: checking for sys/strpty.h
configure:4413: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4409:24: sys/strpty.h: No such file or directory
configure: failed program was:
#line 4408 "configure"
#include "confdefs.h"
#include <sys/strpty.h>
configure:4440: checking for sys/bsdtypes.h
configure:4492: checking for memmove
configure:4520: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4504: warning: conflicting types for built-in function 'memmove'
configure:4543: checking for sysconf
configure:4571: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4594: checking for strftime
configure:4622: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4606: warning: conflicting types for built-in function 'strftime'
configure:4645: checking for strchr
configure:4673: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4657: warning: conflicting types for built-in function 'strchr'
configure:4696: checking for timezone
configure:4724: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4747: checking for siglongjmp
configure:4775: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4802: checking for memcpy
configure:4814: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4836: checking if WNOHANG requires _POSIX_SOURCE
configure:4854: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 4842 "configure"
#include "confdefs.h"
#include <sys/wait.h>
main() {
#ifndef WNOHANG
return 0;
#else
return 1;
#endif
}
configure:4874: checking if any value exists for WNOHANG
configure:4897: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4930: checking union wait
configure:4944: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4974: checking mask type of select
configure:4988: checking if signals need to be re-armed
configure:5033: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4997:1: warning: "RETSIGTYPE" redefined
In file included from configure:4994:
confdefs.h:3:1: warning: this is the location of the previous definition
configure: In function `main':
configure:5016: warning: passing arg 2 of `signal' from incompatible pointer type
configure:5019: warning: passing arg 2 of `signal' from incompatible pointer type
configure: failed program was:
#line 4994 "configure"
#include "confdefs.h"
#include <signal.h>
#define RETSIGTYPE 
int signal_rearms = 0;
RETSIGTYPE
child_sigint_handler(n)
int n;
{
}
RETSIGTYPE
parent_sigint_handler(n)
int n;
{
signal_rearms++;
}
main()
{
signal(SIGINT,parent_sigint_handler);
if (0 == fork()) {
signal(SIGINT,child_sigint_handler);
kill(getpid(),SIGINT);
kill(getpid(),SIGINT);
kill(getppid(),SIGINT);
} else {
int status;
wait(&status);
unlink("core");
exit(signal_rearms);
}
}
configure:5064: checking if on Convex
configure:5083: checking if on NeXT
configure:5094: checking if on HP
configure:5104: checking sane default stty arguments
configure:5122: checking for HP style pty allocation
configure:5136: checking for HP style pty trapping
configure:5139:23: sys/ptyio.h: No such file or directory
configure:5160: checking for AIX new-style pty allocation
configure:5172: checking for SGI old-style pty allocation
configure:5189: checking for SCO style pty allocation
configure:5206: checking for SVR4 style pty allocation
configure:5215: checking for libpts=-lpt in -lpt
configure:5234: gcc -o conftest conftest.c -lpt -lm -lutil 1>&5
configure:5227: error: called object is not a function
configure: In function `main':
configure:5230: error: called object is not a function
configure: failed program was:
#line 5223 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char libpts="-lpt"();
int main() {
libpts="-lpt"()
; return 0; }
configure:5255: checking for ptsname
configure:5283: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5305: checking for ptsname
configure:5354: checking for ptsname
configure:5409: checking for OSF/1 style pty allocation
configure:5423: checking for tcgetattr
configure:5451: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5471: checking for tcsetattr
configure:5499: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5531: checking for struct sgttyb
configure:5547: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: In function `main':
configure:5542: error: storage size of 'tmp' isn't known
configure: failed program was:
#line 5537 "configure"
#include "confdefs.h"
#include <sgtty.h>
main()
{
struct sgttyb tmp;
exit(0);
}
configure:5576: checking for struct termio
configure:5591: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5613: checking for struct termios
configure:5633: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5655: checking if TCGETS or TCGETA in termios.h
configure:5677: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5661 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <termios.h>
main() {
#if defined(TCGETS) || defined(TCGETA)
return 0;
#else
return 1;
#endif
}
configure:5697: checking if TIOCGWINSZ in termios.h
configure:5719: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5703 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <termios.h>
main() {
#ifdef TIOCGWINSZ
return 0;
#else
return 1;
#endif
}
configure:5740: checking for Cray-style ptys
configure:5759: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5747 "configure"
#include "confdefs.h"
main(){
#ifdef CRAY
return 0;
#else
return 1;
#endif
}
configure:5784: checking for select
configure:5812: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5832: checking for poll
configure:5860: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5880: checking event handling
configure:5902: checking for _getpty
configure:5930: gcc -o conftest conftest.c -lm -lutil 1>&5
/tmp/ccUENtdY.o(.text+0x1d): In function `main':
: undefined reference to `_getpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5907 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _getpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _getpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__getpty) || defined (__stub____getpty)
choke me
#else
_getpty();
#endif
; return 0; }
configure:5957: checking for getpty
configure:5985: gcc -o conftest conftest.c -lm -lutil 1>&5
/tmp/ccQ2rZNw.o(.text+0x1d): In function `main':
: undefined reference to `getpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5962 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpty) || defined (__stub___getpty)
choke me
#else
getpty();
#endif
; return 0; }
configure:6012: checking whether setpgrp takes no argument
configure:6040: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: In function `main':
configure:6032: error: too many arguments to function `setpgrp'
configure: failed program was:
#line 6020 "configure"
#include "confdefs.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/*
* If this system has a BSD-style setpgrp, which takes arguments, exit
* successfully.
*/
main()
{
if (setpgrp(1,1) == -1)
exit(0);
else
exit(1);
}
configure:6068: checking for SV-style timezone
configure:6087: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:6133: checking for Tk private headers
configure:6204: checking for tk.h
configure:6214: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6210:16: tk.h: No such file or directory
configure: failed program was:
#line 6209 "configure"
#include "confdefs.h"
#include <tk.h>
configure:6313: checking for long file names
configure:6370: checking for type of library to build



Please suggest me some solution.
Regards,
MK

Last edited by pludi; 09-07-2010 at 04:58 AM.. Reason: code tags, please...
# 2  
Old 09-07-2010
First concept error: when building software manually (configure, make, make install) it will never appear in the RPM database. You'd have to create an RPM package, and install that for it to happen.

Second error: for expect, you only did make, but apparently not make install.

Third: Why not use the packages supplied with the distribution? Both TCL and expect are included in all major distributions.
# 3  
Old 09-07-2010
Hi,
Could you please give me the location from where I can download and the steps how I can install on Red Hat linux.

Regards,
MK
# 4  
Old 09-07-2010
As root
Code:
yum install expect

# 5  
Old 09-08-2010
Hi
I am getting belo error while using yum:-
Code:
[root@linux1 expect-5.32]# emerge expect
-bash: emerge: command not found
[root@linux1 expect-5.32]# yum install expect
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update

Please provide me this command with valid url if possible.If you can explain in few lines like how to install then it would be a great help rather than one line syntax.

Regards,
MK

Moderator's Comments:
Mod Comment Please use code tags, ty
# 6  
Old 09-08-2010
First, emerge is a Gentoo specific command that you (usually) won't find in a non-ebuild distribution.

Second, as far as I know, installing additional software in RHEL requires you to register with Red Hat, though I can't give you any more details on that as I don't use RHEL. After registration use
Code:
yum check-update

to get the current list of software available, and then install it using the above command.

The other option, if you're still learning, would be to install CentOS, as it's a free version of RHEL, built from the same sources, but without the proprietary stuff Red Hat developed.
# 7  
Old 09-08-2010
I think the only proprietary stuff are the Redhat logos, though (and obviously you cannot use the Redhat NetWork (RHN))...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Issues installing inotify-tools on RedHat Linux

I wish to install inotify-tools-3.20.1-2.4.x86_64.rpm on Linux and fire inotifywait command. Initially i was looking for "inotify-tools-3.xx.tar.gz" as instructed here http://jensd.be/248/linux/use-inotify-tools-on-centos-7-or-rhel-7-to-watch-files-and-directories-for-events I have... (9 Replies)
Discussion started by: mohtashims
9 Replies

2. Red Hat

Issue in installing expect and Tcl

Hi I need to install expect in redhat. through net I came to know that I must install tcl too in order to make expect work. I have downloaded both packages but not able to install # ls -lrt total 3720 18:33 tcl8.4.20-src.tar.gz 18:33 expect5.45.3.tar.gz 18:40 expect5.45.3... (7 Replies)
Discussion started by: scriptor
7 Replies

3. Red Hat

Installing PHP tools using RPM in Redhat Linux

Hi there, I am trying to install few PHP tools in my Linux server by creating RPMs from source ( tar.gz) files. The issue here is that the tar.gz files does not have a configure file and so I am not able to do ./configure make install opertations. I tried downloading src.rpms of these tools,... (0 Replies)
Discussion started by: Vicky81
0 Replies

4. Red Hat

Install 3G Modem on Redhat Linux

Hi Guys , I am new to Linux enviornment , I have purchased Huawei 355 Modem as they specify it works with linux enviornment but Not sure how to install it , when ever I try to install I am getting error , below is the error message Error Message : Install NDIS driver failed. The... (4 Replies)
Discussion started by: DarkLegends
4 Replies

5. Red Hat

install redhat linux 5 into usb disk

Hi, I have 2 question. 1)how can I install the redhat linux 5 into USB disk and boot from USB disk forever. 2) how can I backup an existing redhat linux from hd to USB by disk image and make the USB bootable afterward , so I can use usb disk to boot the linux in another machine .... Please... (0 Replies)
Discussion started by: chuikingman
0 Replies

6. Red Hat

Unable to install datastage server on Redhat Linux

Hi, i have tried to install datastage server on redhat Linux operating system. But i unable to install the datastage sevrer. here are the details of the system. 1. Lynix installed using vmwear. vmwear Version :7.0.1 build-227600 2. lynix version information. uname -a ... (1 Reply)
Discussion started by: onesuri
1 Replies

7. Red Hat

install winXP over redhat linux

Hi, I have red hat linux installed . then ,I want to install win XP in dual boot .. How , any advice in detailed ??/ (0 Replies)
Discussion started by: chuikingman
0 Replies

8. UNIX for Dummies Questions & Answers

Expect/Tcl help?

Does anyone know of an expect/tcl forum that is as helpful as this one is for shell scripting? Or if anyone has any expect knowledge, can you please provide some guidance on how to write to a local error log based on output from a ssh session? I have something like this: foreach host... (2 Replies)
Discussion started by: earnstaf
2 Replies

9. UNIX for Dummies Questions & Answers

Installing driver in linux redhat... what am I doing wrong?

I am trying to install this driver: http://www.asus.com/support/download/selectftp.aspx?l1_id=1&l2_id=15&l3_id=15&m_id=1&f_name=5702_558.zip~zaqwedc hoping it will correct my problem with my ethernet card. I am following the instructions in the text file that came with download... it says to... (7 Replies)
Discussion started by: Minnesota Red
7 Replies

10. UNIX for Dummies Questions & Answers

Installing RedHat Linux 7

Hey everybody. Its been awhile since I last posted but in short I am now in posession of RedHat Linux 7.0 which I got from a book called the RedHat 7 Bible. As this is not an official distribution I cannot get product support from RedHat so I decided to try here. I have three computers. I... (2 Replies)
Discussion started by: TheGoof
2 Replies
Login or Register to Ask a Question