Installing DevCPC CLI
DevCPC CLI can be installed automatically using a single command, or manually if you prefer more control over the installation process.Automated Installation
The easiest way to install DevCPC is using the automated installer.Using curl
Using wget
What the Installer Does
The automated installer:- Downloads the latest version of DevCPC
- Installs it to
~/.DevCPC - Automatically configures your shell (bash/zsh)
- Adds DevCPC to your PATH
Post-Installation
After installation, reload your shell configuration:Verify Installation
Check that DevCPC is installed correctly:Manual Installation
If you prefer to install manually, follow these steps:Download the latest release
Download the latest version from GitHub Releases
Platform-Specific Notes
macOS
macOS
DevCPC works on both Apple Silicon (ARM64) and Intel (x86_64) Macs.Requirements:
- macOS 10.15 or later
- Xcode Command Line Tools (for development)
- Python 3.x (usually pre-installed)
Linux
Linux
DevCPC supports both ARM64 and x86_64 architectures.Requirements:
- Python 3.x
- bash or zsh shell
Windows WSL
Windows WSL
DevCPC runs on Windows Subsystem for Linux (WSL) or Git Bash.Using WSL (Recommended):
- Install WSL
- Install a Linux distribution (Ubuntu recommended)
- Follow the Linux installation steps above
- Install Git for Windows
- Open Git Bash
- Run the automated installer
Installing Optional Dependencies
SDCC (C Compiler)
Only required if you want to compile C code for your CPC projects.RetroVirtualMachine
Only required if you want to usedevcpc run to test your projects in an emulator.
Download from: RetroVirtualMachine Website
After installation, configure the path in your devcpc.conf:
Pillow (Python Library)
Only required if you want to convert PNG images to ASM sprites or SCN screens.Updating DevCPC
Using the Update Command
The easiest way to update:- Check for the latest version
- Download and install updates automatically
- Preserve your projects and configuration
Manual Update
You can also reinstall using the automated installer:Your projects are stored separately, so reinstalling DevCPC won’t affect them.
Uninstalling DevCPC
To remove DevCPC from your system:~/.bashrc or ~/.zshrc:
Troubleshooting
Command not found: devcpc
Command not found: devcpc
The PATH wasn’t configured correctly. Try:If that doesn’t work, verify the PATH is in your shell config:You should see:
Permission denied errors
Permission denied errors
Make sure the DevCPC scripts are executable:
Python not found
Python not found
Install Python 3:
Updates not working
Updates not working
If
devcpc update fails, manually reinstall:Next Steps
Quick Start
Now that DevCPC is installed, create your first CPC project!