You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hung Ho (Jira)" <ji...@apache.org> on 2021/03/09 20:49:00 UTC

[jira] [Commented] (THRIFT-5323) PKG_PROG_PKG_CONFIG: command not found when running ./configure on Mac

    [ https://issues.apache.org/jira/browse/THRIFT-5323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298343#comment-17298343 ] 

Hung Ho commented on THRIFT-5323:
---------------------------------

To answer my own question, I found this comment [https://stackoverflow.com/a/17106579/4092412.] This leads me to search for `pkg.m4` on my machine and copy it to `aclocal/`. `./configure` works and I am building now

> PKG_PROG_PKG_CONFIG: command not found when running ./configure on Mac
> ----------------------------------------------------------------------
>
>                 Key: THRIFT-5323
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5323
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>         Environment: MacOS BigSur
>            Reporter: Hung Ho
>            Priority: Major
>
> Hello, I have looked at https://issues.apache.org/jira/browse/THRIFT-4910 and [https://askubuntu.com/questions/468661/how-to-fix-pkg-prog-pkg-config-command-not-found-error]
> `aclocal --print-ac-dir` gives `/usr/local/Cellar/automake/1.16.3/share/aclocal`
> `find /usr -name "pkg.m4"` gives:
> `/usr/local/Cellar/pkg-config/0.29.2_3/share/aclocal/pkg.m4
> /usr/local/share/aclocal/pkg.m4`
>  
> I have tried `export ACLOCAL_PATH=/usr/share/aclocal` but that doesn't help. Any suggestion on how to workaround / debug this?
> Thanks,



--
This message was sent by Atlassian Jira
(v8.3.4#803005)