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

When i am installing Alien-Build-2.48 module i am getting error like below

command for installing

sudo perl Makefile.PL

ERROR

gcc -I/usr/lib64/perl5/CORE -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-s +trict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEF +ILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_S +OURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size +=4 -grecord-gcc-switches -m64 -mtune=generic -o inc/trivial.o inc/tri +vial.c Can't locate File/Which.pm in @INC (@INC contains: /usr/local/lib64/pe +rl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/pe +rl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL l +ine 164.

Replies are listed 'Best First'.
Re: when i am installing the alien build module i am getting error.
by marto (Cardinal) on May 04, 2022 at 11:35 UTC

    When installing modules, you need to satisfy their dependencies, perl or otherwise. The simplest way to do this is not to build each one manually, but to use cpan (ships with perl), or cpanm (needs to be installed but is faster):

    cpan Alien::Build or cpanm Alien::Build

    This will automatically download and install dependencies. This has been suggested a few times now in your previous threads, see Re^3: Can I use the Following Modules in the Linux version of Perl..

      without all these steps

      sudo perl Makefile.PL

      make

      make test

      make install

      can i directly use the cpan Alien::Build

      or else any other thing you are trying to conveying

        "without all these steps"

        If you don't install the module properly, you can't use the module. I'd guess you're hitting this problem by trying to manually install all the modules from your other post. Doing it by hand is possible, but needlessly time consuming, cpan/cpanm exist specifically to make this easier. NOT satisfying dependencies will NOT result in a usable module install.

        A reply falls below the community's threshold of quality. You may see it by logging in.
        Why are you using sudo to process Makefile.PL, but not for the following steps?

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re: when i am installing the alien build module i am getting error.
by hippo (Archbishop) on May 04, 2022 at 13:52 UTC
Re: when i am installing the alien build module i am getting error.
by perlfan (Parson) on May 11, 2022 at 03:57 UTC
    Have you tried #native on irc.perl.org ?