Installation
Install BanglaCode on your machine and start coding in Bengali. Use our one-liner installers, download pre-built binaries, or build from source.
🚀 Quick Install (Recommended)
The fastest way to install BanglaCode. Our installer automatically detects your operating system and architecture.
Linux / macOS / BSD
curl -fsSL https://raw.githubusercontent.com/nexoral/BanglaCode/main/Scripts/install.sh | bashSupports: Ubuntu, Debian, Fedora, RHEL, CentOS, Arch, macOS (Intel & Apple Silicon), FreeBSD, OpenBSD, NetBSD, and more.
Windows (PowerShell)
irm https://raw.githubusercontent.com/nexoral/BanglaCode/main/Scripts/install.ps1 | iexWorks on Windows 7+, Windows 10/11, and Windows Server. Supports x64, x86, and ARM64.
📦 Download Pre-built Binaries
Download the appropriate package for your system from our GitHub Releases.
Windows
| File | Architecture | Description |
|---|---|---|
| banglacode-windows-amd64.zip | x64 | 64-bit (most common) |
| banglacode-windows-386.zip | x86 | 32-bit |
| banglacode-windows-arm64.zip | ARM64 | Surface Pro X, Windows on ARM |
macOS
| File | Architecture | Description |
|---|---|---|
| banglacode-macos-arm64.tar.gz | ARM64 | Apple Silicon (M1/M2/M3) ⭐ |
| banglacode-macos-amd64.tar.gz | x64 | Intel Mac |
Linux
| File | Architecture | Description |
|---|---|---|
| banglacode-linux-amd64.deb | x64 | Debian/Ubuntu |
| banglacode-linux-amd64.rpm | x64 | Fedora/RHEL/CentOS |
| banglacode-linux-amd64.tar.gz | x64 | Generic Linux |
| banglacode-linux-arm64.deb | ARM64 | Raspberry Pi 4+, AWS Graviton |
| banglacode-linux-arm64.rpm | ARM64 | ARM64 Fedora/RHEL |
| banglacode-linux-arm.tar.gz | ARMv7 | Raspberry Pi 2/3, embedded |
| banglacode-linux-386.tar.gz | x86 | 32-bit Linux |
BSD
| File | Architecture | Description |
|---|---|---|
| banglacode-freebsd-amd64.tar.gz | x64 | FreeBSD 64-bit |
| banglacode-freebsd-386.tar.gz | x86 | FreeBSD 32-bit |
| banglacode-openbsd-amd64.tar.gz | x64 | OpenBSD 64-bit |
| banglacode-netbsd-amd64.tar.gz | x64 | NetBSD 64-bit |
📋 Manual Installation
Linux (DEB - Debian/Ubuntu)
# Download the .deb file, then:
sudo dpkg -i banglacode-linux-amd64.debLinux (RPM - Fedora/RHEL/CentOS)
# With dnf
sudo dnf install ./banglacode-linux-amd64.rpm
# Or with yum
sudo yum install ./banglacode-linux-amd64.rpmLinux/macOS/BSD (tar.gz)
# Extract and install
tar -xzf banglacode--.tar.gz
sudo mv banglacode /usr/local/bin/
sudo chmod +x /usr/local/bin/banglacode Windows (ZIP)
- Download the appropriate ZIP file
- Extract to a folder (e.g.,
C:\Program Files\BanglaCode) - Add the folder to your system PATH:
- Search "Environment Variables" in Windows
- Edit "Path" under User variables
- Add the folder containing
banglacode.exe
- Restart your terminal
🔐 Verify Download (Optional)
Each release includes a checksums.txt file with SHA256 hashes. Verify your download:
# Download checksums.txt from the release, then:
sha256sum -c checksums.txt --ignore-missing🔧 Build from Source
Prerequisites
To build from source, you need Go 1.20 or later. Download it from go.dev/dl.
go version
# Should show: go version go1.20+ ...Build Steps
# Clone the repository
git clone https://github.com/nexoral/BanglaCode.git
cd BanglaCode
# Build
go build -o banglacode main.go
# Verify
./banglacode --version
# Optional: Install system-wide
sudo mv banglacode /usr/local/bin/Cross-Compilation
Build for different platforms:
# Windows (64-bit)
GOOS=windows GOARCH=amd64 go build -o banglacode.exe main.go
# macOS (Apple Silicon)
GOOS=darwin GOARCH=arm64 go build -o banglacode main.go
# Linux (ARM64 - Raspberry Pi 4)
GOOS=linux GOARCH=arm64 go build -o banglacode main.go
# FreeBSD
GOOS=freebsd GOARCH=amd64 go build -o banglacode main.go✅ Verify Installation
banglacode --version🎯 Running Your First Program
Create a File
Create a file named hello.bang:
| 1 | // Your first BanglaCode program |
| 2 | dekho("Namaskar, BanglaCode!"); |
| 3 | |
| 4 | dhoro naam = "World"; |
| 5 | dekho("Hello,", naam); |
Run the Program
banglacode hello.bangOutput:
Namaskar, BanglaCode!
Hello, World💻 Interactive REPL
Start the interactive mode by running without arguments:
banglacodeYou'll see a prompt where you can type BanglaCode directly:
BanglaCode REPL v1.0
Type 'help' for commands, 'exit' to quit
>> dhoro x = 5
>> dekho(x * 2)
10
>> kaj double(n) { ferao n * 2; }
>> double(21)
42🎨 VS Code Extension
For syntax highlighting and code snippets, install the BanglaCode VS Code extension:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "BanglaCode"
- Click Install
Or visit the VS Code Marketplace.
❓ Troubleshooting
Command not found
Make sure the binary is in your PATH:
# Check if banglacode is in PATH
which banglacode
# If not found, add to PATH (Linux/macOS)
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
source ~/.bashrcPermission denied (Linux/macOS)
chmod +x /usr/local/bin/banglacodeWindows: Script execution disabled
If the PowerShell installer is blocked:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserBuild errors
Make sure you have Go 1.20+ and all dependencies:
go mod tidy
go build -o banglacode main.go