Install LAML

Get started with LAML in seconds. Choose your platform and follow the simple installation steps.

Detecting your platform...

Automatic installation command will appear here

Quick Install

Windows

iwr -useb https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/windows/install.ps1 | iex

Run in PowerShell as Administrator. Automatically downloads and installs LAML from GitHub.

Linux

curl -fsSL https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/linux/install.sh | bash

Works on Ubuntu, Debian, CentOS, Fedora, and more. Supports x86_64, ARM64, and ARMv7 architectures. Includes shell completion and VS Code extension.

macOS

curl -fsSL https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/macos/install.sh | bash

Compatible with macOS 10.15+ on both Intel (x86_64) and Apple Silicon (ARM64) Macs. Includes bash and zsh completion.

Termux (Android)

curl -fsSL https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/termux/install.sh | bash

For Android devices with Termux app. Uses ARM-optimized binary for better compatibility. Includes Termux shortcuts and auto-dependency installation.

Alternative Installation Methods

Manual Download + Install

For users who prefer manual installation or need offline setup:

Linux/macOS:

wget https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/linux/install.sh
chmod +x install.sh
./install.sh

Termux:

wget https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/installers/termux/install.sh
chmod +x install.sh
./install.sh

Direct Binary Download

Download the LAML binary directly and install manually:

wget https://raw.githubusercontent.com/NaveenSingh9999/LAML/refs/heads/main/laml
chmod +x laml
sudo mv laml /usr/local/bin/

Note: This method installs only the binary. For shell completions and VS Code extension, use the full installer.

Verify Installation

1

Check Version

Verify LAML is installed correctly:

laml version
Expected output: LAML 3.3.0
2

Run Hello World

Create and run your first LAML program:

echo 'bring xcs.class34; func main() { say "Hello, LAML v3.3.0!"; }' > hello.lm && laml run hello.lm
Expected output: Hello, LAML v3.3.0!

VS Code Extension

Enhanced Development Experience

Get syntax highlighting, IntelliSense, and debugging support with the official LAML VS Code extension.

Syntax highlighting
IntelliSense & auto-completion
One-click run button

Installation Options

Install from VSIX file:

  1. Download the .vsix file above
  2. Open VS Code
  3. Go to Extensions (Ctrl+Shift+X)
  4. Click "..." → "Install from VSIX..."
  5. Select the downloaded .vsix file

Alternative Installation Methods

Manual Download

Download pre-built binaries directly from GitHub releases:

Download Latest Release

Build from Source

Compile LAML yourself for maximum customization:

git clone https://github.com/NaveenSingh9999/LAML.git cd LAML go build -o laml main.go

Troubleshooting

Command not found

If you get "laml: command not found", try:

  • Restart your terminal
  • Check if the binary is in your PATH
  • Run which laml to locate the binary

Permission denied

If installation fails with permission errors:

  • Run with sudo on Linux/macOS
  • Run PowerShell as Administrator on Windows
  • Check write permissions in the install directory

Network issues

If downloads fail or timeout:

  • Check your internet connection
  • Try downloading manually from GitHub
  • Use a VPN if GitHub is blocked

Version conflicts

If you have multiple LAML versions:

  • Uninstall old versions first
  • Check your PATH for multiple entries
  • Use the full path to the binary