linux – module: command not found

Linux – Module: Command Not Found

linux – module: command not found

I attempted to breed it and it seems that for me sourcing

n

supply /and so on/profile.d/modules.shn

n

in th .sh script helps for bash and related. For csh and tcsh, you need to add

n

supply /and so on/profile.d/modules.cshn

n

to the script. Note, that this line should come first after which the

n

module load foon

n

line.

I bought right here as I used to be looking for methods to put in a number of php variations in CentOS7 and https://blog.remirepo.net/post/2019/05/22/PHP-7.4-as-Software-Collection was one of many articles I attempted to comply with and encountered the identical module: command not found problem.

n

Sourcing /and so on/profile by way of command:

n

. /and so on/profile

n

appears to make the module load work.

n

Credits to fadishei in https://forums.fedoraforum.org/showthread.php?262708-module-command-not-found

n

To make the model of php (e.g. php7.4) persist, append the next to file /and so on/profile.d/customized.sh

n

supply /and so on/profile.d/modules.shnmodule load php74n

n

Reboot and run the php --version to cross-check that php 7.4 is the present model put in.

linux – module: command not found

I feel that you need to put this in your script to outline the module command:

n

module () {n    eval `/usr/bin/modulecmd bash $*`n}n

Related posts on Linux :

Leave a Reply

Your email address will not be published. Required fields are marked *