Skip to content

01_Install

heguangyu5 edited this page Jul 15, 2024 · 16 revisions

Download BPC latest release tarball from release page.

BPC consists of two parts:

  1. bpc-common-VERSION.tar.gz
  2. bpc-compiler-VERSION.tar.gz

Notice

  1. All BPC related files installed to /usr/local.
  2. BPC currently tested on Ubuntu-18.04/20.04/22.04/24.04-amd64, other platforms may worked but not tested.
  3. BPC contains bigloo, if you have installed your own bigloo, you'd better start with a new machine to try BPC.

Prerequisites

  1. 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.

1. Install bpc-common-VERSION.tar.gz

# 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

2. Install bpc-compiler-VERSION.tar.gz

# 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.

Clone this wiki locally