X-window on MACOSX(2020.8.27)

1.Xcode tools

First, install Xcode and tools from Apple store.

2.X11

Next, in the home of XQuartz, you can get it.
Then try to execute X11, which can be found using Finder.
If you can see xterm window, then installation is complete.

3. Macports

You need macports to install GNU tools in your MAC.
Download macports from http://www.macports.org/.
Now, the OS10.15(Catalina) has no problem doing this. Note that macports are different for each OS10.xx.
Now, you had better change the command PATH to include /opt/local/bin and /opt/local/sbin.
For this purpose, you must edit (or create ) .bashrc or .zprofile (for Catalina) in your home directory. That is,
you need the following two lines
export PATH=/usr/X11R6/bin:/opt/local/bin:/opt/local/sbin/:$PATH
export MANPATH=/opt/local/man:$MANPATH
in your .bashrc
Next, restart your terminal window and type
sudo port -d selfupdate
sudo port -d sync

After these steps, you can do
sudo port install gmp
sudo port install tcl
sudo port install tk
which install GMP and TCL/TK in your MAC!
Moreover, please do also
sudo port install autoconf
sudo port install automake

4. SS install

Note that macports install GNU tools under the directory /opt/local
Thus you should configure by:
./configure --prefix=/opt/local
Now, You can install SS as desribed in the Step 5 and 6 in the previous page.
The binaries ss,sn etc. will be created in /opt/local/bin.

5.executing ss

ss can be executed in the terminal window.
SS command line is fitting to the Macbook keyboad (BS key)
If it doesn't work well in your system, then you must change a last part of ss2lib/KEY/key.ss
and then execute
makesr key
in your terminal, which will renew key.sr2
Then do
sudo cp key.sr2 /opt/local/lib/ss2lib/KEY/

6. OpenGL error

Check
ss ogldemo/gencyldemo
If you have an error, then
sudo port install mesa
may solve the problem.
However, there exists some troubles in Catalina. See
catalina error

7. sudo

If you don't like doing sudo many times, then you can enable 'su' by the following:
sudo passwd root
Have fun!!