Skip to content

Instantly share code, notes, and snippets.

@lsparrish
Last active October 24, 2020 20:40
Show Gist options
  • Save lsparrish/15d4e457ad2bcb7a0ae4d306fcbf79fa to your computer and use it in GitHub Desktop.
Save lsparrish/15d4e457ad2bcb7a0ae4d306fcbf79fa to your computer and use it in GitHub Desktop.
Build Clasp / Cando
# Ramnode instance, Ubuntu 20.04 Server Cloud
fallocate -l 8G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
export USER=lsparrish
adduser $USER
gpasswd sudo --add $USER
sed -i 's/sudo\tALL=(ALL:ALL) ALL/sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
cp -r .ssh/ /home/$USER/; chown -R $USER /home/$USER/.ssh
su - $USER
git clone https://github.com/clasp-developers/clasp
# llvm/clang 10 doesn't work yet
sudo apt-get install -y python-is-python3 make llvm-9-dev clang-9 libclang-9-dev clang-format-9 clang-tools-9 clangd-9 sbcl libgmp-dev libgc-dev libz3-dev libboost-dev libboost-filesystem-dev libboost-date-time-dev curl git gpg libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libbsd-dev libelf-dev libexpat-dev libgmp-dev libzmq3-dev nano npm python3-pip sbcl wget zlib1g-dev libunwind-dev netcdf-bin libnetcdf-dev libnetcdf-c++4-dev
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp
git clone https://github.com/clasp-developers/clasp-boehm
cd clasp-boehm
sed -i 's/makefile/Makefile/' makefile
make
cd ..
cd clasp/extensions
git clone https://github.com/cando-developers/cando
cd ..
./waf distclean configure build_cboehm
./build/boehm/icando-boehm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment