I'm running r8s as part of the CAFE manual to create an ultrametric tree for CAFE input.
I need to run r8s using a Unix operating system, but the download only comes with an OS X executable file.
After adding to the path, when I run the r8s command, my error is
cannot execute binary file
I have added executable permission of the file, which is a potential source of this error.
Additionally, the manual says that after I untar the file,
This sets up a subdirectory called dist which has four subdirectories, bin, sample, doc, and src.
In the 1.8 version of r8s, the dist directory opens up but the four subdirectories are not present. I have found answers online for solving this problem, but they rely on the subdirectories, which just flat out aren't there.
The manual speaks on the issue here as well,
If you are working on another UNIX operating system (so the OS X executable is obviously useless!), or if you are on OS X but wish to compile the program from its source code, a makefile is included that works on Linux machines and OS X (assuming you have installed FORTRAN correctly). There are known incompatibilities with some other compiler's libraries or headers, most of which are easy to resolve. You should own a copy of Numerical Recipes in C (Press et al. 1992 or more recent versions) to compile and run from source.
But I am having difficulty deciphering this.
Thank you.
cd
into the directory and typemake
?That general term encompasses different types of unix OS's. A unix binary is not necessarily be going to be compatible across the spectrum of unix distributions out there. macOS, though based on BSD-unix has its own specific libraries/modifications. So it is unlikely that a binary made for macOS will work on a non-macOS system. You will need to find source code and try to compile it yourself (if that is a possibility).
Looks like the source for CAFE is available here (if that is the same CAFE you are using).