Bug #112566 mysql-shell build errors
Submitted: 28 Sep 2023 17:02 Modified: 29 Sep 2023 21:10
Reporter: Julio Suarez Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.1.0 OS:Linux
Assigned to: MySQL Verification Team CPU Architecture:Any

[28 Sep 2023 17:02] Julio Suarez
Description:
While trying to build mysql-shell 8.1.0 (going to use it with mysql-server 8.1.0 for InnoDB Cluster). I see the following error:

CMake Error at CMakeLists.txt:628 (find_package):                                                                                            
  By not providing "Findantlr4-runtime.cmake" in CMAKE_MODULE_PATH this                                                                                                                                                                                                                   
  project has asked CMake to find a package configuration file provided by                                                                                                                                                                                                                
  "antlr4-runtime", but CMake did not find one.                                                                                              
                                                                                                                                             
  Could not find a package configuration file provided by "antlr4-runtime"                                                                                                                                                                                                                
  with any of the following names:                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                          
    antlr4-runtimeConfig.cmake                                                                                                               
    antlr4-runtime-config.cmake                                                                                                                                                                                                                                                           
                                                                                                                                             
  Add the installation prefix of "antlr4-runtime" to CMAKE_PREFIX_PATH or set                                                                                                                                                                                                             
  "antlr4-runtime_DIR" to a directory containing one of the above files.  If                                                                                                                                                                                                              
  "antlr4-runtime" provides a separate development package or SDK, be sure it                                                                                                                                                                                                             
  has been installed. 

Unclear how to get past this. The build instructions for mysql-shell are rather light.

How to repeat:
Try to build mysql-shell with INSTALL instructions
[29 Sep 2023 18:14] MySQL Verification Team
Hi,

This is not a bug, you got all the info you need in that error message:

  Add the installation prefix of "antlr4-runtime" to CMAKE_PREFIX_PATH or set                                                                                                                                                                                                             
  "antlr4-runtime_DIR" to a directory containing one of the above files.  If                                                                                                                                                                                                              
  "antlr4-runtime" provides a separate development package or SDK, be sure it                                                                                                                                                                                                             
  has been installed. 

please install antlr4 runtime and point cmake to it.
[29 Sep 2023 21:10] Julio Suarez
Ok, let's close this. I realized there is a forum. I will post there. I'm pointing cmake to my antlr4 runtime dir. Not sure what is wrong.