brew install clang-omp not working

You can install llvm using brew since it now includes openmp. brew install llvm You can make a symlink if you want ln -s /usr/local/opt/llvm/bin/clang /usr/local/bin/clang-omp My makefile looks like this CPP = /usr/local/opt/llvm/bin/clang CPPFLAGS = -I/usr/local/opt/llvm/include -fopenmp LDFLAGS = -L/usr/local/opt/llvm/lib example: example.c $(CPP) $(CPPFLAGS) $^ -o $@ $(LDFLAGS)

Getting a “bad interpreter” error when using brew

I got this error (much the same): /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0 and fixed by the solution below: Open brew.rb: $ sudo vim /usr/local/Library/brew.rb Change the first line’s 1.8 to Current: Before: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 After: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 Then brew works for me. Hope … Read more

How to get Ruby / Homebrew / RVM to work on Yosemite?

This error can easily be fixed in the following steps: 1) Open terminal 2) Type nano /usr/local/Library/brew.rb 3) In the first line change “1.8″ to “Current”, so it should look like this: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 via http://blog.ic3man.gr/2014/06/homebrew-ruby-bad-interpreter-no-such-file-or-directory/

What is the best/safest way to reinstall Homebrew?

Update 10/11/2020 to reflect the latest brew changes. Brew already provide a command to uninstall itself (this will remove everything you installed with Homebrew): /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)” If you failed to run this command due to permission (like run as second user), run again with sudo Then you can install again: /bin/bash -c … Read more

Installing Homebrew on macOS

It’s on the top of the Homebrew homepage. From a Terminal prompt: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” The command brew install wget is an example of how to use Homebrew to install another application (in this case, wget) after brew is already installed. Historic… Before about 2020, the command given on the Homebrew page was: … Read more

How can I install multiple versions of Python on latest OS X and use them in parallel?

pyenv is the thing you want. It works very very well: pyenv lets you easily switch between multiple versions of Python. It’s simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well. This project was forked from rbenv and ruby-build, and modified for Python. https://github.com/pyenv/pyenv Install it via Homebrew: $ … Read more