What does this do?

July 24, 2026 ยท View on GitHub

License CI

Note

This is the toolchain repository. For the full development environment, please use ps3dev.

What does this do?

This program will automatically build and install a compiler and other tools used in the creation of homebrew software for the Sony PlayStation 3 videogame system.

How do I use it?

Set up your environment by installing the following software:

autoconf, automake, bison, flex, gcc, libelf, make, makeinfo, ncurses, patch, python, subversion, wget, zlib, libtool, bzip2, gmp, pkg-config, g++, libssl-dev, clang

Linux

For Debian based distros:

  apt-get install autoconf automake bison flex gcc libelf-dev make \
    texinfo libncurses5-dev patch python subversion wget zlib1g-dev \
    libtool libtool-bin python-dev bzip2 libgmp3-dev pkg-config g++ libssl-dev clang

For Debian 11 and 12:

Install python-is-python3 and python-dev-is-python3 instead of python and python-dev.

For Debian 13:

In addition to the above, also install python3-setuptools.

For RedHat distros:

  sudo dnf install bison flex gcc elfutils-libelf-devel make python path \
  wget zlib-devel libtool python3-devel bzip2 gmp-devel pkg-config gcc \
  openssl-devel texinfo ncurses-devel

macOS

On macOS systems, if you have Homebrew package manager, the following command line should be enough to install everything necessary:

  brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config texinfo

Windows

Use Ubuntu WSL and follow the Linux procedure as normal.

Add the following variables to your bash config:

  export PS3DEV=/usr/local/ps3dev
  export PSL1GHT=$PS3DEV

  export PATH=$PATH:$PS3DEV/bin
  export PATH=$PATH:$PS3DEV/ppu/bin
  export PATH=$PATH:$PS3DEV/spu/bin

Run the toolchain script:

  ./toolchain.sh