Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: perl v5.28.1 install GPIB module fail

by bliako (Monsignor)
on Oct 15, 2021 at 08:16 UTC ( #11137567=note: print w/replies, xml ) Need Help??

in reply to Re^2: perl v5.28.1 install GPIB module fail
in thread perl v5.28.1 install GPIB module fail

The excerpt you posted above confirms syphilis's hunch about checking perl -V:cc. It is empty as you discovered. The make output shows that it is likely trying to execute a $(CC) -c ... but CC, which most likely is set via perl -V:cc, is empty. And tries to execute -c which follows.

Perlmonks have answered a similar question here: and offer solutions by either telling perl Makefile.PL what CC to use (perl Makefile.PL CC=...) or how to save your CC choice permanently with Perl's config.

If all else fails, a quick hack would be to edit the Makefile produced (not the Makefile.PL) and find where CC is set, perhaps a CC= line near the top. And set it to the path of the compiler executable which compiled perl.exe (do you have one?). Having said that, you will likely encounter additional errors with the linker (perl -V:ld). Usually, and in my system, linker executable can be replaced by the compiler, so additionally set LD (in Makefile) to the same CC executable.

bw, bliako

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2022-01-21 20:19 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (59 votes). Check out past polls.