Problem in installing CMAK in Macos

See original GitHub issue

my current setup is:

mac os version:  10.15.7

java installed version (JDK):  java 16.0.1 

when I run the command

./sbt clean dist

it gives

Cannot use JVMCI compiler: No JVMCI compiler found

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kntiwarycommented, Nov 21, 2021

What you can do is

  1. brew install sbt
  2. and in existing folder run sbt clean dist instead of ./sbt clean dist
0reactions
goferHirocommented, Apr 14, 2022

OpenJDK comes JVMCI compiler but Oracle doesnt.

So 3 solns Install openjdk11 or install Graal Compiler

I went with 2nd option

Installing in Mac is a bit tricky

https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-22.0.0.2

Caveat - Mac Os Catalina

sudo xattr -r -d com.apple.quarantine <folder>

//recursively removes quarantine attribs for all executables in the folder

3rd soln- sbt clean dist -Djava.security.manager=allow

Refer -https://bugs.openjdk.java.net/browse/JDK-8266577

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install CMake for Mac OS X 10.8 - Stack Overflow
You can install cmake via Homebrew. Install Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)".
Read more >
Installing - CMake
Typically this means selecting CMake as the Source directory and then selecting a binary directory for the resulting executables. macOS. There are pre-compiled ......
Read more >
trouble installing cmake - macos - Apple Stack Exchange
For cmake the easiest way is to install the GUI from the .dmg - which you already have done. For other users. To...
Read more >
macos wheel fail with cmake: command not found #200 - GitHub
seems strange that installing cmake requires cmake? OS: MacOS Big Sur Python version: 3.6.9.
Read more >
Compiling OpenGL Programs on macOS or Linux using CMake
You will need to install libxmu and libxi (the 3rd line) if you have the following error when running cmake: CMake Error: The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found