Frappe bench setup in Apple M1/M2 Chip
Frappe bench setup in Apple M1/M2 Chip
Setups
1- Download and install Xcode from App store
2- Open and Agree licence agreement
3- Open Terminal
Run xcode-select — install
4- Install Homebrew
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
5- echo ‘# Set PATH, MANPATH, etc., for Homebrew.’ >> /Users/muhammadmp/.zprofile
echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> /Users/muhammadmp/.zprofile
6- eval “$(/opt/homebrew/bin/brew shellenv)”
5 and 6 commands get from terminal when you install homebrew according to your username
7- Install python git redis, mariadb, node
brew install python@3.10 git redis mariadb@10.3 node@14
8- After installing the above we get some warning messages about mariadb and node.
follow the commands in terminal.
for example(mariadb)
“echo ‘export PATH=”/opt/homebrew/opt/mariadb@10.3/bin:$PATH”’
“export LDFLAGS=”-L/opt/homebrew/opt/mariadb@10.3/lib”
“export CPPFLAGS=”-I/opt/homebrew/opt/mariadb@10.3/include”
for example (Node)
“export LDFLAGS=”-L/opt/homebrew/opt/node@14/lib”
“export CPPFLAGS=”-I/opt/homebrew/opt/node@14/include”
9 — Add commands in my.cnf its located in /opt/homebrew/etc/my.cnf
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
10- restart mariadb brew services restart mariadb@10.3
11- Check Python3, node etc
12 - npm install -g yarn
13- bpip3 install frappe-bench
14- bench init frappe-bench
15 — bench start
Muhammad
ERPNext Techno-Functional Consultant
No comments yet. Login to start a new discussion Start a new discussion