Skip to content

Installing the bitrig toolchain if it wasn't installed on first boot

John C. Vernaleo edited this page Mar 23, 2015 · 2 revisions

The Bitrig toolchain, among other things, includes llvm/clang, a compiler. While not included in the base system, it is normally installed upon first boot. However, if your computer does not have internet, or you chose not to install it, then you will not have a working compiler. If you later decide you want to install it, then just follow the following steps:

Installing with an internet connection

Assuming that you have exported your PKG_PATH variable, then just run the following commands:

pkg_add -m bitrig-binutils

pkg_add -m bitrig-syscomp

Installing without an internet connection

To install without an internet connection, you will need to download not only the above packages, but also their dependencies. Then, you will have to transfer them to your computer somehow (on a USB stick, for example). You will need to download the following packages:

  • bitrig-binutils
  • bitrig-gdb
  • bitrig-llvm
  • bitrig-syscomp
  • bzip2
  • cdrtools
  • curl
  • cvsps
  • gettext
  • git
  • gmp
  • libarchive
  • libffi
  • libiconv
  • libidn
  • libmpc
  • mpfr
  • p5-Error
  • python (2.7)
  • readline
  • rsync
  • xz

You can download the packages at http://mirror2.us.bitrig.org/pub/bitrig/snapshots/_arch_/_date_/packages/

After you have downloaded them, use the command pkg_add -m /path/to/package.tgz for each package until all of them are installed.