Skip to content
Dr. Maxie Dion Schmidt edited this page Jan 27, 2026 · 20 revisions

MacPorts installation of RNAStructViz on out-dated MacOS (requires sudo access)

Rationale

The primary developer recently bought a cheap refurbished MacBook. It runs a much older version of MacOS (12) that is not well supported by Homebrew. This is the message I get running brew from the commandline (see issue 108):

Warning: You are using macOS 12.
We (and Apple) do not provide support for this old version.
You may have better luck with MacPorts which supports older versions of macOS:
https://www.macports.org

Installation of MacPorts on older MacOS - Preliminaries

See the documentation here and here for the latest source release of MacPorts.

To install the base of MacPorts, run the following:

$ brew install wget coreutils
$ wget https://github.com/macports/macports-base/releases/download/v2.11.6/MacPorts-2.11.6.tar.bz2
$ tar xjvf MacPorts-2.11.6.tar.bz2
$ cd MacPorts-2.11.6
$ ./configure && make && sudo make install
$ chmod +x ./src/port/port
$ echo -e "\nalias port='$(greadlink -f .)/src/port/port'\n" >> ~/.bashrc && source ~/.bashrc 
$ echo -e "\nexport PATH=\"/opt/local/bin:$PATH\"" >> ~/.bashrc && source ~/.bashrc
$ sudo port -v selfupdate

Installing RNAStructViz with MacPorts

Run the following:

$ brew update
$ sudo port install llvm-12
$ brew tap gtdmmb/core
$ brew install gtdmmb/core/macportsfltkwithcairo
$ brew install gtdmmb/core/viennarna
$ sudo port install boost boost-build
$ sudo mkdir -p /usr/local/opt/fltkwithcairo/bin
$ sudo cp /usr/local/bin/fltk-config /usr/local/opt/fltkwithcairo/bin/fltk-config
$ sudo mkdir -p /usr/local/bin/bin
$ sudo ln -s /usr/bin/clang++ /usr/local/bin/bin
$ export PATH="/opt/local/lib/:$PATH"
$ export LIBRARY_PATH="$LIBRARY_PATH:/opt/local/lib"
$ sudo ln -s /opt/local/lib/libboost_system-mt.dylib /opt/local/lib/libboost_system.dylib 
$ cd ~
$ git clone https://github.com/gtDMMB/RNAStructViz.git
$ cd RNAStructViz
$ make
$ sudo make install
# ... AND Done! Run as follows:
$ RNAStructViz

Clone this wiki locally