From 6efb57bbc787e0eb6d4e843e31030ddc6572364d Mon Sep 17 00:00:00 2001 From: pbhj Date: Mon, 8 Jul 2019 23:04:46 +0000 Subject: [PATCH] Update README.md added detail about install of phpize on [k]ubuntu and misc. other ubuntu specifics --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab2a397..3e355b0 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ and move it into the `ext/` directory of your PHP installation. Furthermore add **Unix (PECL)**: Run `pecl install ast` and add `extension=ast.so` to your `php.ini`. +Depending on your `pecl` install you may need to install with elevated permissions, eg `sudo pecl install ast` on Ubuntu. Ubuntu users may prefer to use `sudo apt install php-ast` but note that the version of `ast` may be too old that way. + **Unix (Compile)**: Compile and install the extension as follows. ```sh @@ -35,8 +37,9 @@ phpize make sudo make install ``` +Ubuntu users (and maybe others) can install phpize as part of the php-dev package using `sudo apt install php-dev`. However it is installed you'll need to modifiy `php.ini`: -Additionally add `extension=ast.so` to your `php.ini` file. +Additionally add `extension=[/path/to/]ast.so` to your `php.ini` file. API overview ------------