Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

I am getting an error when executing an One of the Perl file.

by Anonymous Monk
on Nov 17, 2022 at 09:37 UTC ( #11148209=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am executing my one of the Perl File and I am getting an error like the below:

Can't exec "expect": No such file or directory at /usr/local/lib/perl5/5.36.0/IPC/ line 290 (#1) (W exec) A system(), exec(), or piped open call could not execute +the named program for the indicated reason. Typical reasons include: +the permissions were wrong on the file, the file wasn't found in $ENV{PATH}, the executable in question was compiled for another architecture, or the #! line in a script points to an interpreter +that can't be run for similar reasons. (Or maybe your system doesn't s +upport #! at all.)

Can anyone help me regarding on these issue

Replies are listed 'Best First'.
Re: I am getting an error when executing an One of the Perl file.
by marto (Cardinal) on Nov 17, 2022 at 09:48 UTC

    Sounds like expect isn't installed on your system.

      How Can I install that expect. Can you please tell the Process

        You don't say which OS, for debian style sudo apt install expect, or whatever package manager your distro provides. How do I post a question effectively?.

        Update: For context, your perl script is calling an external program, expect, which you don't have on the system you're running the perl script on. Perhaps a more portable solution would be the cpan module Expect (to install cpan Expect).

        Download the Expect module from

        Then execute below command,

        perl Makefile.PL make make test make install

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11148209]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-02-06 00:28 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (33 votes). Check out past polls.