FastBinaryEncoding icon indicating copy to clipboard operation
FastBinaryEncoding copied to clipboard

How to install fbec compiler for macos

Open ohmpatel1997 opened this issue 2 years ago • 5 comments

Please update the documentation clearly on how to install the fbec compiler to generate the domain model.

Currently it says:

brew install flex bison

 git clone https://github.com/chronoxor/FastBinaryEncoding.git
 cd FastBinaryEncoding
 gil updatepip3 install gil
cd build
./unix.sh

I did above all steps, but at the end its gives me following error:

[BISON][parser] Building parser with bison 2.3
/Library/Developer/CommandLineTools/usr/bin/bison: invalid option -- W
Try `/Library/Developer/CommandLineTools/usr/bin/bison --help' for more information.
make[2]: *** [/Users/ohmpatel/FastBinaryEncoding/source/fbe-parser.cpp] Error 1
make[1]: *** [CMakeFiles/fbec.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

I followed this documentation: https://chronoxor.github.io/FastBinaryEncoding/

I am using M1.

ohmpatel1997 avatar Feb 26 '23 13:02 ohmpatel1997

You need bison 3.8.x: image https://github.com/chronoxor/FastBinaryEncoding/actions/runs/4092288146/jobs/7056910153

chronoxor avatar Feb 26 '23 17:02 chronoxor

I did brew install flex bison, as mentioned in the doc.

ohmpatel1997 avatar Feb 27 '23 07:02 ohmpatel1997

3.8.2 is already installed.

sc

ohmpatel1997 avatar Feb 27 '23 07:02 ohmpatel1997

@chronoxor can u please help me out

ohmpatel1997 avatar Feb 28 '23 07:02 ohmpatel1997

3.8.2 is already installed.

sc

You need to update the $PATH to use the brew-version bison

export PATH=$(brew --prefix bison)/bin:$PATH

lovio avatar Jun 09 '23 02:06 lovio