How To Download Xquartz On Mac Homebrew

You can build gerbv with with Fink, MacPorts, or Homebrew. I first built it with Fink and it works well, especially with Fink Commander, the GUI based tool. Today I prefer to use Homebrew since it is so simple. I still include my Fink notes at the bottom of this page.


Building gerbv with Homebrew

Building gerbv with Homebrew. If you haven’t already, download and install Xcode. It can be downloaded from the Mac App Store. It is over 2GB so it will take a few minutes. After installing YOU MUST LAUNCH AND AGREE TO THE LICENSE or the gerbv build will fail. Second you must download and install the latest version of XQuartz from here. Installing XQuartz on Apple Mac. This tutorial explains how to install XQuartz application on Apple Mac. This application is required by Wine application which allows to run Embird (native Windows application) on Apple Mac computer. Note: Please note, that applications XQuartz and Wine for Apple Mac are not developed nor supported by Embird team.Also, because Embird is natively Windows. Homebrew’s package index. Name: XQuartz Open-source version of the X.Org X Window System.


If you haven’t already, download and install Xcode. It can be downloaded from the Mac App Store. It is over 2GB so it will take a few minutes. After installing YOU MUST LAUNCH AND AGREE TO THE LICENSE or the gerbv build will fail.


Second you must download and install the latest version of XQuartz from here:

https://www.xquartz.org/

I found that version 2.7.7 works well on Mac OS X 10.10.1 even though there is no mention of 10.10.x compatibility.


Now to install Homebrew. First, if you don’t know if you are running the bash shell in Terminal, do these 7 steps:

  1. 1)Open System Preferences

  2. 2)Select Users & Groups

  3. 3)Click on the lock at the bottom left of the window and enter your password

  4. 4)Right click on your user in the list

  5. 5)Select Advanced Options...

  6. 6)From the Login shell pop-up menu select /bin/bash

  7. 7)Click OK and close System preferences


Make sure you are quit out of Xcode and XQuartz.

Now, if you know the bash shell is your shell, launch Terminal (in Applications/Utilities). Now go to the Homebrew web site:

brew.sh (yes, that is the whole URL)

scroll to the bottom of the page and copy the WHOLE line as instructed. The line may run off the right edge of the box, make sure you get it all. Now paste it into your terminal window and hit return.

Many things will happen. It will tell you things and ask for permission to do things by hitting return, just hit return.


Now, as instructed, you must run:

How To Download Xquartz On Mac Homebrew Iso

brew doctor

You may get some warnings. Depending on how much open source work you do some of these warnings may need to be addressed. If you forgot to download XQuartz you will get a warning, although this should be called an error since until you resolve this and re-run brew doctor you can not install anything.


Now to build gerbv

Type:

brew install homebrew/x11/gerbv

This will take a while.


How To Download Xquartz On Mac Homebrew Mac

After all that, you can now launch XQuartz. Click on Applications and select Customize...

At the top right of the Application Menu window click Add Item.

Double click in the new field under Name and type gerbv.

Double click in the new field under Command and type gerbv (the path to it is already setup).

Close the window.

Now gerbv can be accessed from the Applications menu.

When it opens click on File in the gerbv window and select Open Layer(s)...

Have fun viewing Gerber Files!

Although installing R and RStudio on Mac OS X wasn’t particularly difficult, I thought I would make some notes here, in case they’re useful to someone else. These instructions make use of Homebrew, a convenient command line package manager for Mac OS X.

Homebrew

Let’s begin with some prerequisites.

The first thing you’ll need is Homebrew, which is described as ‘The missing package manager for OS X’. Once installed, Homebrew allows you to compile and install open source packages (or formulas) with a command as simple as:

where [formula] is the name of a package.

Follow the latest instructions on the Homebrew website to get that installed. Note that you may be asked to install the Xcode Command Line Tools - this will ensure that your system has a compiler, and the necessary libraries, to build other packages.

You will also need to install Homebrew Cask, which extends Homebrew with a workflow for managing Mac applications distributed as binaries:

Install XQuartz

To make the most of R’s plotting and interactive tools, you’ll also need XQuartz. Mac OS X used to include an X11 implementation out-of-the-box, but it was later released as its own open source project. You can install XQuartz as a Homebrew cask:

If instructed to restart/log out, do so. R’s X11 support relies on certain environment variables being set, which is most easily achieved with a fresh log-in.

Compile R

Although R is not available in Homebrew’s default repository, you can provide a formula for R by installing an additional ‘tap’ before installing R itself:

How To Download Xquartz On Mac Homebrew Pc

Now you can compile and install R itself. Note that we have to include the --with-x11 flag so that R is compiled with X11 support:

Alternatively, you can do this as a one-liner by referencing the tap in the formula name:

Either approach will ensure that all of R’s dependencies are installed.

Install RStudio

Finally, you can install RStudio. This can be installed using an official DMG file from the RStudio website, or you can install it from Homebrew Cask:

How To Download Xquartz On Mac Homebrew Mac

Note the inclusion of the --appdir option. By default, Cask formula’s will create aliases in ~/Applications, but this option tells Homebrew to use /Applications instead.

You can check that everything is working (including X11 support) by starting RStudio and typing:

Xquartz Mac Download

This should open a blank R Graphics window. Note that X11 support relies on certain environment variables being set, so if you have just installed XQuartz, you may need to restart your computer (or log out then log in again) to ensure that R can find X11.

That’s it! You’re ready to go.

How To Download Xquartz On Mac Homebrew Iso

Note: This post was updated 12 May 2016.