I'm working on a data science project about how often each axiom is used in
set.mm and
iset.mm, so I decided to install a local copy of the site so I could scrape the copy without disrupting the live site, but I've faced three distinct issues in trying to follow the home page's instructions:
1. I can't run install.sh in metamathsite.zip because there
is no install.sh in there, so it naturally throws this error:
./install.sh : The term './install.sh' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ./install.sh
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./install.sh:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Also, the zip is actually named "metamath-website-seed-main.zip". Is the link pointing to the wrong zip?
2. rsync fails and throws
this error:
$ rsync -vrltS -z --delete --delete-after rsync://
rsync.metamath.org/metamath .
rsync: [Receiver] failed to connect to
rsync.metamath.org (98.118.4.152): Connection timed out (116)
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
I don't know how rsync works, so this one might just be on my end.
3. Mercifully, wget
does work, but it turns out there are two pairs of theorems that have identical names up to capitalization ("elOLD" and "elold"; "fmptdf" and "fmptdF"), and when downloading their pages, the latter of each pair gets overwritten by the former. I can manually redownload the missing pages, but we should probably forbid such name collisions going forward.