This document has detailed instructions on how to build SkyWalking PHP Agent from source.
- gcc
- make
- rust
- protoc
$ [sudo] apt-get install build-essential autoconf automake libtool curl make gcc unzip pkg-config
$ [sudo] apt-get install cmake rust cargo rustfmt
On a Mac, you will first need to install Xcode or Command Line Tools for Xcode and then run the following command from a terminal:
$ [sudo] xcode-select --install
$ brew install autoconf automake libtool shtool
$ apk --update add --no-cache git ca-certificates autoconf automake libtool
$ apk --update add --no-cache cmake gcc make file linux-headers file re2c
$ apk --update add --no-cache pkgconf openssl openssl-dev curl curl-dev nginx protoc rust rustfmt cargo
curl -Lo v5.0.1.tar.gz https://github.com/SkyAPM/SkyAPM-php-sdk/archive/v5.0.1.tar.gz
tar zxvf v5.0.1.tar.gz
cd SkyAPM-php-sdk-5.0.1
git clone -b v9.1.0 https://github.com/apache/skywalking-data-collect-protocol.git src/protocol
phpize
./configure
make
sudo make install