Hi thanos1983, Many thanks for your response. I first tried installing DBI via CPAN and had the same problem, so I tried the manual installation instead. I have Xcode installed. I haven't altered any Perl settings and am just using what came installed. I tried upgrading via perl.org, and downloaded the suggested active Perl package, but this doesn't seem to have changed my Perl version - when I type perl -v I still get v5.18.2. I tried updating via cpan by following your instructions and got another error included below. I assume I am doing something pretty basic wrong here, perhaps relating to the way Perl is set up on my machine? Any pointers would be very gratefully received. Many thanks.

cpan[1]> install CPAN Reading '/Users/AH590/y/Metadata' Database was generated on Thu, 26 Oct 2017 10:41:02 GMT Running install for module 'CPAN' Running make for A/AN/ANDK/CPAN-2.16.tar.gz Checksum for /Users/AH590/.cpan/sources/authors/id/A/AN/ANDK/CPAN-2.16 +.tar.gz ok Scanning cache /Users/AH590/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Building A/AN/ANDK/CPAN-2.16.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite File::HomeDir 0.69 not found. Writing Makefile for CPAN Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- ANDK/CPAN-2.16.tar.gz ---- File::HomeDir [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'File::HomeDir' Running make for R/RE/REHSACK/File-HomeDir-1.002.tar.gz Checksum for /Users/AH590/.cpan/sources/authors/id/R/RE/REHSACK/File-H +omeDir-1.002.tar.gz ok CPAN.pm: Building R/RE/REHSACK/File-HomeDir-1.002.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Mac::SystemDirectory 0.04 not found. Writing Makefile for File::HomeDir Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- REHSACK/File-HomeDir-1.002.tar.gz ---- Mac::SystemDirectory [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Mac::SystemDirectory' Running make for E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz Checksum for /Users/AH590/.cpan/sources/authors/id/E/ET/ETHER/Mac-Syst +emDirectory-0.10.tar.gz ok CPAN.pm: Building E/ET/ETHER/Mac-SystemDirectory-0.10.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Mac::SystemDirectory Writing MYMETA.yml and MYMETA.json cp lib/Mac/SystemDirectory.pm blib/lib/Mac/SystmDirrectory.pm /usr/bin/perl /System/Library/Perl/5.18/ExtUtils/xsubpp -typemap /Sys +tem/Library/Perl/5.18/ExtUtils/typemap SystemDirectory.xs > SystemDi +rectory.xsc && mv SystemDirectory.xsc SystemDirectory.c cc -c -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fn +o-strict-aliasing -fstack-protector -Os -DVERSION=\"0.10\" -DXS_VER +SION=\"0.10\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2leve +l/CORE" -ObjC -DHAS_BOOL SystemDirectory.c SystemDirectory.xs:8:8: warning: extra tokens at end of #endif directi +ve [-Wextra-tokens] #endif Move ^ // SystemDirectory.xs:12:8: warning: extra tokens at end of #endif direct +ive [-Wextra-tokens] #endif I_POLL ^ // SystemDirectory.xs:92:12: warning: enumeration values 'NSAutosavedInfo +rmationDirectory', 'NSApplicationScriptsDirectory', and 'NSTrashDirec +tory' not handled in switch [-Wswitch] switch(directory) { ^ SystemDirectory.xs:92:12: note: add missing switch cases switch(directory) { ^ 3 warnings generated. SystemDirectory.xs:8:8: warning: extra tokens at end of #endif directi +ve [-Wextra-tokens] #endif Move ^ // SystemDirectory.xs:12:8: warning: extra tokens at end of #endif direct +ive [-Wextra-tokens] #endif I_POLL ^ // SystemDirectory.xs:92:12: warning: enumeration values 'NSAutosavedInfo +rmationDirectory', 'NSApplicationScriptsDirectory', and 'NSTrashDirec +tory' not handled in switch [-Wswitch] switch(directory) { ^ SystemDirectory.xs:92:12: note: add missing switch cases switch(directory) { ^ 3 warnings generated. Running Mkbootstrap for Mac::SystemDirectory () chmod 644 SystemDirectory.bs rm -f blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bundle cc -mmacosx-version-min=10.12.5 -arch x86_64 -arch i386 -bundle -unde +fined dynamic_lookup -fstack-protector -lobjc -framework CoreFoundati +on -framework Foundation SystemDirectory.o -o blib/arch/auto/Mac/Sys +temDirectory/SystemDirectory.bundle \ \ chmod 755 blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bundle cp SystemDirectory.bs blib/arch/auto/Mac/SystemDirectory/SystemDirecto +ry.bs chmod 644 blib/arch/auto/Mac/SystemDirectory/SystemDirectory.bs Manifying blib/man3/Mac::SysteDirecttory.3pm ETHER/Mac-SystemDirectory-0.10.tar.gz /usr/local/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-report-prereqs.t .. # # Versions for all modules listed in MYMETA.json (including optional o +nes): # # === Configure Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 6.66 # # === Build Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 6.66 # # === Test Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 6.66 # File::Spec any 3.40 # Test::More any 0.98 # # === Test Recommends === # # Module Want Have # ---------- -------- -------- # CPAN::Meta 2.120900 2.133380 # # === Runtime Requires === # # Module Want Have # -------- ---- ---- # Exporter any 5.68 # XSLoader any 0.16 # strict any 1.07 # warnings any 1.18 # # === Other Modules === # # Module Have # ------------- ------- # JSON::PP 2.27202 # Pod::Coverage missing # Sub::Name 0.05 # YAML missing # autodie 2.13 # t/00-report-prereqs.t .. ok t/000_load.t ........... 1/1 # Failed test 'use Mac::SystemDirectory;' # at t/000_load.t line 7. # Tried to use 'Mac::SystemDirectory'. # Error: Can't locate Mac/SystemDirectory.pm in @INC (you may nee +d to install the Mac::SystemDirectory module) (@INC contains: /Users/ +AH590/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/lib /Users/AH5 +90/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/arch /Library/Per +l/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library +/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Lib +rary/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-mult +i-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/d +arwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at (eva +l 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. Use of uninitialized value $Mac::SystemDirectory::VERSION in concatena +tion (.) or string at t/000_load.t line 10. # Mac::SystemDirectory , Perl 5.018002, /usr/bin/perl # Looks like you failed 1 test of 1. t/000_load.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/005_import.t ......... # limiting available functions to Mac OS X 10 +.12 t/005_import.t ......... 1/1 # Failed test 'use Mac::SystemDirectory;' # at t/005_import.t line 74. # Tried to use 'Mac::SystemDirectory'. # Error: Can't locate Mac/SystemDirectory.pm in @INC (you may nee +d to install the Mac::SystemDirectory module) (@INC contains: /Users/ +AH590/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/lib /Users/AH5 +90/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/arch /Library/Per +l/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library +/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Lib +rary/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-mult +i-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/d +arwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at (eva +l 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Looks like you failed 1 test of 1. t/005_import.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/010_usage.t .......... 1/9 # Failed test 'use Mac::SystemDirectory;' # at t/010_usage.t line 7. # Tried to use 'Mac::SystemDirectory'. # Error: Can't locate Mac/SystemDirectory.pm in @INC (you may nee +d to install the Mac::SystemDirectory module) (@INC contains: /Users/ +AH590/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/lib /Users/AH5 +90/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/arch /Library/Per +l/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library +/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Lib +rary/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-mult +i-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/d +arwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at (eva +l 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Failed test 'FindDirectory() without arguments throws an usage exc +eption' # at t/010_usage.t line 11. # 'Undefined subroutine &main::FindDirectory called +at t/010_usage.t line 10. # ' # doesn't match '(?^:^Usage: )' # Failed test 'FindDirectory() with to may arguments throws an usage + exception' # at t/010_usage.t line 14. # 'Undefined subroutine &main::FindDirectory called +at t/010_usage.t line 13. # ' # doesn't match '(?^:^Usage: )' # Failed test 'FindDirectory(0) lives' # at t/010_usage.t line 17. # got: 'Undefined subroutine &main::FindDirectory called at t +/010_usage.t line 16. # ' # expected: '' # Failed test 'FindDirectory(0, 0) lives' # at t/010_usage.t line 20. # got: 'Undefined subroutine &main::FindDirectory called at t +/010_usage.t line 19. # ' # expected: '' # Failed test 'HomeDirectory() with arguments throws an usage except +ion' # at t/010_usage.t line 23. # 'Undefined subroutine &main::HomeDirectory called +at t/010_usage.t line 22. # ' # doesn't match '(?^:^Usage: )' # Failed test 'HomeDirectory() lives' # at t/010_usage.t line 26. # got: 'Undefined subroutine &main::HomeDirectory called at t +/010_usage.t line 25. # ' # expected: '' # Failed test 'TemporaryDirectory() with arguments throws an usage e +xception' # at t/010_usage.t line 29. # 'Undefined subroutine &main::TemporaryDirectory ca +lled at t/010_usage.t line 28. # ' # doesn't match '(?^:^Usage: )' # Failed test 'HomeDirectory() lives' # at t/010_usage.t line 32. # got: 'Undefined subroutine &main::TemporaryDirectory called + at t/010_usage.t line 31. # ' # expected: '' # Looks like you failed 9 tests of 9. t/010_usage.t .......... Dubious, test returned 9 (wstat 2304, 0x900) Failed 9/9 subtests t/020_basic.t .......... 1/3 # Failed test 'use Mac::SystemDirectory;' # at t/020_basic.t line 7. # Tried to use 'Mac::SystemDirectory'. # Error: Can't locate Mac/SystemDirectory.pm in @INC (you may nee +d to install the Mac::SystemDirectory module) (@INC contains: /Users/ +AH590/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/lib /Users/AH5 +90/.cpan/build/Mac-SystemDirectory-0.10-KPvNGI/blib/arch /Library/Per +l/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library +/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Lib +rary/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-mult +i-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/d +arwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at (eva +l 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. Bareword "NSApplicationDirectory" not allowed while "strict subs" in u +se at t/020_basic.t line 10. Execution of t/020_basic.t aborted due to compilation errors. # Looks like you planned 3 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1. t/020_basic.t .......... Dubious, test returned 255 (wstat 65280, 0xff +00) Failed 3/3 subtests Test Summary Report ------------------- t/000_load.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/005_import.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/010_usage.t (Wstat: 2304 Tests: 9 Failed: 9) Failed tests: 1-9 Non-zero exit status: 9 t/020_basic.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 3 tests but ran 1. Files=5, Tests=13, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.16 cusr + 0.01 csys = 0.20 CPU) Result: FAIL Failed 4/5 test programs. 12/13 subtests failed. make: *** [test_dynamic] Error 255 ETHER/Mac-SystemDirectory-0.10.tar.gz /usr/local/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports ETHER/Mac-SystemDirectory-0.10.tar.gz Running make install make test had returned bad status, won't install without force Running make for R/RE/REHSACK/File-HomeDir-1.002.tar.gz Has already been unwrapped into directory /Users/AH590/.cpan/build/F +ile-HomeDir-1.002-SkhYMA CPAN.pm: Building R/RE/REHSACK/File-HomeDir-1.002.tar.gz Warning: Prerequisite 'Mac::SystemDirectory => 0.04' for 'REHSACK/File +-HomeDir-1.002.tar.gz' failed when processing 'ETHER/Mac-SystemDirect +ory-0.10.tar.gz' with 'make_test => NO'. Continuing, but chances to s +ucceed are limited. cp lib/File/HomeDir/FreeDesktop.pm blib/lib/File/HomeDir/FreeDesktop.p +m cp lib/File/HomeDir/Darwin/Cocoa.pm blib/lib/File/HomeDir/Darwin/Cocoa +.pm cp lib/File/HomeDir/Unix.pm blib/lib/File/HomeDir/Unix.pm cp lib/File/HomeDir/Darwin.pm blib/lib/File/HomeDir/Darwin.pm cp lib/File/HomeDir/Driver.pm blib/lib/File/Homiivveerr..ppmm AutoSplit: Can't open blib/lib/File/Homiivveerr..ppmm.pm: No such file + or directory make: *** [pm_to_blib] Error 2 REHSACK/File-HomeDir-1.002.tar.gz /usr/local/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Running make for A/AN/ANDK/CPAN-2.16.tar.gz Has already been unwrapped into directory /Users/AH590/.cpan/build/C +PAN-2.16-nD5nJj CPAN.pm: Building A/AN/ANDK/CPAN-2.16.tar.gz Warning: Prerequisite 'File::HomeDir => 0.69' for 'ANDK/CPAN-2.16.tar. +gz' failed when processing 'REHSACK/File-HomeDir-1.002.tar.gz' with ' +make => NO'. Continuing, but chances to succeed are limited. cp lib/CPAN/Exception/yaml_process_error.pm blib/lib/CPAN/Exception/ya +ml_process_error.pm cp lib/CPAN/Author.pm blib/lib/CPAN/Author.pm cp lib/CPAN/Module.pm blib/lib/CPAN/Module.pm cp lib/CPAN/Plugin/Specfile.pm blib/lib/CPAN/Plugin/Specfile.pm cp lib/CPAN/Kwalify.pm blib/lib/CPAN/Kwalify.pm cp lib/CPAN/Nox.pm blib/lib/CPAN/Nox.pm cp lib/CPAN/Distribution.pm blib/lib/CPAN/Distribution.pm cp lib/CPAN/Exception/yaml_not_installed.pm blib/lib/CPAN/Exception/ya +ml_not_installed.pm cp lib/CPAN.pm blib/lib/CPAN.pm cp lib/CPAN/InfoObj.pm blib/lib/CPAN/InfoObj.pm cp lib/CPAN/Tarzip.pm blib/lib/CPAN/Tarzip.pm cp lib/CPAN/Prompt.pm blib/lib/CPAN/Prompt.pm cp lib/CPAN/Exception/RecursiveDependency.pm blib/lib/CPAN/Exception/R +ecursivmmmmmmmm AutoSplit: Can't open blib/lib/CPAN/Exception/Recursivmmmmmmmm.pm: No +such file or directory make: *** [pm_to_blib] Error 2 ANDK/CPAN-2.16.tar.gz /usr/local/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: ETHER/Mac-SystemDirectory-0.10.tar.gz : make_test NO REHSACK/File-HomeDir-1.002.tar.gz : make NO ANDK/CPAN-2.16.tar.gz : make NO


In reply to Re^2: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/ by Nanjizal
in thread Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/ by Nanjizal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.