-
Notifications
You must be signed in to change notification settings - Fork 11
Home
swirl is developed on Mac OS X 10.9.1 and FreeBSD 10.0 in parallel, and when testing is set up, on common linux variants as well. The latest available Erlang/OTP release is used, currently at R16B03-1.
FreeBSD 10.0 was chosen mainly because zfs is the only sane filesystem for servers if your data is of any value to you, and it's got a great network stack under the hood.
Swirl has no external dependencies other than Erlang/OTP so rebar, git, and erlang are usually sufficient. The approach for linux or OSX should be pretty much the same.
You'll need to install the following packages:
pkg install curl erlang devel/rebar git
And I usually include:
pkg install aria2 net/mosh scons subversion sudo zsh pz7ip \
pstree psearch rsync vim-lite tmux the_silver_searcher \
tree ngrep pcbsd-utils pkgconf couchdb
clone the swirl repo, and run make.
You'll need the devel versions of both openssl and libevent2 packages, for older fedora versions, make sure you're not getting a version that's < 2.0 please.
sudo yum install -y libevent-devel openssl-devel
make swift-dynamic
You now should have a working swift binary inside the git repo.
Unfortunately, the tribler-based swift binary doesn't build directly on FreeBSD 10.0, as it is 100% clang-based now. Clone the maintained fork and check out the ppsp-08 branch.
Here's how:
/etc/make.conf should contain:
CC=clang
CXX=clang++
CPP=clang-cpp
WITH_LIBCPLUSPLUS=yes
WITH_CLANG=yes
WITH_CLANG_IS_CC=yes
WITH_CLANG_EXTRAS=yes
WERROR=
NO_WERROR=
NO_FSCHG=
WITHOUT_GCC=yes
WITHOUT_GNU=yes
WITH_PKGNG=yes
You'll need to install the following packages:
pkg install curl erlang devel/rebar git gmake libevent2
swift can now be built with gmake swift-static for example.