mac系统 git 不出现自动补全的功能 作者: lovingyu_er 时间: 2019-12-11 09:31:00 分类: 编程语言,mac 系统 评论 google了一把,解决方案如下: 需要使用到git-completion 软件,使用```brew``` 安装,如果你的mac还没有安装,请自行到```Homebrew```官网下载安装。 如果没有安装```git```以后,在安装好```Homebrew```以后,需要安装```git-completion``` 插件,你先可以查看一下该安装包的一些信息 ``` brew info git-completion``` 执行安装: ``` brew install git-completion``` 安装完成以后,使用```git ``` 相关命令发现不行,我google了一下,可以将下面的一些代码加入到```.bash_profile``` ```bash source ~/.git-completion.bash [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion ``` 如果上述中的```.git-completion.bash```文件不存在,请在你的当前用户的家目录中添加如下的内容,也就是```.git-completion.bash``` 脚本中要执行的脚本内容,内容可以参考```git-completion```的网址:```https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash``` 放到 ```~/.git-completion.bash```文件里面,最后执行一下 ```source .bash_profile``` 即可。 再使用```git ``` 的相关的命令行的时候,就可以使用```tab``` 按键自动补全的功能。
mac 笔记本下编译安装php 7.3.8 作者: lovingyu_er 时间: 2019-11-10 03:39:00 分类: PHP,Ubuntu,mac 系统 评论 ```configure 参数``` 正确的编译参数: ```darrykingerdeMacBook-Pro:php-7.3.8 darry$ sudo ./configure --prefix=/usr/local/Cellar/php7.3.8 --with-iconv=/usr/local/Cellar/libiconv/1.16/ ```输出的结果正常,然后```sudo make ``` ,```sudo make install ``` ,输出的结果如下: ```php Installing shared extensions: /usr/local/Cellar/php7.3.8/lib/php/extensions/no-debug-non-zts-20180731/ Installing PHP CLI binary: /usr/local/Cellar/php7.3.8/bin/ Installing PHP CLI man page: /usr/local/Cellar/php7.3.8/php/man/man1/ Installing phpdbg binary: /usr/local/Cellar/php7.3.8/bin/ Installing phpdbg man page: /usr/local/Cellar/php7.3.8/php/man/man1/ Installing PHP CGI binary: /usr/local/Cellar/php7.3.8/bin/ Installing PHP CGI man page: /usr/local/Cellar/php7.3.8/php/man/man1/ Installing build environment: /usr/local/Cellar/php7.3.8/lib/php/build/ Installing header files: /usr/local/Cellar/php7.3.8/include/php/ Installing helper programs: /usr/local/Cellar/php7.3.8/bin/ program: phpize program: php-config Installing man pages: /usr/local/Cellar/php7.3.8/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/Cellar/php7.3.8/lib/php/ [PEAR] Archive_Tar - installed: 1.4.7 [PEAR] Console_Getopt - installed: 1.4.2 [PEAR] Structures_Graph- installed: 1.1.1 [PEAR] XML_Util - installed: 1.4.3 [PEAR] PEAR - installed: 1.10.9 Wrote PEAR system config file at: /usr/local/Cellar/php7.3.8/etc/pear.conf You may want to add: /usr/local/Cellar/php7.3.8/lib/php to your php.ini include_path /Users/darry/Downloads/php-7.3.8/build/shtool install -c ext/phar/phar.phar /usr/local/Cellar/php7.3.8/bin ln -s -f phar.phar /usr/local/Cellar/php7.3.8/bin/phar Installing PDO headers: /usr/local/Cellar/php7.3.8/include/php/ext/pdo/ ``` mac 系统的brew 默认的编译参数如下: ```php './configure' '--prefix=/usr/local/Cellar/php/7.3.11' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/7.3' '--with-config-file-path=/usr/local/etc/php/7.3' '--with-config-file-scan-dir=/usr/local/etc/php/7.3/conf.d' '--with-pear=/usr/local/Cellar/php/7.3.11/share/php/pear' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-dtrace' '--enable-exif' '--enable-ftp' '--enable-fpm' '--enable-intl' '--enable-mbregex' '--enable-mbstring' '--enable-mysqlnd' '--enable-opcache-file' '--enable-pcntl' '--enable-phpdbg' '--enable-phpdbg-webhelper' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-apxs2=/usr/local/opt/httpd/bin/apxs' '--with-bz2=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-curl=/usr/local/opt/curl-openssl' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-gmp=/usr/local/opt/gmp' '--with-iconv=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-layout=GNU' '--with-ldap=/usr/local/opt/openldap' '--with-ldap-sasl=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-libxml-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-libedit=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-libzip' '--with-mhash=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-ndbm=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-openssl=/usr/local/opt/openssl@1.1' '--with-password-argon2=/usr/local/opt/argon2' '--with-pdo-dblib=/usr/local/opt/freetds' '--with-pdo-mysql=mysqlnd' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-pdo-pgsql=/usr/local/opt/libpq' '--with-pdo-sqlite=/usr/local/opt/sqlite' '--with-pgsql=/usr/local/opt/libpq' '--with-pic' '--with-png-dir=/usr/local/opt/libpng' '--with-pspell=/usr/local/opt/aspell' '--with-sodium=/usr/local/opt/libsodium' '--with-sqlite3=/usr/local/opt/sqlite' '--with-tidy=/usr/local/opt/tidy-html5' '--with-unixODBC=/usr/local/opt/unixodbc' '--with-webp-dir=/usr/local/opt/webp' '--with-xmlrpc' '--with-xsl=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' '--with-zlib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr' ```