Skip to main content

Install Open Libra CLI From Pre-built Binary

This guide covers installing pre-built binaries of the Open Libra CLI tool across macOS, Linux, and Windows platforms.

Supported Platforms

PlatformArchitecturesNotes
macOSx64 (Intel), arm64 (Apple Silicon)Requires Homebrew
Linuxx64, arm64Built on Ubuntu 24.04
Windowsx64 onlyarm64 runs via emulation
warning

Pre-built binaries carry inherent security risks.

  • For production environments or maximum security, build from source
  • Only download from https://github.com/0LNetworkCommunity/libra-framework/releases (under Assets)

Download Instructions

1. Check Your Architecture

uname -m

Results:

  • x86_64 = Download x64 binary
  • arm64 or aarch64 = Download arm64 binary

2. Download the Binary

  1. Visit the official releases page
  2. Find the latest release
  3. Download the appropriate binary:
SystemFile to Download
Intel Maclibra-macos-x64
Apple Silicon Mac (M1/M2/M3/M4)libra-macos-arm64
Standard Linuxlibra-linux-x64
ARM Linux (Raspberry Pi)libra-linux-arm64
Windowslibra-windows-x64.exe

Installation Instructions

Prerequisites

Steps

  1. Install OpenSSL dependency:

    brew install openssl
  2. Move binary to PATH:

    # Create bin directory if it doesn't exist
    mkdir -p ~/bin

    # Copy and rename the binary (replace arm64 with x64 if needed)
    cp ~/Downloads/libra-macos-arm64 ~/bin/libra
  3. Remove quarantine (macOS security feature):

    xattr -dr com.apple.quarantine ~/bin/libra
  4. Make executable:

    chmod +x ~/bin/libra
  5. Add to PATH (if ~/bin isn't already in PATH):

    echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
    source ~/.zshrc
  6. Verify installation:

    libra version

Troubleshooting

Common Issues

SymptomLikely CauseResolution
"command not found"Binary location is not in your PATHEnsure the binary location is in your PATH
"Permission denied"File is not marked as executableRun chmod +x libra to make the file executable
"cannot execute binary file"Downloaded binary does not match your system architectureCheck your system architecture and download the correct binary
OpenSSL errorsOpenSSL is missing or not properly installedInstall or update OpenSSL for your platform
"bad CPU type" (macOS)Binary was built for the wrong CPU architectureDownload the correct architecture (x64 vs. arm64)
libra : The term 'libra' is not recognized…Current PowerShell session has not picked up the updated PATHOpen a new PowerShell window, or run step 4 to refresh PATH in the current session
Path appears as C:\Users\win\Downloads\%HOMEPATH%\bin%HOMEPATH% was used instead of $HOME or %USERPROFILE% (lacks drive letter)Re-run steps 1–3 using $HOME (PowerShell) or %USERPROFILE% (cmd)
Need to type .\libra.exe instead of libraWindows does not execute files from the current directory by defaultEnsure $HOME\bin is in your PATH; then running libra will work without .\