...
Code Block |
---|
language | bash |
---|
title | Homebrew |
---|
collapse | true |
---|
|
# navigate to your home directory
cd ~/
# create a homebrew folder in your home directory
mkdir homebrew
# download homebrew software into your new folder
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"
# add homebrew to zsh shell
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.zshrc
# add homebrew to bash shell's profile (if applicable)
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.bash_profile
# add homebrew to bash shell's rc file (if applicable)
echo 'export PATH="/Users/username/homebrew/bin:$PATH"' >> ~/.bashrc
# if homebrew doesn't work immediately, don't worry, you just have to source the new path
source ~/.zshrc # if you are using zsh
source ~/.bash_profile # if you are using bash
# you can test with the following
brew --version |
...
Code Block |
---|
language | bash |
---|
title | Java |
---|
collapse | true |
---|
|
# use homebrew to install Java
brew install java
# add Java to your PATH environmental variable, so your terminal knows where to find Java
echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.zshrc # if you are using zsh
echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.bashrc # if you are using bashrc
echo 'export PATH="'$(brew --prefix)'/opt/openjdk/bin:$PATH"' >> ~/.bash_profile # if you are using bash_profile
# you can test that it works with the following
java --version |
...
Code Block |
---|
language | bash |
---|
title | ElasticMQ |
---|
collapse | true |
---|
|
# download/install ElasticMQ Java Archive (JAR) File
curl https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-1.3.9.jar --output elasticmq-server-1.3.9.jar
# run the ElasticMQ JAR we downloaded in the previous step
java -jar elasticmq-server-1.3.9.jar
|
Leiningen
With Java installed, you can install Leiningen, a tool for working with Clojure.
Code Block |
---|
language | bash |
---|
title | Leiningen |
---|
collapse | true |
---|
|
# as of Jan 19, 2023, the following line is required to fix the following error: "Package 'pthread-stubs', required by 'xcb', not found"
brew reinstall --build-from-source libxcb
brew install leiningen |
Maven
Code Block |
---|
language | bash |
---|
title | maven |
---|
collapse | true |
---|
|
brew install maven |
Go
Code Block |
---|
language | bash |
---|
title | Go |
---|
collapse | true |
---|
|
brew install go |
Related articles