Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem installing expect


    Im following the install instructions. I have tcl installed. Created a symbolic link to it. When i run ./configure i receive;

    configuring Expect 5.43.0
    checking for autoconf... yes
    checking configure up to date... yes
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking shell to use within Make...
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for building with threads... no (default)
    checking for Tcl configuration... configure: warning: Can't find Tcl configuration definitions
    ./configure: line 1106: #: No such file or directory

    Any one any ideas. Thanks.

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Which distro are you using? Is this machine connected to the Internet? If so, you should be able to install expect with:
    Code:
    #yum install expect

  3. #3
    yum install expect
    Gathering header information file(s) from server(s)
    Server: Red Hat Linux 4ES - i386 - Base
    retrygrab() failed for:
    http://mirror.dulug.duke.edu/pub/yum...rs/header.info
    Executing failover method
    failover: out of servers to try
    Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
    [Errno 4] IOError: HTTP Error 404: Not Found


    Machine > Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Then I assume you don't have Internet access on this machine?

    A simple Google search found this.

    You'll need to specify the location of the files tclConfig.sh and tkConfig.sh from your tcl/tk installation. In the example above, you would add --with-tclconfig=/opt/local/lib/tclConfig.sh --with-tkconfig=/opt/local/lib/tkConfig.sh to your configure command.
    If you have Tcl installed, find those files and include them in the ./configure command.

  6. #5
    ./configure --with-tclconfig=/usr/lib/tclConfig.sh --with-tkconfig=/usr/lib/tkConfig.sh
    configuring Expect 5.43.0
    checking for autoconf... yes
    checking configure up to date... yes
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking shell to use within Make...
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for building with threads... no (default)
    checking for Tcl configuration... configure: error: /usr/lib/tclConfig.sh directory doesn't contain tclConfig.sh

    both these files are in those directorys. Can you see anything obvious I'm doing wrong.

  7. #6
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Again, the first hit on Google has some leads.

    It's not likely that you're the first person to encounter this problem. Do some thorough searching for any errors you receive. Your chances are very good that someone else ran across the same problem and even found a solution.

    Oh, and welcome to the forums.

  8. #7
    Sorry false alarm, I got it working. Thanks so much for your help. Thanks.

  9. #8
    -->
    When i thought things were looking up, running one of the examples,

    [root@bfs-hs20-08s1 example]# ./autoexpect
    ../expect: error while loading shared libraries: libtcl8.3.so: cannot open shared object file: No such file or directory

    Im considering giving up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •