Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Error while installing Perl module GD-2.73.

by Anonymous Monk
on Sep 15, 2021 at 18:16 UTC ( [id://11136792]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Monks,

I am getting below error while installing Perl module GD-2.73.

"Can't open perl script "Build": No such file or directory"

Could you please provide inputs on how to resolve this issue
Note that i am not installing it manually but from the script.

Thank you.

  • Comment on Error while installing Perl module GD-2.73.

Replies are listed 'Best First'.
Re: Error while installing Perl module GD-2.73.
by eyepopslikeamosquito (Archbishop) on Sep 16, 2021 at 09:15 UTC

    I see you are running on Windows but you don't tell us about your Perl requirements/environment:

    • How did you install your Perl? Which version?
    • Are you building Perl from source with a C compiler? If so, which one?
    • What steps do you normally use to install Perl CPAN modules?

    Are you able/allowed to simply download and run Strawberry Perl? That is by far the simplest option because Strawberry Perl comes with many modules pre-installed, including GD.

      Thank you for the reply
      I have GD installed in Strawberry perl on my local machine, can i copy and paste it directory on my dev machine.
      should i also copy GD folder from auto folder for it's ddl files.

      Thank you

        Well, you didn't answer all my questions so it's hard for me to offer sensible advice. :(

        Generally, copying and pasting is not a recommended way to install CPAN modules, it's an act of desperation. What is your "dev machine"? Your own private machine? Or shared by many folks in your company? What steps have you used in the past to install CPAN modules on it?

Re: Error while installing Perl module GD-2.73.
by marto (Cardinal) on Sep 15, 2021 at 18:56 UTC
Re: Error while installing Perl module GD-2.73.
by kcott (Archbishop) on Sep 16, 2021 at 06:08 UTC

    ++marto is absolutely correct ("Re: Error while installing Perl module GD-2.73.") in requesting you supply more pertinent details.

    My best guess is that you, or your script, is using Module::Build. The SYNOPSIS for that module shows ./Build, not Build, for all except MS platforms. Perhaps that's a place to start troubleshooting your problem.

    For what it's worth, I typically install GD via the core cpan utility without any problems. I currently have v2.73 installed. Perhaps another option for you to try.

    — Ken

      Thank you marto and Ken for the reply.
      I even tried to install the module manually, i get the same below error which i get from the perl script.
      C:\app\sources>perl C:\app\sources\builds\win64\modules\ GD-2.73\Makefile.PL Notice: Type perl Makefile.PL -h for command-line option summary. 'gdlib-config' is not recognized as an internal or external command, operable program or batch file. Can't locate ExtUtils/PkgConfig.pm in @INC (you may need to install th +e ExtUtils ::PkgConfig module) (@INC contains: C:/app/bin/Perl/site/lib C :/app/bin/Perl/lib) at C:\app\sources\builds\win64 \modules\GD-2.73\Makefile.PL line 449.
      Is it probem with the "gdlib-config" or do i need to install xtUtils ::PkgConfig module for the same

      Thank you

        You need to satisfy dependencies of modules you wish to install. Tools like cpan/cpanm do this for you by default. Additionally there are often non perl dependencies which should be mentioned in the module documentation, README. Strawberry Perl ships with GD along with much more.

        And why can't it be that you need to install both gdlib-config and ExtUtils::PkgConfig? The former, as part of the GD package (I don't mean the Perl GD module which is a wrapper) can be done (among many other ways) manually by downloading GD sources or binary-installer. The latter is a Perl module to be installed in the usual ways.

        Copying and pasting from one installation/computer to another is rarely a good solution and shows (to me at least) poor IT skills. Albeit, sometimes it is the only solution. AFAIC this is not what you want to do in this case because others reported success.

        bw, bliako

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found