Dependencies - nickcounts/MDRT GitHub Wiki
MDRT Requires a few external tools for best performance
GREP
MDRT uses grep (with a fixed string search) to split up .delim files for parsing. The current version of MDRT does not have provisions for importing .delim files on Windows machines without grep.
GREP - On OSX or Linux:
On OS X and some Linux Distributions, the grep
that ships is significantly slower than the GNU grep. MDRT uses grep (with a fixed string search) to split up .delim files for parsing. When processing small files (about 800 MB or smaller) this is not time prohibitive. When files get much larger, the overhead of grep on OS X and BSD (same binary) becomes a significant challenge.
MDRT looks for grep in /usr/local/bin to find GNU grep and uses it preferentially without relying on symlinks.
We recommend installing GNU grep on your machine. To check your grep implementation, you can use grep --version
. You want output like the following:
$ grep --version
grep (GNU grep) 3.1
Packaged by Homebrew
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
External references for installing GNU grep on OS X
- https://stackoverflow.com/questions/33231370/installed-gnu-grep-on-osx-but-cant-use
- https://stackoverflow.com/questions/13913014/grepping-a-huge-file-80gb-any-way-to-speed-it-up#13913220
- https://apple.stackexchange.com/questions/193288/how-to-install-and-use-gnu-grep-in-osx
Recommended Installation Steps on OS X:
brew install pcre
brew install grep --with-default-names
which grep
grep --version
PERL
MDRT uses a perl script to do a line/word count of .delim files. This is significantly faster than inbuilt MATLAB commands as of r2014b. On *nix systems, MDRT makes use of wc
. Windows machines don't ship with the wc
utility, and require PERL. Most Windows machines should have PERL available.