You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/10/08 11:42:03 UTC

[skywalking-php] branch master updated: Update compiling project document. (#14)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-php.git


The following commit(s) were added to refs/heads/master by this push:
     new 737b4f6  Update compiling project document. (#14)
737b4f6 is described below

commit 737b4f65824bb4939faa3e9452b83c73bf5ddfe8
Author: jmjoy <jm...@apache.org>
AuthorDate: Sat Oct 8 19:41:58 2022 +0800

    Update compiling project document. (#14)
---
 docs/en/contribution/compiling.md | 43 ++++++++++++++++++++-------------------
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/docs/en/contribution/compiling.md b/docs/en/contribution/compiling.md
index fe9b55e..9b4be77 100644
--- a/docs/en/contribution/compiling.md
+++ b/docs/en/contribution/compiling.md
@@ -22,14 +22,18 @@ brew install php
 
 Install Rust globally.
 
+For Linux user:
+
 ```shell
-export RUSTUP_HOME=/opt/rustup
-export CARGO_HOME=/opt/cargo
+curl https://sh.rustup.rs -sSf | sudo sh -s -- --no-modify-path
+sudo ln -s /root/.cargo/bin/rustup /usr/local/bin/rustup
+sudo ln -s /root/.cargo/bin/cargo /usr/local/bin/cargo
+```
+
+For MacOS user:
 
-curl https://sh.rustup.rs -sSf | sudo -E sh -s -- --no-modify-path
-sudo ln -s $CARGO_HOME/bin/rustup /usr/local/bin/rustup
-sudo ln -s $CARGO_HOME/bin/rustc /usr/local/bin/rustc
-sudo ln -s $CARGO_HOME/bin/cargo /usr/local/bin/cargo
+```shell
+brew install rust
 ```
 
 ## Install requirement
@@ -46,24 +50,21 @@ For MacOS user:
 brew install protobuf
 ```
 
-## Build and install Skywalking PHP Agent
+## Build and install Skywalking PHP Agent from archive file
 
-* If you clone codes from https://github.com/apache/skywalking-php
+For Linux user:
 
-   ```shell
-   git clone --recursive https://github.com/apache/skywalking-php.git
-   cd skywalking-php
-   
-   phpize
-   ./configure
-   make
-   sudo make install
-   ```
+```shell
+sudo pecl install skywalking_agent-x.y.z.tgz
+```
+
+For MacOS user:
 
-* If you download package tar from https://skywalking.apache.org/downloads/
+> Running the `pecl install` command with the php installed in brew may encounter the problem of `mkdir`, please refer to
+> [Installing PHP and PECL Extensions on MacOS](https://patriqueouimet.ca/tip/installing-php-and-pecl-extensions-on-macos).
 
-   ```shell
-   sudo pecl install skywalking_agent-x.y.z.tgz
-   ```
+```shell
+pecl install skywalking_agent-x.y.z.tgz
+```
 
 The extension file `skywalking_agent.so` is generated in the php extension folder, get it by run `php-config --extension-dir`.