GithubHelp home page GithubHelp logo

bhanditz / php-build-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itxtech/php-build-scripts

0.0 2.0 0.0 24 KB

Compile scripts used to build PHP binaries

Home Page: https://itxtech.org/genisys/

License: MIT License

Dockerfile 2.08% Shell 97.92%

php-build-scripts's Introduction

Script for building Windows PHP packages

The script need to be ran on Linux. Dependencies: aria2, bsdtar

Script for building and installing PHP on Linux

Run this to build and install PHP configure to match your environment. You need basic compiler package group, build dependencies and curl, sudo, tar.

The following is just for reference:

  • For Debian-based distros: libssl-dev autoconf pkg-config curl libedit-dev libsqlite3-dev libxml2-dev libcurl4-openssl-dev libyaml-dev libzip-dev libgmp-dev

  • For RPM-based-distros: autoconf pkg-config curl libedit-devel libsqlite3-devel libxml2-devel libyaml-devel libcurl-devel libzip-last-devel libgmp-devel

  • If you are using Ubuntu 17.04 and above, configure can not locate the libcurl, so you need to sudo ln -s /usr/include/x86_64-linux-gnu/curl /usr/include

Environment variable "$PREFIX" can be set to install to other locations (must be absolute path). The default is /usr/local, which most time has the highest priority in the PATH.

Home based install with phpbrew

After installing phpbrew, you can build with the following flags:

phpbrew install -j $(nproc) latest +neutral-cgi+mbstring+bcmath+sockets+curl+editline+openssl+zlib+pcntl+zts
phpbrew ext install yaml latest
phpbrew ext install pthreads latest
phpbrew ext install weakref latest

php-build-scripts's People

Contributors

ishitatsuyuki avatar dktapps avatar peratx avatar thenewherobrinex avatar milkice233 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.