An operating function (Prototype)
Go to file
2018-02-25 22:07:10 +08:00
.d hashtable tests and associated makefile changes 2017-11-09 08:35:05 -08:00
debian Added debian folder; .deb build steps in README 2017-10-13 17:58:16 -07:00
extras Improve sublime arm name indexing. 2015-11-16 18:15:32 -05:00
include Switch to generated config header. New allocator 2018-02-25 14:14:25 +08:00
jets Switch to softfloat3 2018-02-25 14:13:24 +08:00
noun New allocator 2018-02-25 14:13:47 +08:00
Spec Typo in 4k Nock spec 2018-02-14 13:57:56 -06:00
subprojects Bump ed25519 2018-02-25 20:00:47 +08:00
tests _test_cache_replace_value() 2017-11-09 08:35:05 -08:00
vere Fix UV__* for new libuv 2018-02-25 16:02:18 +08:00
.gitignore Update .gitignore 2018-02-25 14:14:55 +08:00
.gitmodules Fix deps git path 2018-02-25 14:40:47 +08:00
.travis.yml Fix travis 2018-02-25 15:55:40 +08:00
CONTRIBUTING.md Updates contributor guidelines 2016-10-27 13:02:43 -04:00
gdb-test-hash gdb script for testing 2017-11-09 08:35:05 -08:00
LICENSE.txt MIT LICENSE 2015-02-10 12:19:37 -08:00
meson_options.txt Add optimization option 2018-02-25 20:25:00 +08:00
meson.build Fix mac build 2018-02-25 21:59:13 +08:00
README.md Add macos pkg-config fix instructions 2018-02-25 22:07:10 +08:00

Install instructions

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.

Build instructions

Build Status

External dependencies

vere, the Urbit virtual machine, depends on the following:

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.

Building

Urbit uses Meson build system.

Some libraries which are not found in major distributions:

  • ed25519
  • http-parser legacy version 0.1.0
  • murmur3
  • softfloat3
  • urbit-scrypt
  • commonmark legacy version 0.12.0

are included as git submodules. To build urbit from source, perform the following steps:

MacOS specifics

On macos, you need to make sure pkg-config uses the correct homebrew path. The export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig/ should setup the pkg-config path correctly, solving errors with homebrew package discovery (notably with openssl paths).

Configuration & compilation

  1. Install all required dependencies.
  2. git submodule init in the urbit repository
  3. git submodule update
  4. meson build
  5. If the last step was successful, type cd ./build followed by ninja to compile urbit.
  6. The executable should appear in ./build directory.

Using meson & ninja

To configure project, enter the build directory and user meson configure. Without any arguments this command will display available options. For example, to compile debug build of urbit, use meson configure -Ddebug=true. To set the prefix for installation use meson configure -Dprefix=/usr, and so on.

Once the project is configured, use ninja to build it. To install it into the default prefix, use ninja install. If you want to specify custom DESTDIR, use DESTDIR=... ninja install.

Building the Debian Package

To build a .deb file for installation on Debian platforms, perform the following steps:

  • Run sudo apt install devscripts to install the debuild utility.
  • Update the debian/changelog to reflect the changes in this release.
  • If necessary, update the year of the copyright in debian/copyright.
  • Clean any build artifacts: Run make clean and delete the bin directory, if it exists.
  • Run 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.
  • Run 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.
  • Run sudo dpkg -i ../urbit-x.y.z_amd64.deb to install the new version.
  • Boot up a ship using the urbit command.

Contact

If you have any questions, problems, patches, or proposals for patches, please feel free to get in touch in whatever way is most convenient: