Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BINFBINROOT Variable #29

Open
wmaguire-gladstone opened this issue Nov 11, 2019 · 0 comments
Open

BINFBINROOT Variable #29

wmaguire-gladstone opened this issue Nov 11, 2019 · 0 comments

Comments

@wmaguire-gladstone
Copy link

(defined($ENV{BINFBINROOT}) and length($ENV{BINFBINROOT}) >= 1) or confess "-----------\n[ERROR]: You need to define the UNIX system-wide environment variable 'BINFBINROOT' (for 'bioinformatics binary root') in your ~/.bashrc file before you can run Monkey.\nHere is an example of something you can add to the ~/.bashrc: export BINFBINROOT=/data/applications/2015_06/bin \n(Make sure to log out and log back in after you set that, or type 'source ~/.bashrc' to reload the bash config file). If you add that and it doesn't work, try checking the value of 'echo \$BINFBINROOT' and make sure that actually prints the proper path.\n------------ ";
our ($GLOBAL_BIN_DIR) = $ENV{BINFBINROOT}; # "/data/bin/2015_06"; # <== note: hard-coded, and NOT THE "monkey" /bin dir with the perl scripts in it! (That's the 'monkeyPoo' directory)
if (not -d $ENV{BINFBINROOT}) {
warn("[WARNING]: Your environment variable 'BINFBINROOT' (for 'bioinformatics binary root') was not set to a valid directory that already exists! You will need to properly set the 'BINFBINROOT' in your ~/.bashrc file. You can check to see what this variable is set to by typing 'echo \$BINFBINROOT' on the command line. It should be a directory with a bunch of programs in it. The current (probably incorrect) one is set to this value: <$GLOBAL_BIN_DIR> (which does not seem to be a valid directory)");
confess "Failure to find a valid directory with binaries in it, which we expect to be specified in the 'BINFBINROOT' environment variable.\nSee text above for details.\nIn other words---your environment variables in your ~/.bashrc are NOT set up correctly.";
}

I found that this BINFBINROOT (bioinformatics bin root) variable. We don't need to change the code, but this is referencing a system-wide environment variable that Alex had setup and informed users to add to their bashrc file. It's value was /data/bin/2015_06 but should now be set to /wynton/group/gladstone/third_party/monkey_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant