Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
08-03-2012, 03:27 AM
#1
Member
Registered: Jun 2012
Posts: 56
Rep:
bash: module: command not found
Hi,
I installed Environment Modules on my Debian ( with this tutorial:
http://nickgeoghegan.net/linux/insta...onment-modules )
But i can't use the module command.
Code:
root@test:/etc/profile.d# module
-bash: module: command not found
Do i need to add something to $PATH or... ??
08-03-2012, 03:33 AM
#2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
First, find the executable file "module", and try running it with an absolute pathname.
eg:
find / -name "module"
suppose it shows up in /usr/bin: use the command:
/usr/bin/module
If that works, then add /usr/bin to your $PATH
08-03-2012, 03:46 AM
#3
Member
Registered: Jun 2012
Posts: 56
Original Poster
Rep:
Quote:
Originally Posted by
pixellany
First, find the executable file "module", and try running it with an absolute pathname.
eg:
find / -name "module"
suppose it shows up in /usr/bin: use the command:
/usr/bin/module
If that works, then add /usr/bin to your $PATH
I get the following:
Code:
root@test:/# find -name "module"
./var/software/modules-3.2.9/testsuite/modulefiles/conflict/module
./var/software/modules-3.2.9/testsuite/modulefiles/prereq/module
./var/software/modules-3.2.9/testsuite/modulefiles/module
./sys/bus/platform/drivers/dcdbas/module
./sys/bus/platform/drivers/pcspkr/module
./sys/bus/pci/drivers/ehci_hcd/module
./sys/bus/pci/drivers/bnx2/module
./sys/bus/pci/drivers/mpt2sas/module
./sys/bus/pci/drivers/ohci_hcd/module
./sys/bus/pci/drivers/ahci/module
./sys/bus/pci/drivers/piix4_smbus/module
./sys/bus/serio/drivers/serio_raw/module
./sys/bus/serio/drivers/psmouse/module
./sys/bus/usb/drivers/usbfs/module
./sys/bus/usb/drivers/hub/module
./sys/bus/usb/drivers/usb/module
./sys/bus/usb/drivers/hiddev/module
./sys/bus/usb/drivers/usbhid/module
./sys/bus/hid/drivers/generic-usb/module
./sys/bus/i2c/drivers/dummy/module
./sys/module
But none of the above makes it work.
08-03-2012, 03:53 AM
#4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
You missed the "/" in the command. As you show it, find will only search the current directory
Do this:
find / -name "module"
08-03-2012, 03:55 AM
#5
Member
Registered: Jun 2012
Posts: 56
Original Poster
Rep:
Quote:
Originally Posted by
pixellany
You missed the "/" in the command. As you show it, find will only search the current directory
Do this:
find / -name "module"
I was in the root directory so it gives the same result
08-03-2012, 03:55 AM
#6
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
Quote:
Originally Posted by
pixellany
You missed the "/" in the command. As you show it, find will only search the current directory
Do this:
find / -name "module"
The OP's prompt shows that their current directory is /.
08-03-2012, 04:06 AM
#7
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
Quote:
Originally Posted by
Nylex
The OP's prompt shows that their current directory is /.
touche!! (but I always specify the path when using find....)
In that case, maybe try:
find / -name "*module*"
OR
find / -name "*mod*"
08-03-2012, 04:24 AM
#8
Member
Registered: Jun 2012
Posts: 56
Original Poster
Rep:
In the directory were it was installed there's 'modulecmd' which does the same as "module" should do
Code:
root@test:/var/software/modules-3.2.9# modulecmd bash
cmdModule.c(166):ERROR:11: Usage is 'module command [arguments ...] '
Modules Release 3.2.9 2011-11-24 (Copyright GNU GPL v2 1991):
Usage: module [ switches ] [ subcommand ] [subcommand-args ]
Switches:
-H|--help this usage info
-V|--version modules version & configuration options
...
08-03-2012, 04:26 AM
#9
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
Then I guess "module" is usually a symbolic link to "modulecmd".
08-03-2012, 11:38 AM
#10
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
Quote:
Originally Posted by
Reignfire
In the directory were it was installed there's 'modulecmd' which does the same as "module" should do
So--put that in $PATH---or just make a soft link to someplace that's already in $PATH
All times are GMT -5. The time now is 04:46 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News