-
Notifications
You must be signed in to change notification settings - Fork 3
01_Install
heguangyu5 edited this page Jul 15, 2024
·
16 revisions
Download BPC latest release tarball from release page.
BPC consists of two parts:
- bpc-common-VERSION.tar.gz
- bpc-compiler-VERSION.tar.gz
Notice
- All BPC related files installed to
/usr/local
. - BPC currently tested on Ubuntu-18.04/20.04/22.04/24.04-amd64, other platforms may worked but not tested.
- BPC contains
bigloo
, if you have installed your own bigloo, you'd better start with a new machine to try BPC.
Prerequisites
- BPC needs
ninja >= 1.11.0
, ninja simply just one executable binary, you can download the latest version and install it to/usr/local/bin/ninja
.
# Ubuntu 18.04
$ sudo apt install glib-networking libmysqlclient20 libgd3 libexif12 libzip4 libevent-core-2.1-6
# Ubuntu 20.04
$ sudo apt install libmysqlclient21 libgd3 libexif12 libzip5 libevent-core-2.1-7
# Ubuntu 22.04
$ sudo apt install glib-networking libmysqlclient21 libgd3 libexif12 libzip4
# Ubuntu 24.04
$ sudo apt install glib-networking libmysqlclient21 libexif12 libzip4t64 libpcre3
# install bpc-common
$ sudo tar -C / -zxf bpc-common-VERSION.tar.gz
$ sudo ldconfig
# Ubuntu 18.04/20.04/22.04/24.04
$ sudo apt install build-essential libgmp-dev
# install bpc-compiler
$ sudo tar -C / -zxf bpc-compiler-VERSION.tar.gz
now the bpc
compiler should be work:
$ bpc
bpc/x.x.x
Usage: bpc [options] <input-files> [-- script args]
see bpc -h for help with command line options
@see Basic Usage to compile your first php program.