-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
config.vm.box = "lucid32" | ||
# config.vm.provision :shell, :path => "scripts/bootstrap-ubuntu.sh" | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
# Set up build environment on Ubuntu. | ||
|
||
set -e | ||
|
||
sudo apt-get update | ||
|
||
# Install build tools. | ||
sudo apt-get install -y git-core gcc g++ gfortran \ | ||
ccache make buildbot default-jdk unixodbc-dev | ||
|
||
# Install CMake. | ||
CMAKE=cmake-2.8.12.2-Linux-i386 | ||
wget http://www.cmake.org/files/v2.8/$CMAKE.tar.gz | ||
tar xzf $CMAKE.tar.gz | ||
sudo rm -rf /opt/$CMAKE | ||
sudo mv $CMAKE /opt | ||
sudo ln -sf /opt/$CMAKE/bin/cmake /usr/local/bin | ||
|
||
# Set up ccache links. | ||
sudo ln -sf /usr/bin/ccache /usr/local/bin/gcc | ||
sudo ln -sf /usr/bin/ccache /usr/local/bin/cc | ||
sudo ln -sf /usr/bin/ccache /usr/local/bin/g++ | ||
sudo ln -sf /usr/bin/ccache /usr/local/bin/c++ | ||
|
||
# Install f90cache. | ||
rm -rf f90cache | ||
git clone https://github.com/vitaut/f90cache.git | ||
cd f90cache | ||
./configure | ||
make | ||
sudo make install | ||
cd .. | ||
rm -rf f90cache | ||
cd /usr/local/bin | ||
sudo ln -sf f90cache gfortran-4.4 |