The recommended method is via xpm.

Overview

The xPack GNU Compiler Collection can be installed automatically, via xpm (the recommended method), or manually, by downloading and unpacking one of the portable archives.

Easy install

The easiest way to install the xPack GNU Compiler Collection is by using the binary xPack, available as @xpack-dev-tools/gcc from the npmjs.com registry.

Prerequisites

The only requirement is a recent xpm, which is a portable Node.js command line application. To install it, follow the instructions from the xpm install page.

Install

With xpm available, installing the latest version of the package is quite easy:

cd my-project
xpm init # Only at first use.

xpm install @xpack-dev-tools/gcc@latest

This command will always install the latest available version, in the global xPacks store, which is a platform dependent folder (check the output of the xpm command for the actual folder used on your platform).

Update

For the moment, to update the package, try to install the latest release again, as shown before. If there is a new release, it will be installed, otherwise a message will warn that the package is already installed.

Future versions of xpm will implement the outdated and update commands, as npm does.

Uninstall

To remove the links from the current project:

cd my-project

xpm uninstall @xpack-dev-tools/gcc

To completely remove the package from the global store:

xpm uninstall --global @xpack-dev-tools/gcc

Test

To check if the xpm installed GCC starts, use something like:

C:\>%USERPROFILE%\AppData\Roaming\xPacks\@xpack-dev-tool\gcc\8.5.0-1.1\.content\bin\gcc.exe" --version
gcc version 8.5.0 (xPack GCC 64-bit)

Manual install

For all platforms, the xPack GNU Compiler Collection binaries are released as portable archives that can be installed in any location.

The archives can be downloaded from the GitHub releases pages.

Download

The Windows versions of xPack GNU Compiler Collection are packed as ZIP files. Download the latest version named like:

  • xpack-gcc-8.5.0-1-win32-x64.zip
  • xpack-gcc-8.5.0-1-win32-ia32.zip

Select the -x64 file for 64-bit Windows machines and the -ia32 file for 32-bit Windows machines.

Unpack

To manually install the xPack GNU Compiler Collection, unpack the archive and copy the versioned folder into the %USERPROFILE%\AppData\Roaming\xPacks\gcc (for example C:\Users\ilg\AppData\Roaming\xPacks\gcc) folder; according to Microsoft, AppData\Roaming is the recommended location for installing user specific packages.

You may shorten the last folder name and keep only the version.

Test

To check if the manually installed GCC starts, use something like:

C:\>%USERPROFILE%\AppData\Roaming\xPacks\gcc\xpack-gcc-8.5.0-1\bin\gcc.exe" --version
gcc version 8.5.0 (xPack GCC 64-bit)

Easy install

The easiest way to install the xPack GNU Compiler Collection is by using the binary xPack, available as @xpack-dev-tools/gcc from the npmjs.com registry.

Prerequisites

The only requirement is a recent xpm, which is a portable Node.js command line application. To install it, follow the instructions from the xpm install page.

Install

With xpm available, installing the latest version of the package is quite easy:

cd my-project
xpm init # Only at first use.

xpm install @xpack-dev-tools/gcc@latest

This command will always install the latest available version, in the global xPacks store, which is a platform dependent folder (check the output of the xpm command for the actual folder used on your platform).

Update

For the moment, to update the package, try to install the latest release again, as shown before. If there is a new release, it will be installed, otherwise a message will warn that the package is already installed.

Future versions of xpm will implement the outdated and update commands, as npm does.

Uninstall

To remove the links from the current project:

cd my-project

xpm uninstall @xpack-dev-tools/gcc

To completely remove the package from the global store:

xpm uninstall --global @xpack-dev-tools/gcc

Test

To check if the xpm installed GCC starts, use something like:

$ ~/Library/xPacks/@xpack-dev-tools/gcc/8.5.0-1.1/.content/bin/gcc --version
gcc version 8.5.0 (xPack GCC 64-bit)

Manual install

For all platforms, the xPack GNU Compiler Collection binaries are released as portable archives that can be installed in any location.

The archives can be downloaded from the GitHub releases pages.

Download

The macOS version of xPack GNU Compiler Collection is packed as a .tar.gz archive. Download the latest version named like:

  • xpack-gcc-8.5.0-1-darwin-x64.tar.gz

Unpack

To manually install the xPack GNU Compiler Collection, unpack the archive and copy it to ~/.local/xPacks/gcc/xpack-gcc-<version>:

mkdir -p ~/.local/xPacks/gcc
cd ~/.local/xPacks/gcc

tar xvf ~/Downloads/xpack-gcc-8.5.0-1-darwin-x64.tar.gz
chmod -R -w xpack-gcc-8.5.0-1

You may shorten the last folder name and keep only the version.

The result is a structure like:

$ tree -L 2 /Users/ilg/Library/xPacks/gcc/xpack-gcc-8.5.0-1
/Users/ilg/Library/xPacks/gcc/xpack-gcc-8.5.0-1
├── README.md

TODO

Test

To check if the manually installed GCC starts, use something like:

$ ~/.local/xPacks/gcc/xpack-gcc-8.5.0-1.1/bin/gcc --version
gcc version 8.5.0 (xPack GCC 64-bit)

Easy install

The easiest way to install the xPack GNU Compiler Collection is by using the binary xPack, available as @xpack-dev-tools/gcc from the npmjs.com registry.

Prerequisites

The only requirement is a recent xpm, which is a portable Node.js command line application. To install it, follow the instructions from the xpm install page.

Install

With xpm available, installing the latest version of the package is quite easy:

cd my-project
xpm init # Only at first use.

xpm install @xpack-dev-tools/gcc@latest

This command will always install the latest available version, in the global xPacks store, which is a platform dependent folder (check the output of the xpm command for the actual folder used on your platform).

Update

For the moment, to update the package, try to install the latest release again, as shown before. If there is a new release, it will be installed, otherwise a message will warn that the package is already installed.

Future versions of xpm will implement the outdated and update commands, as npm does.

Uninstall

To remove the links from the current project:

cd my-project

xpm uninstall @xpack-dev-tools/gcc

To completely remove the package from the global store:

xpm uninstall --global @xpack-dev-tools/gcc

Test

To check if the xpm installed GCC starts, use something like:

$ ~/.local/xPacks/@xpack-dev-tools/gcc/8.5.0-1.1/.content/bin/gcc --version
gcc version 8.5.0 (xPack GCC 64-bit)

Manual install

For all platforms, the xPack GNU Compiler Collection binaries are released as portable archives that can be installed in any location.

The archives can be downloaded from the GitHub releases pages.

Download

The GNU/Linux versions of xPack GNU Compiler Collection are packed as .tar.gz archives. Download the latest version named like:

  • xpack-gcc-8.5.0-1-linux-x64.tar.gz
  • xpack-gcc-8.5.0-1-linux-ia32.tar.gz

As the name implies, these are GNU/Linux tar.gz archives; they were build on Ubuntu, but can be executed on most recent GNU/Linux distributions. Select the -x64 file for 64-bit machines and the -ia32 file for 32-bit machines.

Unpack

To manually install the xPack GNU Compiler Collection, unpack the archive and copy it to ${HOME}/.local/xPacks/gcc/xpack-gcc-<version>:

mkdir -p ~/.local/xPacks/gcc
cd ~/.local/xPacks/gcc

tar xvf ~/Downloads/xpack-gcc-8.5.0-1-linux-x64.tar.gz
chmod -R -w xpack-gcc-8.5.0-1

You may shorten the last folder name and keep only the version.

The result is a structure like:

$ tree -L 2 /home/ilg/.local/xPacks/gcc/xpack-gcc-8.5.0-1
/home/ilg/opt/xPacks/gcc/xpack-gcc-8.5.0-1

TODO

Test

To check if the manually installed GCC starts, use something like:

$ ~/.local/xPacks/gcc/xpack-gcc-8.5.0-1/bin/gcc --version
gcc version 8.5.0 (xPack GCC 64-bit)
Edit

Comments on the content of this page that might be useful for other readers are welcomed here. For question and general support, please use the project forums.