Last active
March 10, 2016 14:58
-
-
Save matsu-chara/e861363d33e884b3aa43 to your computer and use it in GitHub Desktop.
ponyc llvm37ビルド on ubuntu trusty64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
chmod -eu | |
sudo bash -c "cat >> /etc/apt/sources.list" << LLVMAPT | |
# LLVM | |
deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main | |
deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty main | |
# 3.7 | |
deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main | |
deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main | |
LLVMAPT | |
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get update -y | |
sudo apt-get install -y gcc g++ llvm-3.7 llvm-3.7-dev git zlib1g-dev libncurses-dev | |
export CC="gcc-4.9" | |
export CXX="g++-4.9" | |
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.bz2 | |
tar -xjvf pcre2-10.21.tar.bz2 | |
cd pcre2-10.21 && ./configure --prefix=/usr && make && sudo make install | |
cd -; | |
rm pcre2-10.21.tar.bz2 | |
rm -rf pcre2-10.21 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment