Brew Mactex



Fri 15 February 2019 —Filed under notes; tags: mac

Apple: Where are tex /mactex binaries after brew install mactexHelpful? Please support me on Patreon: thanks & pra. Homebrew’s package index. Name: MacTeX Full TeX Live distribution with GUI applications. Just did a brew install of mactex of my MacOS Mojave. It sucked up 11 GB of space!! What am I doing wrong? What would be a better alternative? You may use brew for installing various packages, command line tools, applications etc. There is a small twist while installing MacTex or BasicTex packages. Because they are supplied at the Homebrew Cask repository.

Table of Contents

  • system settings
  • homebrew
  • python
    • python3
  • virtualbox and vagrant

Another installation of my personal notes for setting up a new (orcleanly installed) MacOS computer. The process changes just a bit witheach new OS version. I have made an attempt to record the steps inorder (for example, even entering commands is somewhat painful until Ihave iTerm with familiar keyboard settings).

Somewhat glossed over here are manual steps used to transfernon-public dotfiles, credentials, etc. Here's a partial list of filesand directories that I copied directly from my old laptop: Custom ui editor for mac.

Note that none of these steps require an Apple ID - I held off onsigning in until the very end just to see if it was possible.

system settings

turn off spelling autocorrect

unmap Control + left,right

I use Control plus the left and right arrow keys to move betweenwindows in emacs and tmux.

Turn on FileVault

I used a recovery key option rather than iCloud for my work machine, iCloud for personal

Developer tools

Pretty much the first thing that needs to happen. This can be donefrom the command line:

iTerm2

Update a few settings.

Preferences –> Profiles –> Keys and do these things:

  • select 'Left/right option key acts as': +Esc
  • + –> Keyboard shortcut 'OPT+<left arrow>': Send Escape sequence 'b'
  • + –> Keyboard shortcut 'OPT+<right arrow>': Send Escape sequence 'f'

Default appearance:

  • Preferences –> Profiles –> Colors –> Load Presets –> Light Background
  • Preferences –> Profiles –> Text –> Change Font –> 14 point

homebrew

Homebrew no longer requires user-ownership of /usr/local, so thingsare pretty easy now:

homebrew API token

Apparently lots of requests to GutHub via homebrew can hit a rate limit. There's a higher limit if you create an API token. See https://gist.github.com/christopheranderton/8644743

Here's the url for the token creation dialog:

Make sure that all 'scopes' are unchecked. Once you generate the token, add to your shell profile:

Terminal applications

Many packages are installed later with additional elaboration or in asdependencies for other applications; here are some more or lessstandalone packages that I routinely install.

desktop applications

Homebrew installs desktop apps too!

Some of the above (eg, sizeup, dropbox, dash) require licenses andcredentials that must be installed interactively.

python

Mojave seems to ship with Python 2.7.10 and no python3, so let's usehomebrew to get recent versions of both.

I try to limit packages installed to the system to utilities that arevery frequently used outside of the context of a virtualenv.

Seehttps://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

dependencies

Run brew info python for required and optional dependencies

python2

python3

Note that 'python' corresponds to the python3 homebrew recipe.

A limited selection of packages - better to use virtualenvs!

scons

Note that scons wants to install man pages to /usr/local/man, which is owned by root. You'll need to do this first:

emacs

Install latest emacs binary from http://emacsformacosx.com/

Emacs needs a few homebrew packages

Check out my .emacs.d and run setup scripts.

For elpy:

zsh

Install zsh with Homebrew

Change shell to zsh

Install my dotfiles (relevant only to me)

R

I had to give up on installing R with homebrew because it seemed toresult in an interpreter that always wanted to install packages fromsource. So I used the binary from https://cran.r-project.org/bin/macosx/

Some packages that I know I'll need:

Mactex

Wow, this takes a long time!

Also:

postgresql

This installs multiple versions of postgres. You'll need to add thepath to the CLI for the version you want to use to your PATH, eg:

X11

install Xquartz

X11 key bindings so that the option key is used for Meta. Not sorelevant any more now that I rarely use emacs via X11 for remotesessions.

virtualbox and vagrant

The command to install virtualbox will prompt you to allow a kernelextension in system preferences.

After virtualbox is installed, launch the application, go topreferences, and change default machine folder to ~/VirtualBox

  • available vagrant images:

install an ubuntu16.04 VM

see https://app.vagrantup.com/ubuntu/boxes/xenial64

Comments

Brew Mactex Path

Please enable JavaScript to view the comments powered by Disqus.

Brew Mactex-no-gui

  • Install Homebrew


    Paste that in a macOS Terminal or Linux shell prompt.

    The script explains what it will do and then pauses before it does it. Read about other installation options.

  • What Does Homebrew Do?


    Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.

  • Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

  • Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.

  • It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.

  • Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew.

  • “To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software.

  • Donate to Homebrew

  • Homebrew Blog

  • Analytics Data

  • Homebrew was created by Max Howell. Website by Rémi Prévost, Mike McQuaid and Danielle Lalonde.