macOS Development

.bashrcのサンプル — admin 2018/06/06 17:01

https://linuxconfig.org/bash-prompt-basics

phpenvのインストール — admin 2018/06/06 16:56

shvtech ~>git clone https://github.com/CHH/phpenv.git
Cloning into 'phpenv'...
remote: Counting objects: 399, done.
remote: Total 399 (delta 0), reused 0 (delta 0), pack-reused 399
Receiving objects: 100% (399/399), 68.21 KiB | 0 bytes/s, done.
Resolving deltas: 100% (164/164), done.
Checking connectivity... done.
shvtech ~>ls -R phpenv
LICENSE		bin		man
README.md	extensions

phpenv/bin:
phpenv-install.sh

phpenv/extensions:
rbenv-config-add	rbenv-config-rm

phpenv/man:
phpenv-install.1	phpenv-install.1.html	phpenv-install.1.ronn
shvtech ~>phpenv/bin/phpenv-install.sh
Installing phpenv in /Users/shvtech/.phpenv
Cloning into '/Users/shvtech/.phpenv'...
remote: Counting objects: 2728, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2728 (delta 6), reused 9 (delta 1), pack-reused 2714
Receiving objects: 100% (2728/2728), 516.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1706/1706), done.
Checking connectivity... done.
Success.

export PATH="/Users/shvtech/.phpenv/bin:$PATH"
eval "$(phpenv init -)"

Add above line at the end of your ~/.bashrc and restart your shell to use phpenv.
/Users/shvtech/.phpenv
-rw-r--r--   1 shvtech  staff   3390  6  6 17:00 CONDUCT.md
-rw-r--r--   1 shvtech  staff   1058  6  6 17:00 LICENSE
-rw-r--r--   1 shvtech  staff  18571  6  6 17:00 README.md
drwxr-xr-x   4 shvtech  staff    128  6  6 17:00 bin
drwxr-xr-x   7 shvtech  staff    224  6  6 17:00 completions
drwxr-xr-x  31 shvtech  staff    992  6  6 17:00 libexec
drwxr-xr-x   3 shvtech  staff     96  6  6 17:00 rbenv.d
drwxr-xr-x   2 shvtech  staff     64  6  6 17:08 shims
drwxr-xr-x   7 shvtech  staff    224  6  6 17:00 src
drwxr-xr-x  28 shvtech  staff    896  6  6 17:00 test
drwxr-xr-x   2 shvtech  staff     64  6  6 17:08 versions
shvtech ~/.phpenv>phpenv install  5.6.36
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.6.36 into /Users/shvtech/.phpenv/versions/5.6.36
[Downloading]: https://secure.php.net/distributions/php-5.6.36.tar.bz2
[Preparing]: /var/tmp/php-build/source/5.6.36

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: Cannot find libz
-----------------------------------------

The full Log is available at '/tmp/php-build.5.6.36.20180606171903.log'.
[Warn]: Aborting build.
shvtech ~/.phpenv>phpenv install  7.2.5
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 7.2.5 into /Users/shvtech/.phpenv/versions/7.2.5
[Downloading]: https://secure.php.net/distributions/php-7.2.5.tar.bz2
[Preparing]: /var/tmp/php-build/source/7.2.5

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
configure: WARNING: unrecognized options: --with-mcrypt
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: ).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: Cannot find libz
-----------------------------------------

The full Log is available at '/tmp/php-build.7.2.5.20180606172404.log'.
[Warn]: Aborting build.



  • itdev/apple/macos/index.txt
  • Last modified: 2018/06/08 11:10
  • (external edit)