Dear Rita,
Some have mentioned using UTM, and another person mentioned the command line version of STRUCTURE. I actually have a UTM virtual machine running Ubuntu Linux that is preconfigured with the command line version of STRUCTURE. You can watch instructions for downloading my virtual machine and hooking it up to the UTM software here:
and then I have instructions for running command-line STRUCTURE using the virtual machine here:
Some notes:
1) This will run slowly, because it is running under emulation (not virtualization). In fact, it runs a lot slower than you expect (maybe 1/10th the speed you'd expect). But it works.
2) STRUCTURE, including the command-line version, is designed for Windows machines and other operating systems with an x86 architecture, and therefore I do not believe it will work natively on an ARM-based Mac (M1, M2, etc). I have a tutorial for installing command line STRUCTURE on an Ubuntu Linux machine, and it is not straightforward. You have to use an older version of Python, or something like that, and some other x86 libraries. These libraries will not work under ARM-based Linux, which is why you have to *emulate* an x86-based Linux machine, rather than an ARM-based Linux machine. Thus you're best off just using the virtual machine I already preconfigured by following my instructions above.
3) If you have an older Intel-based Mac, you can run a different version of my preconfigured Ubuntu Linux machine that runs using the *virtualization* (not emulation) software Virtualbox. This runs at near-native speeds. The instructions are here (BUT ONLY IF YOU HAVE AN OLDER MAC!)
I hope this is useful!
Sincerely,
Josh Banta