Created
July 23, 2018 16:27
-
-
Save karenetheridge/eed7fdd9d2d5ef92f35c5fc0510fcb51 to your computer and use it in GitHub Desktop.
Revisions
-
karenetheridge created this gist
Jul 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ Installing some database-related modules (such as DBD::Pg) under macos 10.13.x (High Sierra) will be problematic because Apple is shipping a bad berkeley-db with this OS. If you see installation issues mentioning DB_File, you've hit this problem. To fix, do these commands in a new shell, in the directory where you are trying to do the module installation (so as to not pollute your existing environment): sudo port install db48 # you may have this already, e.g. via python27 eval $(perl -Mlocal::lib='local/lib/perl5') cpanm --look DB_File You're now in another subshell. Edit config.in to add these two lines, replacing the existing INCLUDE and LIB lines: INCLUDE = /opt/local/include/db48 LIB = /opt/local/lib/db48 Then execute `perl Makefile.PL && make install` and close this shell. For background, see: https://rt.cpan.org/Public/Bug/Display.html?id=125238 and https://rt.perl.org/Ticket/Display.html?id=133280