When using Homebrew to install docker-compose.
mkdir -p ~/.docker/cli-plugins
ln -sfn $HOMEBREW_PREFIX/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
When using Homebrew to install docker-compose.
mkdir -p ~/.docker/cli-plugins
ln -sfn $HOMEBREW_PREFIX/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
After lots of trial and error, I finally got ruby 2.7.6 installed on my early mac m1 (macOS 12.6).
There are many blog posts out there suggesting different flags, ignoring warnings etc. But in the end, this is what worked for me.
DO NOT use the brew / ibrew setup, where ibrew is aliased to arch -x86_64 /usr/local/bin/brew
.
It will mess up your system with conflicting packages and paths.
Use a terminal without Rosetta 2.
brew install libpq
gem install pg -- --with-pg-config=$(brew --prefix libpq)/bin/pg_config
Replace mysql version with installed version.
gem install mysql2 -- --with-ldflags=-L$(brew --prefix [email protected])/lib --with-cppflags=-I$(brew --prefix [email protected])/include
keyboard keys: key
colors: #ff0099
code
lsof -i tcp:3000 |
gem uninstall libv8 | |
gem install therubyracer | |
gem install libv8 -- --with-system-v8 |
class String | |
def black; "\e[30m#{self}\e[0m" end | |
def red; "\e[31m#{self}\e[0m" end | |
def green; "\e[32m#{self}\e[0m" end | |
def brown; "\e[33m#{self}\e[0m" end | |
def blue; "\e[34m#{self}\e[0m" end | |
def magenta; "\e[35m#{self}\e[0m" end | |
def cyan; "\e[36m#{self}\e[0m" end | |
def gray; "\e[37m#{self}\e[0m" end |