2016-12-08 23:52:46 +03:00
|
|
|
# Install instructions
|
|
|
|
|
|
|
|
To install and run Urbit please follow the instructions at
|
2016-12-09 00:04:37 +03:00
|
|
|
[urbit.org/docs/using/install](http://urbit.org/docs/using/install). Packages
|
|
|
|
and source tarballs are available there. You'll be on the live network in a few
|
|
|
|
minutes.
|
2013-09-29 00:21:18 +04:00
|
|
|
|
2016-12-08 23:52:46 +03:00
|
|
|
If you're doing development on Urbit, keep reading.
|
|
|
|
|
|
|
|
# Build instructions
|
2014-06-10 01:56:56 +04:00
|
|
|
|
2017-06-14 04:32:37 +03:00
|
|
|
[![Build Status](https://travis-ci.org/urbit/urbit.svg?branch=maint-0.4)](https://travis-ci.org/urbit/urbit)
|
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
## External dependencies
|
2015-09-23 00:04:11 +03:00
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
`vere`, the Urbit virtual machine, depends on the following:
|
2015-06-17 04:27:28 +03:00
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
- C compiler ([gcc](https://gcc.gnu.org) or [clang](http://clang.llvm.org))
|
2018-03-20 20:16:16 +03:00
|
|
|
- [Meson](http://mesonbuild.com/)
|
2016-09-12 22:29:35 +03:00
|
|
|
- [GMP](https://gmplib.org)
|
|
|
|
- [OpenSSL](https://www.openssl.org)
|
|
|
|
- [libsigsegv](https://www.gnu.org/software/libsigsegv/)
|
2016-10-06 01:10:37 +03:00
|
|
|
- [libcurl](https://curl.haxx.se/libcurl/)
|
2018-03-20 20:16:16 +03:00
|
|
|
- [libuv](http://libuv.org)
|
2016-09-12 22:29:35 +03:00
|
|
|
- curses implementation (ncurses on Linux distributions, OS curses otherwise)
|
|
|
|
- [re2c](http://re2c.org)
|
2015-10-20 21:40:29 +03:00
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
Most of these dependencies are unfortunate; we aim to drastically shrink the
|
2016-10-06 01:10:37 +03:00
|
|
|
list in upcoming versions. `vere` proper makes use of GMP, OpenSSL, libcurl, and
|
2016-09-12 22:29:35 +03:00
|
|
|
libsigsegv. The multiple build tools are a result of bundled libraries, slated
|
|
|
|
for future unbundling or removal wherever possible.
|
2015-10-20 21:40:29 +03:00
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
## Building
|
2015-11-17 06:29:27 +03:00
|
|
|
|
2018-03-20 20:16:16 +03:00
|
|
|
Urbit uses Meson build system.
|
2016-06-30 01:21:40 +03:00
|
|
|
|
2018-03-20 20:16:16 +03:00
|
|
|
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
|
2018-02-25 09:15:05 +03:00
|
|
|
|
2018-03-20 20:16:16 +03:00
|
|
|
are included as git submodules. To build urbit from source, perform the following steps:
|
|
|
|
|
|
|
|
## Configuration & compilation
|
|
|
|
(For instructions for legacy meson, also see below)
|
|
|
|
|
|
|
|
1. Install all required dependencies.
|
2018-04-03 21:15:17 +03:00
|
|
|
2. Run `./scripts/bootstrap`
|
|
|
|
3. Run `./scripts/build`
|
|
|
|
4. The executable should appear in `./build` directory.
|
2018-03-20 20:16:16 +03:00
|
|
|
|
|
|
|
### 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
|
2018-05-08 02:15:29 +03:00
|
|
|
`meson configure -Dbuildtype=debug`.
|
2018-03-20 20:16:16 +03:00
|
|
|
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.
|
|
|
|
1. Manually create `build` directory and invoke meson as `meson . ./build`
|
|
|
|
2. If you want to set options, this is done in one step.
|
|
|
|
Use `meson -D [options] . ./build` to prepare customized build.
|
|
|
|
|
|
|
|
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`.
|
2016-06-30 01:21:40 +03:00
|
|
|
|
2017-10-14 03:56:09 +03:00
|
|
|
## 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.
|
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
## Contact
|
2016-06-30 01:21:40 +03:00
|
|
|
|
2016-09-12 22:29:35 +03:00
|
|
|
If you have any questions, problems, patches, or proposals for patches, please
|
2016-12-08 23:52:46 +03:00
|
|
|
feel free to get in touch in whatever way is most convenient:
|
|
|
|
|
|
|
|
- Post to `/urbit-meta` on Urbit `:talk`. (You can do this via
|
|
|
|
[urbit.org/stream](https://urbit.org/stream) without a running Urbit).
|
|
|
|
- Post to [urbit.org/fora](https://urbit.org/fora/).
|
|
|
|
- Email us directly [questions@urbit.org](mailto:questions@urbit.org).
|