Closed pcarbo closed 8 years ago
Hi Peter,
a while ago, I made a wiki page on this topic. At the time, I didn't have to use Homebrew.
As I don't own any computer with Mac OS, I can't test thoroughly, especially when the versions of Mac OS change.
About zcmp, can you look in Homebrew if you can install Zutils? Otherwise, it should be possible to install it from the source code. If it's too difficult, then you can indeed change the source code of all bash scripts implementing a test.
Tim,
I did not see your Wiki page for Mac OS X! My steps are similar, but I find that Homebrew makes the whole installation process much simpler. (And more recent editions of OS X have made installation of libraries more complicated due to stronger restrictions on edit permissions.) Would it be okay if I updated that Wiki page?
On Mac OS X (version 10.11.6), zcmp is available at '/usr/bin/zcmp'. The problem is that the script uses the sh
shell, which does not seem to be fully supported on Mac OS X. It is a strange problem that I'm not sure how to fix, and I was unable to find any help from Google searches. I suspect that very few people use zcmp
on Mac. So it seems like the simpler solution would be to use cmp
instead of zcmp
.
Peter
Yes, you can modify the page.
Ok, then you can convert all usages of zcmp
into usages of cmp
. The files to be compared are not very big, so it shouldn't be such a problem to decompress-recompress them.
Tim, once you have a chance, please merge branch no-zcmp
with master
. (Or, if you prefer, I can do the merge.) To merge, I think you want to do something like this:
git remote update origin
git fetch origin
To see the differences:
git diff --stat no-zcmp..master
git diff no-zcmp..master
Then do the merge:
git checkout master
git merge no-zcmp
Tim, I've updated the Wiki.
All the edits seem fine to me. I will let you do the merge. Can you also update the version to 1.3.2, tag it, and push the tag to GitHub so that it appears here?
I merged to master, and added the v1.3.2 tag:
https://github.com/timflutre/eqtlbma/releases
Does that look okay?
looks good, thank!
Hi Tim,
I see that you have made some effort to make eqtlbma work on Mac OS X. I wanted to share with you my experiences installing eqtlbma on Mac OS X and perhaps we can provide some Mac-specific installation instructions for others on the Wiki.
I've found that Homebrew is key to making the installation process smoother, especially due to the constraints imposed by more recent editions of OS X (e.g., El Capitan). However, one should keep in mind that Homebrew seems to be in flux, so the exact steps may differ depending on the version of Homebrew used.
Here are the steps I took:
xcode-select --install
. I'm using XCode 8.0.brew install homebrew/versions/gcc48
brew install homebrew/versions/gsl1
brew install homebrew/dupes/zlib
The only issue I've found so far is against with the tests. It is a strange problem in which
zcmp
does not work becausesh
does not seem to be supported. One solution is simply to usecmp
instead ofzcmp
in the bash scripts. For example, intest_basic.bash
, writePerhaps you can find a more elegant (or more compact) solution, but this works for me.
Peter