Discussion Forum

Mac install brew failure

On MacBook Pro, mid 2015 MacOS 11.6.1

Following typedb install instructions:

 brew tap vaticle/tap -   completed successfully

brew install vaticle/tap/typedb   -   failed with these messages

 Installing typedb from vaticle/tap
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the vaticle/tap tap (not Homebrew/brew or Homebrew/core):

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
  NoMethodError: undefined method `path' for nil:NilClass
Did you mean?  paths

Any advice on how to get past this?


There seems to be an issue with Developer Tools on your Mac. Try re-installing them with this command to see if it helps:

xcode-select --install

Thanks, doing that now!

I’ll report back when I can retry - although mac os says 'About 64 hours, 15 minutes remaining’ - so i’m not sure when that will be!

Success - although now I need to install a java runtime…

  • thanks Max!

hmm … more issues, sorry!

Java install reported successful. But …

typedb server

Error: A JNI error has occurred, please check your installation and try again

Exception in thread "main" java.lang.UnsupportedClassVersionError: 
com/vaticle/typedb/core/server/TypeDBServer has been compiled by a more recent version of the Java 
Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:756)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)

at java.net.URLClassLoader.access$100(URLClassLoader.java:74)

   at java.net.URLClassLoader$1.run(URLClassLoader.java:369)

   at java.net.URLClassLoader$1.run(URLClassLoader.java:363)

   at java.security.AccessController.doPrivileged(Native Method)

   at java.net.URLClassLoader.findClass(URLClassLoader.java:362)

   at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)

   at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

looking here: How to Fix java.lang.UnsupportedClassVersionError | Baeldung

but I think that’s for Windows users.

dilgreenMBpro:~ dilgreen$ java -version
java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)

“Your system has the recommended version of Java”

OK installed from here - have typedb running!

Amazing, welcome to TypeDB!