We’ve just announced an update to our previous blog on How to Install OCI CLI on Oracle Solaris. If you intend to install OCI CLI on the Oracle Solaris 11.4 SRU51 or the latest SRU updates untill SRU56, please follow the updated instructions below. The only change from the previous instructions is to “Install rustc and cargo” without performing the step (5) “export CRYPTOGRAPHY_DONT_BUILD_RUST=1”.

  1. Ensure developer components are installed: pkg change-facet facet.devel=true
  2. Install the compiler, system headers, pkg-config tool: pkg install gcc system/header developer/build/pkg-config
  3. Set the correct pkgconfig path in your environment: export PKG_CONFIG_PATH=/usr/openssl/1.1/pkgconfig/64/:/usr/lib/64/pkgconfig
  4. Set the correct include path in your environment: export CFLAGS=”$(pkg-config –cflags libffi –libs libcrypto libssl)”
  5. Instruct the installer not to build rust: export CRYPTOGRAPHY_DONT_BUILD_RUST=1
  6. Install rust compiler and cargo: sudo pkg install developer/rust/rustc developer/rust/cargo
  7. Follow the installation instructions from the OCI CLI documentation.

 

However, starting from the Oracle Solaris 11.4 SRU 57 update, OpenSSL 1.1 is no longer available and has been migrated to OpenSSL 3.0. If you plan to install OCI CLI on Oracle Solaris 11.4 SRU 57, follow the above mentioned procedure, except step (3). Replace the Step (3) with the below:

 

3. Set the correct pkgconfig path to point to OpenSSL 3.0: export PKG_CONFIG_PATH=/usr/openssl/3/lib/64/pkgconfig/:/usr/lib/64/pkgconfig

 

Please visit oraclesolaris-contrib  GitHub repository to stay up to date with the latest developments and access more detailed information about Oracle Solaris 11.4 and Oracle Solaris 11.4 on OCI.