Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/

by kcott (Archbishop)
on Oct 27, 2017 at 18:48 UTC ( [id://1202181]=note: print w/replies, xml ) Need Help??


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

"Many thanks for your tips and advice."

You're very welcome.

"Unfortunately, installation of the latest stable version of Perl (v5.26.1) throws up the following error, when using the command $perlbrew install stable: ..."

I think you may have missed the beginning of the error message (perhaps where the text wrapped). What you posted begins with "or-strong ..."; I see on the next line "... -fstack-protector-strong ..."; maybe you've chopped off that first line in the middle of an option similar to that.

Further down, I see "clang: error: no such file or directory: 'lmm'". The line immediately before that ends with "... -lpthread -ldl lmm -lutil -lc": I'm wondering if "lmm" should really be "-lmm", which would match all the "-l*" parts surrounding it.

A search for the clang error didn't provide any useful results. I also had a look in "Active bugs for App-perlbrew": none of the "Subject" lines seemed relevant (although, they're not always as descriptive as they might be).

I don't normally use the "install stable" command; in fact, it's possible I've never used it. I typically have some non-default options, so I use a command with this format:

$ perlbrew install -v DOWNLOAD_URL -Dusethreads --as perl-5.x.xt

I get the DOWNLOAD_URL directly from the CPAN page (in the top-right corner you'll see "Download: link-to-tarball). So for 5.26.1, the link is http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/perl-5.26.1.tar.gz, and the command would be:

$ perlbrew install -v http://search.cpan.org/CPAN/authors/id/S/SH/SHAY +/perl-5.26.1.tar.gz -Dusethreads --as perl-5.26.1t

I haven't installed 5.26.1. The last one was 5.26.0, the link is http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/perl-5.26.0.tar.bz2, and the command I would have used was:

$ perlbrew install -v http://search.cpan.org/CPAN/authors/id/X/XS/XSAW +YERX/perl-5.26.0.tar.bz2 -Dusethreads --as perl-5.26.0t

You can try either of those yourself. They both install Perl with thread support; if you don't want threads, omit the -Dusethreads, and leave off the "t" from the end of perl-5.x.xt (that's just my own convention to indicate threads).

I don't recall having any problems installing Perl using that method. I have successfully installed all of these:

$ perlbrew list perl-5.14.0t perl-5.14.2 perl-5.14.2t perl-5.18.0t perl-5.18.1t perl-5.20.0t perl-5.20.2t perl-5.22.0t perl-5.24.0t perl-5.25.9t * perl-5.26.0t

— Ken

Replies are listed 'Best First'.
Re^4: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/
by Nanjizal (Novice) on Oct 30, 2017 at 19:01 UTC

    Hi Ken,

    Thanks again for the tips, and for searching around for me.

    I tried those suggestions, but I still always run into the same error (example output provided below).

    I don't know whether it's perhaps something to do with the new 'System Integrity Protection' feature of MacOS limiting access etc?

    In any case, I've switched to using Macports and things seem to be working okay. I'm using a local version of Perl in /opt/local/bin/ instead of the system Perl.

      "I tried those suggestions, but I still always run into the same error (example output provided below)."

      It looks like you've hit the 64K limit: your output is truncated. Where you previously had

      ... -lpthread -ldl lmm -lutil -lc

      followed by an error; you now have

      ... -lpthread -ldl -lm -lutil -lc

      with no error. And no subsequent errors to the end of what's posted.

      "I don't know whether it's perhaps something to do with the new 'System Integrity Protection' feature of MacOS limiting access etc?"

      That shouldn't be an issue. I investigated SIP before upgrading to whatever version had that (10.10.x?). I have the default SIP configuration; I haven't changed anything associated with it; Perl installations work fine.

      "In any case, I've switched to using Macports and things seem to be working okay. I'm using a local version of Perl in /opt/local/bin/ instead of the system Perl."

      At least you now have a working Perl that isn't the System Perl.

      — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-25 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found