1.terminal Input /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
for installation
2. The output content is successful
3. Verify that the input brew has no help information if command not found indicates that the environment variable is not configured
4. WORKAROUND: Terminal inputsudo vim. Bash_profileAnd then continueexport PATH=/usr/local/bin:$PATH
And then continuesource. Bash_profileThen continue to enter brew with help information
"Other" Mac configuration Java_home
1. First determine if the JDK installation was successful java-version
2.terminal input sudo vim/etc/profile
3.
Press I to display insert to enter the input mode.
(Note: The path of the java_home can be obtained in the terminal input/usr/libexec/java_home)
Enter the following configuration:
Java_home= "/library/java/javavirtualmachines/jdk1.8.0_131.jdk/contents/home"
Export Java_home
Class_path= "$JAVA _home/lib"
Path= ". $PATH: $JAVA _home/bin"
Press ESC to go to save
Input: wq! Save
4. Input input source/etc/profile can be effective
5. Verify input input echo $JAVA _home eject ... xxjdk/contents/home
Configure homebrew and Java home under Mac