On a clean Ubuntu 18.04 the following software needs to be installed:
sudo apt install bison flex python-dev
If you‘re building a source-distribution and haven’t installed git yet, be sure to do so:
sudo get install git
Make sure Homebrew
ist installed in order to update Bison
to a newer version (the version 2.3 installed per default is too old)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then update Bison
:
brew install bison brew link bison --force echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
Install Python 2.7
:
brew install python@2
Be sure to re-open the command window or the changes will not apply.
Some tools need to be installed before being able to build on Windows:
He have tested WinBuilds with the bundle of: http://win-builds.org/doku.php/download_and_installation_from_windows When running the installer, make sure to select the options:
For Bison, please download the Setup installer version from here: http://gnuwin32.sourceforge.net/packages/bison.htm (When using the zip version the bison.exe couldn‘t find some DLL files) It seems the official 2.4.1 version has issues when installed in a directory which’s path contains spaces. Please make sure you replace the exe with a patched version form here: http://marin.jb.free.fr/bison/bison-2.4.1-modified.zip (More infos on this issue here: https://sourceforge.net/p/gnuwin32/bugs/473/)
Please download the Flex compiler from here: http://gnuwin32.sourceforge.net/packages/flex.htm (Ideally download the binary zip distribution)
You can get Python from here: https://www.python.org/downloads/release/python-2716/
Make sure the bin
directories of containing the executables mingw32-make.exe
, bison.exe
and flex.exe
are all on your systems PATH
.
If you‘re building a source-distribution and haven’t installed git yet, be sure to do so.