First install GPG using brew install GPG
Then try:
andy@andymacbookpro:/usr/local/webdata/andy/company/citic$ GPG
GPG: Created directory '/USERS/ANDY/.GNUPG '
GPG: New config file '/users/andy/.gnupg/gpg.conf ' has been established
GPG: Warning: The option in '/users/andy/.gnupg/gpg.conf ' is not used during this run
GPG: Key Ring '/USERS/ANDY/.GNUPG/SECRING.GPG ' has been established
GPG: Key Ring '/USERS/ANDY/.GNUPG/PUBRING.GPG ' has been established
GPG: Please start typing your message ...
Or try it this way:
andy@andymacbookpro:/usr/local/webdata/andy/fanli/citic$ GPG--list-key
GPG:/USERS/ANDY/.GNUPG/TRUSTDB.GPG: Establishing a database of trust
andy@andymacbookpro:/usr/local/webdata/andy/fanli/citic$
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the OSX installation GPG, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.