[
https://issues.apache.org/jira/browse/THRIFT-4870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16847612#comment-16847612
]
Anthony Orona commented on THRIFT-4870:
---------------------------------------
I have found a solution.
brew install bison
brew unlink bison
brew link bison --force
source ~/.bash_profile
bison -V (should be >= 2.5)
install thrift with:
./configure --prefix=/usr/local/ --with-boost=/usr/local
--with-libevent=/usr/local LDFLAGS=-L/usr/local/opt/bison/lib
> Cannot install thrift on Mac OSX 10.14.5 [configure: error: Bison version 2.5]
> ------------------------------------------------------------------------------
>
> Key: THRIFT-4870
> URL: https://issues.apache.org/jira/browse/THRIFT-4870
> Project: Thrift
> Issue Type: Comment
> Affects Versions: 0.12.0
> Reporter: Anthony Orona
> Priority: Major
>
> I am installing apache thrift on a mac using the OS X setup guide
> [https://thrift.apache.org/docs/install/os_x]
> I am able to install Boost and libevent
> When I build apache thrift I get the following error:
> checking for bison version >= 2.5... no
> configure: error: Bison version 2.5 or higher must be installed on the
> system!
> I installed a more recent version of Bison using brew and then specified the
> bison version using linker flags as follows:
> ./configure --prefix=/usr/local/ --with-boost=/usr/local
> --with-libevent=/usr/local LDFLAGS=-L/usr/local/opt/bison/lib
> However, I am not able to build apache thrift using the linker flag above.
> *I cannot install thrift using brew as brew doesn't fully install everything
> for python.*
> How can I install thrift using the correct version of Bison?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)