installing MARK on a Mac

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

installing MARK on a Mac

Postby fbude » Thu Oct 01, 2020 6:47 pm

While there are a number of posts in various places outlining approaches to installing the MARK binary on a Mac (ostensibly, to interface with RMark), most of those instructions detail download, copying and installing of various individual packages (such as current versions of GCC from HPC), which are likely to break as files change names or move around. A beast like GCC needs to be handled by a package manager.

An up-to-date version of GCC is available from homebrew, but you need to tell MARK to look for those libraries instead of using MacOS's stock clang libraries. Simon Bonner has created a script to do this and packaged it in a homebrew Formula along with the MARK binary so that it is easy to install.

For most up-to-date instructions on this approach: https://github.com/sjbonner/mark-on-mac

Note: The MARK binaries are compiled for Intel-based Macs only (not the ARM M1-M2 chips...perhaps someday, but not at present).

In summary --

1) Install homebrew:
Code: Select all
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


2) Install gcc:
Code: Select all
brew install gcc


3) Install mark:
Code: Select all
brew tap sjbonner/tap
brew install mark-on-mac


You can check that the installation has worked by running
Code: Select all
which mark

If successful you'll find mark in
Code: Select all
/usr/local/bin


There may be (currently?) a slight wrinkle which is that this will break when GCC is updated via
Code: Select all
brew upgrade

However, this is fixed simply by changing the library path in the shell script.

And now you're :lol:!
fbude
 
Posts: 4
Joined: Sat Apr 18, 2020 12:06 pm

Re: installing MARK on a Mac

Postby brian.folt » Fri Aug 25, 2023 11:23 am

I followed the directions from sjbonner's GitHub and found them to be a super useful - for both Intel and Silicon Macs. However, I did hit one hurdle though: the code to download 'homebrew' in the second Step 1 failed with this error:

curl: (22) The requested URL returned error: 404

I found a workaround on stack overflow by running the following:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... install.sh)"

From the comment section here: https://stackoverflow.com/questions/760 ... 9429c02629

Hopefully this will be useful for some.
brian.folt
 
Posts: 3
Joined: Thu Aug 24, 2023 7:47 pm

Re: installing MARK on a Mac

Postby sbonner » Fri Aug 25, 2023 12:21 pm

Hi Brian,

Thanks for letting me know about this. It seems that the URL for the homebrew install script has changed -- and it's been a while since I did that myself. I've changed the URL in the installation instructions.

Cheers,

Simon
sbonner
 
Posts: 70
Joined: Mon Aug 15, 2005 7:38 pm
Location: University of Western Ontario, Canada


Return to RMark

Who is online

Users browsing this forum: No registered users and 12 guests