GithubHelp home page GithubHelp logo

Comments (5)

hakonhagland avatar hakonhagland commented on August 22, 2024

See also this issue on Stack Overflow.

from b-keywords.

hakonhagland avatar hakonhagland commented on August 22, 2024

Some more information. On my machine macOS 11.2.3 I have:

$ perl -MConfig -E'say $Config{archlibexp}'
/System/Library/Perl/5.28/darwin-thread-multi-2level
$ ls /System/Library/Perl/5.28/darwin-thread-multi-2level/CORE
libperl.dylib

so there are no perl headers there. But I can get the location of the headers by running:

$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

and prepend this to the other path:

$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/5.28/darwin-thread-multi-2level/CORE
EXTERN.h             dquote_inline.h      hv.h                 malloc_ctl.h         opcode.h             perldtrace.h         regcharclass.h       time64_config.h      warnings.h
INTERN.h             ebcdic_tables.h      hv_func.h            metaconfig.h         opnames.h            perlio.h             regcomp.h            uconfig.h            zaphod32_hash.h
XSUB.h               embed.h              hv_macro.h           mg.h                 overload.h           perliol.h            regexp.h             uni_keywords.h
av.h                 embedvar.h           inline.h             mg_data.h            pad.h                perlsdio.h           regnodes.h           unicode_constants.h
bitcount.h           fakesdio.h           intrpvar.h           mg_raw.h             parser.h             perlvars.h           sbox32_hash.h        unixish.h
charclass_invlists.h feature.h            invlist_inline.h     mg_vtable.h          patchlevel.h         perly.h              scope.h              utf8.h
config.h             form.h               iperlsys.h           mydtrace.h           perl.h               pp.h                 stadtx_hash.h        utfebcdic.h
cop.h                git_version.h        keywords.h           nostdio.h            perl_inc_macro.h     pp_proto.h           sv.h                 util.h
cv.h                 gv.h                 l1_char_class_tab.h  op.h                 perl_langinfo.h      proto.h              thread.h             uudmap.h
dosish.h             handy.h              libperl.tbd          op_reg_common.h      perlapi.h            reentr.h             time64.h             vutil.h

from b-keywords.

nega0 avatar nega0 commented on August 22, 2024

This is also referenced at CPAN: https://rt.cpan.org/Public/Bug/Display.html?id=133947

from b-keywords.

rurban avatar rurban commented on August 22, 2024

I don't feel very comfortable to add a workaround for a deliberately broken system perl on macOS.

  • Either force installing it there (perldoc cpan; cpan -T), or
  • install your own perl, where you can use cpan with a proper Config.

Apple explicitly doesn't recommend to use cpan on their own perl, so they can trust it not to be touched by users. https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/FileSystemProtections/FileSystemProtections.html#//apple_ref/doc/uid/TP40016462-CH2-SW1

from b-keywords.

nega0 avatar nega0 commented on August 22, 2024

I'm using local::lib. Nothing touches system perl.

from b-keywords.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.