homebrew-postgresql icon indicating copy to clipboard operation
homebrew-postgresql copied to clipboard

configure: error: header file <perl.h> is required for Perl

Open manishrai554 opened this issue 6 years ago • 3 comments

brew install petere/postgresql/postgresql@12

==> Installing postgresql@12 from petere/postgresql ==> Downloading https://ftp.postgresql.org/pub/source/v12.0/postgresql-12.0.tar.bz2 Already downloaded: /Users/manishr/Library/Caches/Homebrew/downloads/9a050b57e5493faa799013fecb7c1c1d78dd6a8310669083b9c830c52cf83eb3--postgresql-12.0.tar.bz2 ==> ./configure --prefix=/usr/local/Cellar/postgresql@12/12.0 --enable-dtrace --enable-nls --with-bonjour --with-gssapi --with-icu --with-ldap --with-libxm Last 15 lines from /Users/manishr/Library/Logs/Homebrew/postgresql@12/01.configure: checking for library containing bind_textdomain_codeset... -lintl checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for msgfmt... /usr/local/opt/gettext/bin/msgfmt checking for msgfmt flags... -c checking for msgmerge... /usr/local/opt/gettext/bin/msgmerge checking for xgettext... /usr/local/opt/gettext/bin/xgettext checking for tclsh... /usr/local/opt/tcl-tk/bin/tclsh checking for tclConfig.sh... /usr/local/Cellar/tcl-tk/8.6.9_1/lib/tclConfig.sh checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes checking for perl.h... no configure: error: header file <perl.h> is required for Perl

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/petere/homebrew-postgresql/issues

These open issues may also help: While installing postgresql@11: configure: error: header file <perl.h> is required for Perl https://github.com/petere/homebrew-postgresql/issues/44

manishrai554 avatar Oct 14 '19 10:10 manishrai554

https://github.com/petere/homebrew-postgresql/issues/44#issuecomment-545029675 Basically, you need to install XCode because Command Line Tools no longer includes perl headers.

townge avatar Dec 08 '19 02:12 townge

#44 (comment) Basically, you need to install XCode because Command Line Tools no longer includes perl headers.

I have Xcode installed (iOS Catalina) and still got this error.

nardonykolyszyn avatar Jul 24 '20 23:07 nardonykolyszyn

I also get this error with Xcode "installed" (Catalina) -- but there seem to be plenty of errors around XCode and the command line tools (which are "not in the repository" when I try to install them). Reinstalling XCode accomplished nothing. Apple sucks.

chasm avatar Oct 31 '20 22:10 chasm