1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
| Last login: Wed Jun 21 16:44:16 on ttys001
czhdeMacBook-Pro:~ czh$ kill -INT `cat /usr/local/var/run/php-fpm.pid`
czhdeMacBook-Pro:~ czh$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
czhdeMacBook-Pro:~ czh$ kill -INT `cat /usr/local/var/run/php-fpm.pid`
czhdeMacBook-Pro:~ czh$ echo 'export PATH="$(brew --prefix php70)/bin:$PATH"' >> ~/.bash_profile #for php
czhdeMacBook-Pro:~ czh$ echo 'export PATH="$(brew --prefix php70)/sbin:$PATH"' >> ~/.bash_profile #for php-fpm
czhdeMacBook-Pro:~ czh$ echo 'export PATH="/usr/local/bin:/usr/local/sbib:$PATH"' >> ~/.bash_profile #for other brew install soft
czhdeMacBook-Pro:~ czh$ source ~/.bash_profile
czhdeMacBook-Pro:~ czh$ php -v
PHP 7.0.14 (cli) (built: Dec 9 2016 07:34:25) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
czhdeMacBook-Pro:~ czh$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
/Users/czh/Library/LaunchAgents/homebrew.mxcl.php70.plist: No such file or directory
czhdeMacBook-Pro:~ czh$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php7.plist
/Users/czh/Library/LaunchAgents/homebrew.mxcl.php7.plist: No such file or directory
czhdeMacBook-Pro:~ czh$ ln -sfv /usr/local/opt/php70/*.plist ~/Library/LaunchAgents
/Users/czh/Library/LaunchAgents/homebrew.mxcl.php70.plist -> /usr/local/opt/php70/homebrew.mxcl.php70.plist
czhdeMacBook-Pro:~ czh$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
czhdeMacBook-Pro:~ czh$ pear install Mail
WARNING: configuration download directory "/tmp/pear/install" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
czhdeMacBook-Pro:~ czh$ sudo pear install Mail
Password:
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
Did not download optional dependencies: pear/Net_SMTP, use --alldeps to download automatically
pear/Mail can optionally use package "pear/Net_SMTP" (version >= 1.4.1)
downloading Mail-1.4.1.tgz ...
Starting to download Mail-1.4.1.tgz (21,756 bytes)
........done: 21,756 bytes
install ok: channel://pear.php.net/Mail-1.4.1
czhdeMacBook-Pro:~ czh$ sudo pear install Mail_Mine
No releases available for package "pear.php.net/Mail_Mine"
install failed
czhdeMacBook-Pro:~ czh$ sudo pear install Mail_Mime
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
downloading Mail_Mime-1.10.1.tgz ...
Starting to download Mail_Mime-1.10.1.tgz (36,336 bytes)
..........done: 36,336 bytes
install ok: channel://pear.php.net/Mail_Mime-1.10.1
czhdeMacBook-Pro:~ czh$ sudo pear install Net_SMTP
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
Did not download optional dependencies: pear/Auth_SASL, use --alldeps to download automatically
pear/Net_SMTP can optionally use package "pear/Auth_SASL" (version >= 1.0.5)
downloading Net_SMTP-1.8.0.tgz ...
Starting to download Net_SMTP-1.8.0.tgz (14,399 bytes)
.....done: 14,399 bytes
downloading Net_Socket-1.2.2.tgz ...
Starting to download Net_Socket-1.2.2.tgz (6,903 bytes)
...done: 6,903 bytes
install ok: channel://pear.php.net/Net_Socket-1.2.2
install ok: channel://pear.php.net/Net_SMTP-1.8.0
|