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

Cannot find /usr/local/cpanminus/bin/cpanm #125

Closed
ZQyou opened this issue Nov 20, 2019 · 5 comments
Closed

Cannot find /usr/local/cpanminus/bin/cpanm #125

ZQyou opened this issue Nov 20, 2019 · 5 comments
Labels

Comments

@ZQyou
Copy link

ZQyou commented Nov 20, 2019

The version I used:

$ git describe --tags
v0.7.2

The issue I ran into:

$ buildtest -h
sh: /usr/local/cpanminus/bin/cpanm: No such file or directory
sh: /usr/local/cpanminus/bin/cpanm: No such file or directory
/usr/local/lmod/lmod/modulefiles/Core directory does not exist specified in BUILDTEST_MODULEPATH

I did not have any problem using buildtest module few months ago.

@issue-label-bot issue-label-bot bot added the bug label Nov 20, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.65. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@shahzebsiddiqui
Copy link
Member

hi @ZQyou
Does your system have Lmod.

Can you run rpm -q lmod

Also can you give me output of echo $MODULEPATH. It may be that if directory doesn't exist buildtest is exiting immediately because of invalid module tree.

@ZQyou
Copy link
Author

ZQyou commented Nov 20, 2019

Our system has Lmod.
Here is the output of $MODULEPATH

/apps/lmodfiles/MPI/intel/18.0/mvapich2/2.3.2:/apps/lmodfiles/Compiler/intel/18.0:/apps/lmodfiles/Linux:/apps/lmodfiles/Core:/apps/lmod/lmod/modulefiles/Core

I tried:

$ BUILDTEST_MODULEPATH=/apps/lmodfiles/Core buildtest -h
sh: /usr/local/cpanminus/bin/cpanm: No such file or directory
sh: /usr/local/cpanminus/bin/cpanm: No such file or directory
/usr/local/lmod/lmod/modulefiles/Core directory does not exist specified in BUILDTEST_MODULEPATH

Do I need to have cpanm to use buildtest?

@shahzebsiddiqui
Copy link
Member

Interesting I think i know the issue. The directory /apps/lmod/lmod/modulefiles/Core is suppose to mimic /usr/local/lmod/lmod/modulefiles/Core. So to get around this issue you can do the following to add trees:

buildtest module tree -a /apps/lmodFiles/Core. The buildtest module tree will update BUILDTEST_MODULEPATH. The variable BUILDTEST_MODULEPATH should be set to the root of module tree that would want set. By default it is reading MODULEPATH

Please feel free to join slack if you want to chat.

@ZQyou
Copy link
Author

ZQyou commented Nov 20, 2019

It works after updating the configuration.

@ZQyou ZQyou closed this as completed Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants