Compile Crystal on Ubuntu 14.04
Install Crystal from repository¶
http://crystal-lang.org/docs/installation/on_debian_and_ubuntu.html
Execute everything after the words "If you prefer to do it manually execute:"
Install dependencies¶
sudo apt-get install libbsd-dev libedit-dev libevent-core-2.0-5 libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5 libevent-dev libgc-dev libpcl1 libpcl1-dev libunwind8 libunwind8-dev libgmpxx4ldbl libgmp-dev libxml2-dev libyaml-dev
|
https://github.com/manastech/crystal/wiki/All-required-libraries
Install LLVM 3.5¶
LLVM 3.4 won't do...
sudo apt-get install llvm-3.5-dev
|
Clone Crystal repository¶
git clone https://github.com/manastech/crystal cd crystal |
Compile¶
Because some of the libraries in Ubuntu 14.04 are too old, we need to use the ones bundled with Crystal.
env LD_LIBRARY_PATH=/opt/crystal/embedded/lib/ LIBRARY_PATH=/opt/crystal/embedded/lib/ make
|
Run tests¶
env LD_LIBRARY_PATH=/opt/crystal/embedded/lib/ LIBRARY_PATH=/opt/crystal/embedded/lib/ make spec
|
Thanks to jhass for help.
Created (last updated )
Comments powered by Disqus