guile path
This commit is contained in:
parent
ad1388da3d
commit
83ca113ef7
|
@ -32,7 +32,7 @@ GUILE_VERSION='2.2.0'
|
||||||
GUILE_HASH='c707b9cf6f97ecca3a4e3e704e62b83f95f1aec28ed1535f5d0a1d36af07a015'
|
GUILE_HASH='c707b9cf6f97ecca3a4e3e704e62b83f95f1aec28ed1535f5d0a1d36af07a015'
|
||||||
|
|
||||||
EIGHTSYNC_REPO="git://git.savannah.gnu.org/8sync.git"
|
EIGHTSYNC_REPO="git://git.savannah.gnu.org/8sync.git"
|
||||||
EIGHTSYNC_COMMIT=''
|
EIGHTSYNC_COMMIT='8cbb7f22227c0afdd3b0bd758ebec0efba2fa1e1'
|
||||||
|
|
||||||
function install_8sync {
|
function install_8sync {
|
||||||
apt-get -qy install flex libunistring-dev libgc-dev autoconf texinfo
|
apt-get -qy install flex libunistring-dev libgc-dev autoconf texinfo
|
||||||
|
@ -45,10 +45,11 @@ function install_8sync {
|
||||||
git_clone $EIGHTSYNC_REPO $INSTALL_DIR/eightsync
|
git_clone $EIGHTSYNC_REPO $INSTALL_DIR/eightsync
|
||||||
cd $INSTALL_DIR/eightsync
|
cd $INSTALL_DIR/eightsync
|
||||||
git checkout ${EIGHTSYNC_COMMIT} -b ${EIGHTSYNC_COMMIT}
|
git checkout ${EIGHTSYNC_COMMIT} -b ${EIGHTSYNC_COMMIT}
|
||||||
GUILE_PATH=/opt/guile-${GUILE_VERSION}
|
#GUILE_PATH=/opt/guile-${GUILE_VERSION}
|
||||||
PATH=${GUILE_PATH}/bin:$PATH
|
export GUILE_BASE_PATH=/opt/guile-${GUILE_VERSION}
|
||||||
export GUILE_CFLAGS="-I${GUILE_PATH}/include"
|
export GUILE_CFLAGS="-I${GUILE_BASE_PATH}/include"
|
||||||
export GUILE_LIBS="-L${GUILE_PATH}/lib"
|
export GUILE_LIBS="-L${GUILE_BASE_PATH}/lib -lguile -lqthreads -ldl -ltermcap -lsocket -lnsl -lm"
|
||||||
|
sed -i '/PKG_CHECK_MODULES/d' configure.ac
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
configure
|
configure
|
||||||
make
|
make
|
||||||
|
@ -84,6 +85,12 @@ function install_guile {
|
||||||
fi
|
fi
|
||||||
cd /
|
cd /
|
||||||
tar xvf $INSTALL_DIR/guile-${GUILE_VERSION}-pack-${GUILE_ARCH}-linux-gnu.tar.lz
|
tar xvf $INSTALL_DIR/guile-${GUILE_VERSION}-pack-${GUILE_ARCH}-linux-gnu.tar.lz
|
||||||
|
if [ ! -d /opt/guile-${GUILE_VERSION}/bin ]; then
|
||||||
|
echo 'Guile was not installed'
|
||||||
|
exit 825269
|
||||||
|
fi
|
||||||
|
echo "export GUILE_PATH=/opt/guile-${GUILE_VERSION}/bin" >> ~/.bashrc
|
||||||
|
echo 'export PATH=$PATH:$GUILE_PATH' >> ~/.bashrc
|
||||||
}
|
}
|
||||||
|
|
||||||
# NOTE: deliberately no exit 0
|
# NOTE: deliberately no exit 0
|
||||||
|
|
Loading…
Reference in New Issue