Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.86 KB

README_install.rst

File metadata and controls

64 lines (40 loc) · 1.86 KB

Installation Quick Start

cccc is currently tested on the Github CI runners using Ubuntu, Macos, and Windows. Older versions are still packaged on Debian/Ubuntu and other places, however, to get the latest you need to compile from source or use the Launchpad PPA (Ubuntu focal only) or the Gentoo ebuild.

For the former, make sure you have the add-apt-repository command installed and then add the PPA:

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y -s ppa:nerdboy/embedded
$ sudo apt-get install cccc

The latest version is now available in conda-forge so if you have a conda environment handy, you can install with:

$ conda config --add channels conda-forge
$ conda install cccc

Compiling from source

Requirements for building cccc from the repo source:

  • A build environment with gcc, clang, mingw64, msvc, etc.
    • On Ubuntu/Debian, install via sudo apt-get install build-essential
    • On Gentoo, just emerge it
    • On Macos, use xcode/clang
    • On Windows, use one of the MSCV "free" editions or cygwin/msys

With a build environment in place, clone the repo and build it:

$ git clone https://github.com/sarnold/cccc
$ cd cccc/
$ make cccc
$ make test

For MSVC on windows you can follow the same basic procedure, but use the .bat file to build instead of make:

$ git clone https://github.com/sarnold/cccc
$ cd cccc
$ ./build_msvc.bat --clean

Note

On windows the executable name is cccc.exe.

From there you can copy the executable to the bin directory of your choice, eg, $HOME/bin or /usr/local/bin.