source: other-projects/is-sheet-music-encore/trunk/SETUP.bash@ 32932

Last change on this file since 32932 was 32932, checked in by davidb, 20 months ago

Update after testing

File size: 1.5 KB
Line 
1#export PATH=`pwd`/venv/bin/:$PATH
2#export PERL5LIB=`pwd`/venv/lib/perl5
3
4export IS_SHEET_MUSIC_ENCORE_HOME=`pwd`
5
6echo "Setting:"
7echo " IS_SHEET_MUSIC_ENCORE_HOME=$IS_SHEET_MUSIC_ENCORE_HOME"
8
9if [ ! -d "$IS_SHEET_MUSIC_ENCORE_HOME/perl-relocatable" ] ; then
10 echo "Installing a relocatable perl in user-space"
11 curl -sSL https://git.io/perl-install | bash -s "$IS_SHEET_MUSIC_ENCORE_HOME/perl-relocatable"
12fi
13
14export PATH="$IS_SHEET_MUSIC_ENCORE_HOME/perl-relocatable/bin/:$PATH"
15echo " PATH to include 'perl-relocatable'/bin"
16
17
18if [ -d "$IS_SHEET_MUSIC_ENCORE_HOME/openssl" ] ; then
19 export CFLAGS="-I$IS_SHEET_MUSIC_ENCORE_HOME/openssl/include"
20 export CXXFLAGS="-I$IS_SHEET_MUSIC_ENCORE_HOME/openssl/include"
21 export LDFLAGS="-L$IS_SHEET_MUSIC_ENCORE_HOME/openssl/lib"
22
23 export LD_LIBRARY_PATH="$IS_SHEET_MUSIC_ENCORE_HOME/openssl/lib"
24
25 echo " CFLAGS, CXXFLAGS, LDFLAGS, LD_LIBRARY_PATH"
26fi
27
28#echo "Set:"
29#echo " PERL5LIB"
30# echo "Updated PATH"
31#else
32#echo "Failed to find 'perl-relocatable' directory 1>&2"
33#fi
34
35# perl Makefile.PL PREFIX=/home/davidb/research/code/is-sheet-music2/venv/ LDDLFLAGS="$LDFLAGS -shared -L/usr/local/lib -fstack-protector-strong"
36
37
38# CONFIG_ARGS=$( cat <<_EOF_ | tr '\n' ' ' INC=-I/usr/local/opt/openssl/include LDDLFLAGS="-bundle -undefined dynamic_lookup -fstack-protector-strong -L/usr/local/opt/openssl/lib" LD="env MACOSX_DEPLOYMENT_TARGET=10.11 cc" LDFLAGS="-fstack-protector-strong -L/usr/local/opt/openssl/lib" _EOF_ ) cpanm Net::SSLeay --configure-args "$CONFIG_ARGS" --interactive --verbose
39
40
Note: See TracBrowser for help on using the repository browser.