Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
50dbd7c1
Commit
50dbd7c1
authored
Jul 19, 2019
by
SOLIMAN Sylvain
Browse files
install glucose like all binaries
parent
2d230294
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
50dbd7c1
...
...
@@ -110,34 +110,27 @@ else
fi
### Glucose
if
hash
glucose 2>/dev/null
&&
[[
!
"
$(
glucose
--version
2>/dev/null
)
"
==
*
4.
0
*
]]
if
hash
glucose 2>/dev/null
&&
[[
!
"
$(
glucose
--version
2>/dev/null
)
"
==
*
4.
*
]]
then
echo
"Removing old glucose version"
echo
"(at least make sure it does not hide a more recent one)"
rm
-i
$(
which glucose
)
fi
glucose_url
=
http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-4.1.tgz
glucose_archive
=
${
glucose_url
##*/
}
glucose_dir
=
${
glucose_archive
%%.tgz
}
pushd
modules/glucose/
# we need sources even if glucose is already installed
if
[[
!
-d
glucose-syrup
]]
if
!
hash
glucose 2>/dev/null
||
[[
"
$(
glucose
--version
2>/dev/null
)
"
!=
*
4.
*
]]
then
if
[[
!
-d
$glucose_archive
]]
glucose_url
=
http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-4.1.tgz
glucose_archive
=
${
glucose_url
##*/
}
glucose_dir
=
${
glucose_archive
%%.tgz
}
if
[[
!
-r
$glucose_archive
]]
then
curl
-fsSLO
$glucose_url
fi
tar
-xf
$glucose_archive
rm
-Rf
$glucose_archive
mv
$glucose_dir
glucose-syrup
fi
if
!
hash
glucose 2>/dev/null
||
[[
!
"
$(
glucose
--version
2>/dev/null
)
"
==
*
4.0
*
]]
then
pushd
glucose-syrup/simp
pushd
$glucose_dir
/simp
make
sudo cp
glucose /usr/local/bin/glucose
popd
fi
# keep glucose sources, used for module/glucose!
popd
# Does not work on MacOS?
### QMaxSat solver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment