Skip to content

Commit

Permalink
fix: Explictly add a XML::SAX parser
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Dec 13, 2024
1 parent fda5ea8 commit 0fe63e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions galacticusInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,10 @@ do
if [ ${modulesAtLevel[$i]} -le $installLevel ]; then
# Get the name of the module.
module=${modules[$i]}
# Ensure we have XML::SAX parsers set up.
if [[ $module == "XML::Validator::Schema" ]]; then
perl -MXML::SAX -e "XML::SAX->add_parser('XML::SAX::PurePerl')->save_parsers()" || true
fi
# Test if the module is already present.
echo "Testing for Perl module $module" >>$glcLogFile
if [[ $module == "Inline::C" ]]; then
Expand Down

0 comments on commit 0fe63e5

Please sign in to comment.