-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall-dependencies.sh
More file actions
31 lines (29 loc) · 1.04 KB
/
install-dependencies.sh
File metadata and controls
31 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export CFLAGS="-mmacosx-version-min=10.7";
export CXXFLAGS="-mmacosx-version-min=10.7";
export LDFLAGS="-mmacosx-version-min=10.7";
fi
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
# Link gcc-6 and g++-6 to their standard commands
sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc;
sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++;
# Export CC and CXX to tell cmake which compiler to use
export CC=/usr/bin/gcc-6;
export CXX=/usr/bin/g++-6;
# Check versions of gcc, g++ and cmake
gcc -v && g++ -v && cmake --version;
fi
wget https://github.com/cleishm/libcypher-parser/releases/download/v0.6.2/libcypher-parser-0.6.2.tar.gz
tar zxvpf libcypher-parser-0.6.2.tar.gz
rm libcypher-parser-0.6.2.tar.gz
cd libcypher-parser-0.6.2
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
./configure --prefix=/usr/local CFLAGS='-fPIC -mmacosx-version-min=10.7' LDFLAGS='-mmacosx-version-min=10.7'
fi
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
./configure --prefix=/usr/local CFLAGS='-fPIC'
fi
make clean check
sudo make install
cd ..
rm -rf libcypher-parser-0.6.2