Skip to content
Browse files
Fix Vagrant
  • Loading branch information
rouault committed Feb 4, 2020
1 parent 5a6f8e8 commit fd5e8eed1234b3d0d98db1f479f26c45fb79c651
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
@@ -6,6 +6,12 @@ require 'socket'
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!

$set_environment_variables = <<SCRIPT
tee "/etc/profile.d/" > "/dev/null" <<EOF
export LD_LIBRARY_PATH=/vagrant/install-vagrant-proj-6/lib

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vm_ram = ENV['VAGRANT_VM_RAM'] || 2048
vm_cpu = ENV['VAGRANT_VM_CPU'] || 2
@@ -37,4 +43,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", path: "scripts/vagrant/"
config.vm.provision "shell", path: "scripts/vagrant/"

config.vm.provision "shell", inline: $set_environment_variables, run: "always"


@@ -8,11 +8,12 @@ apt-get update
apt-get install -y python-software-properties
add-apt-repository -y ppa:ubuntugis/ppa
add-apt-repository -y ppa:ubuntugis/ubuntugis-testing
add-apt-repository -y ppa:dluxen/cmake-backports
apt-get update
apt-get -y upgrade

# install packages we need
apt-get install -q -y git build-essential pkg-config cmake libgeos-dev rake \
apt-get install -q -y git build-essential pkg-config cmake3 libgeos-dev rake \
libpq-dev python-all-dev libproj-dev libxml2-dev postgis php5-dev \
postgresql-server-dev-9.3 postgresql-9.3-postgis-2.2 vim bison flex swig \
librsvg2-dev libpng12-dev libjpeg-dev libgif-dev \
@@ -21,4 +22,6 @@ apt-get install -q -y git build-essential pkg-config cmake libgeos-dev rake \
libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler libharfbuzz-dev gdal-bin \
curl sqlite3

curl -o
pip install -U -r /vagrant/msautotest/requirements.txt
@@ -9,6 +9,7 @@ cd /vagrant
curl -s > proj-6.1.1.tar.gz
tar xzf proj-6.1.1.tar.gz
rm -rf vagrant-proj
rm -rf /vagrant/install-vagrant-proj-6
mv proj-6.1.1 vagrant-proj
(cd vagrant-proj/data && curl -s > proj-datumgrid-1.8.tar.gz && tar xvzf proj-datumgrid-1.8.tar.gz)
(cd vagrant-proj; CFLAGS='-DPROJ_RENAME_SYMBOLS -O2' CXXFLAGS='-DPROJ_RENAME_SYMBOLS -O2' ./configure --disable-static --prefix=/vagrant/install-vagrant-proj-6 && make -j $NUMTHREADS && make -j $NUMTHREADS install)

0 comments on commit fd5e8ee

Please sign in to comment.