Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Anonymous Monk
on Nov 17, 2022 at 09:37 UTC ( [id://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/Open3.pm 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 https://www.cpan.org

        Then execute below command,

        perl Makefile.PL make make test make install