CLI Build Command Generator
TIP
The extensions selected below may contain extensions that are not supported by the selected operating system, which may cause compilation to fail. Please check Supported Extensions first.
Select Build OS
Select Extensions
Select common extensions
Unselect all
Select Dependencies
TIP
After selecting the extensions, the unselectable items are essential dependencies. In the compiled dependencies list, optional dependencies consist of existing extensions and optional dependencies of libraries. Optional dependencies will be added in --with-libs parameter.
Build Target
Build Options
Build Environment | |
Download PHP version | |
Enable debug message | |
Enable ZTS | |
Download with corresponding extension dependencies | |
Download pre-built dependencies if possible (reduce compile time) | |
Enable UPX compression (reduce binary size) |
Hardcoded INI options
Result
Download spc binary command
curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64.tar.gz && tar -zxvf spc.tgz && rm spc.tgz
Download sources by extensions command
./spc download --with-php=8.2 --for-extensions "" --prefer-pre-built
Compile command
./spc build --build-cli ""