Last active
August 29, 2015 14:05
-
-
Save paulczar/aaeca3fd2a51b0972566 to your computer and use it in GitHub Desktop.
fix gecode for chefdk on ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL=http://ubuntu.cs.utah.edu/ubuntu/pool/universe/g/gecode | |
PACKAGES=(libboost1.54-dev_1.54.0-2ubuntu3_amd64.deb libgecode-dev_3.7.3-1_amd64.deb libgecodegist32_3.7.3-1_amd64.deb libgecodeflatzinc32_3.7.3-1_amd64.deb libgecode32_3.7.3-1_amd64.deb) | |
sudo apt-get -yq remove libgecode-dev | |
gem uninstall --force dep-selector-libgecode | |
for PKG in ${PACKAGES[@]} | |
do | |
echo $PKG | |
wget -O /tmp/$PKG $URL/$PKG | |
dpkg -i /tmp/$PKG | |
rm /tmp/$PKG | |
done | |
export USE_SYSTEM_GECODE=1 | |
gem install dep-selector-libgecode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment