File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ require 'socket'
6
6
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
7
7
VAGRANTFILE_API_VERSION = "2"
8
8
9
+ $set_environment_variables = <<SCRIPT
10
+ tee "/etc/profile.d/myvars.sh" > "/dev/null" <<EOF
11
+ export LD_LIBRARY_PATH=/vagrant/install-vagrant-proj-6/lib
12
+ EOF
13
+ SCRIPT
14
+
9
15
Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
10
16
vm_ram = ENV [ 'VAGRANT_VM_RAM' ] || 2048
11
17
vm_cpu = ENV [ 'VAGRANT_VM_CPU' ] || 2
@@ -37,4 +43,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
37
43
config . vm . provision "shell" , path : "scripts/vagrant/proj6.sh"
38
44
config . vm . provision "shell" , path : "scripts/vagrant/mapserver.sh"
39
45
46
+ config . vm . provision "shell" , inline : $set_environment_variables, run : "always"
47
+
40
48
end
49
+
50
+
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ apt-get update
8
8
apt-get install -y python-software-properties
9
9
add-apt-repository -y ppa:ubuntugis/ppa
10
10
add-apt-repository -y ppa:ubuntugis/ubuntugis-testing
11
+ add-apt-repository -y ppa:dluxen/cmake-backports
11
12
apt-get update
12
13
apt-get -y upgrade
13
14
14
15
# install packages we need
15
- apt-get install -q -y git build-essential pkg-config cmake libgeos-dev rake \
16
+ apt-get install -q -y git build-essential pkg-config cmake3 libgeos-dev rake \
16
17
libpq-dev python-all-dev libproj-dev libxml2-dev postgis php5-dev \
17
18
postgresql-server-dev-9.3 postgresql-9.3-postgis-2.2 vim bison flex swig \
18
19
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 \
21
22
libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler libharfbuzz-dev gdal-bin \
22
23
curl sqlite3
23
24
25
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
26
+ python get-pip.py
24
27
pip install -U -r /vagrant/msautotest/requirements.txt
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ cd /vagrant
9
9
curl -s http://download.osgeo.org/proj/proj-6.1.1.tar.gz > proj-6.1.1.tar.gz
10
10
tar xzf proj-6.1.1.tar.gz
11
11
rm -rf vagrant-proj
12
+ rm -rf /vagrant/install-vagrant-proj-6
12
13
mv proj-6.1.1 vagrant-proj
13
14
(cd vagrant-proj/data && curl -s http://download.osgeo.org/proj/proj-datumgrid-1.8.tar.gz > proj-datumgrid-1.8.tar.gz && tar xvzf proj-datumgrid-1.8.tar.gz)
14
15
(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)
You can’t perform that action at this time.
0 commit comments