Installing vg on Mac failed due to "Could not find libomp"
1
0
Entering edit mode
6 months ago
yuxinNing • 0

Hi, I' trying to install vg on my MacBook, but got errors after installing all dependencies:

...
The compiler is Apple Clang that needs libomp for OpenMP support.
Makefile:39: *** Could not find libomp. Please install it using Homebrew or MacPorts..  Stop.
make: *** [lib/libgcsa2.a] Error 2

The command brew info libomp returns:

==> libomp: stable 20.1.0 (bottled) [keg-only]
...

Exporting the PATH doesn't change anything.

vg • 544 views
ADD COMMENT
0
Entering edit mode
6 months ago

Keg-only so you need to specify additional flags yourself as per this example fix

  export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"

Note: I just googled "Could not find libomp macos" so I can't comment on details but I have had similar issues with other libraries when compiling so it makes sense.

ADD COMMENT

Login before adding your answer.

Traffic: 3897 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6