To install and run Urbit please follow the instructions at urbit.org/docs/using/install. Packages and source tarballs are available there. You'll be on the live network in a few minutes.
If you're doing development on Urbit, keep reading.
vere, the Urbit virtual machine, depends on the following:
- C compiler (gcc or clang)
- curses implementation (ncurses on Linux distributions, OS curses otherwise)
Most of these dependencies are unfortunate; we aim to drastically shrink the
list in upcoming versions.
vere proper makes use of GMP, OpenSSL, libcurl, and
libsigsegv. The multiple build tools are a result of bundled libraries, slated
for future unbundling or removal wherever possible.
Urbit uses Meson build system.
Some libraries which are not found in major distributions:
- http-parser legacy version 0.1.0
- commonmark legacy version 0.12.0
are included as git submodules. To build urbit from source, perform the following steps:
Configuration & compilation
(For instructions for legacy meson, also see below)
- Install all required dependencies.
- The executable should appear in
Using meson & ninja
To configure project, enter the build directory and enter
meson configure. Without any arguments this command will display available
options. For example, to compile debug build of urbit, use
meson configure -Dbuildtype=debug.
To set the prefix for installation use
meson configure -Dprefix=/usr, and so on.
Configuration & compilation for legacy meson
The syntax for legacy meson (Version
0.29) is a bit different.
- Manually create
builddirectory and invoke meson as
meson . ./build
- If you want to set options, this is done in one step.
meson -D [options] . ./buildto prepare customized build.
Once the project is configured, use
ninja to build it.
To install it into the default prefix, use
If you want to specify custom
DESTDIR=... ninja install.
Building the Debian Package
To build a .deb file for installation on Debian platforms, perform the following steps:
sudo apt install devscriptsto install the
- Update the
debian/changelogto reflect the changes in this release.
- If necessary, update the year of the copyright in
- Clean any build artifacts: Run
make cleanand delete the
bindirectory, if it exists.
tar -xcvf ../urbit-x.y.z.orig.tar.gz .from the top-level folder in the repo. This command will create an archive in the directory above the current directory, which will be used in packaging.
debuild -us -uc, also from the top-level folder in the repo. This creates a .deb file in the folder above the current directory.
The resulting .deb file should now exist in the folder above the current directory. To test that the .deb file works properly, you can perform the following steps:
- Uninstall urbit:
sudo apt remove urbit.
sudo dpkg -i ../urbit-x.y.z_amd64.debto install the new version.
- Boot up a ship using the
If you have any questions, problems, patches, or proposals for patches, please feel free to get in touch in whatever way is most convenient: