-
Notifications
You must be signed in to change notification settings - Fork 124
Installation
Bruno Bonacci edited this page Nov 2, 2016
·
13 revisions
pacman -S --asdeps libuv libffi python2 boost
mkdir ~/projects/pixie-lang
cd ~/projects/pixie-lang
git clone <github url>
cd pixie
PYTHON="/usr/bin/python2" make build_with_jit
mkdir ~/bin
cd ~/bin
ln -s ~/projects/pixie-lang/pixie/pixie-vm pxi
export PATH=$PATH:~/bin
pxi
Before building Pixie, apt-get install the following prerequisites: build-essential pkg-config curl libffi-dev libedit-dev libuv1-dev libboost-all-dev
-
Install the required packages via
pkg install libuv libffi gmake readline python
-
Clone the repository
-
And run the following commands inside of it:
make build_with_jit
-
This creates an executable named
pixie-vm
-
Install Xcode
-
Install the Xcode command line tools (this allows /usr/local to be included in the path)
xcode-select --install
-
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install the build dependencies
brew install libuv libffi boost
-
After the installation, remember to set the
PKG_CONFIG_PATH
andCPATH
accordingly. For example (please note version numbers will be different in your system):export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/:/usr/local/Cellar/libuv/1.10.0/lib/pkgconfig/ export CPATH=/usr/local/Cellar/boost/1.62.0/include/
-
Build pixie
make build_with_jit
-
Add pixie to path
ln -s $(pwd)/pixie-vm /usr/local/bin/pixie