User Tools

Site Tools


macos

This is an old revision of the document!


MacOS

Setting up your environment

Folk is built on Tcl, so you'll need to install the latest version for 'folk' to work correctly. MacOS has a version of tcl-tk installed by default but you really shouldn't use it because it's riddled with bugs and warnings. Let's get you set up with the latest version of Tcl (as of September 2024):

  1. Download the latest tcl-tk from Homebrew:
    • # In your terminal:
      brew install tcl-tk
  2. Set your TCL_LIBRARY and TCLLIBPATH variables in your .bashrc, .zshrc, or similar:
    • # in your .bashrc, .zshrc, etc.:
      export PATH="/opt/homebrew/bin:$PATH"
      export TCL_LIBRARY="/opt/homebrew/lib/tcl8.6"
      export TCLLIBPATH="/opt/homebrew/lib"
  3. Restart your terminal or source you config file, e.g. source .zshrc
  4. Test that you've installed tclsh8.6 correctly on MacOS by running this:
    • # In your command line run:
      echo 'puts $tcl_version;exit 0' | tclsh
      8.6
      # ↑ Expected output
  5. TODO …
macos.1726328293.txt.gz · Last modified: 2024/09/14 15:38 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki