-bash: module: command not found while loading module - linux

I am using following command to load module but it is not working.
module load $SOME_PATH
but i am getting error -bash: module: command not found .Do i need to isntall something using sudo apt-get install?

You need to have the module executable for which there seems to be no ready-made package. The documentation suggests that you build from source.
When you've built it, make sure that you are either in the directory where your module file is, or that it's in your $PATH.
Here are the docs

Related

Plowshare with disabled JS interpreter

I try to use plowshare to download files with command line but on ubuntu I got this error: "Use of Javascript interpreter is disabled in debian for security."
I've found that I should add environmental variable: "PLOWSHARE_DEBIAN_JS=yes"
I added it to ".bashrc" in home directory, with source after that but it doesn't work, i can't find anything what can help, anyone know how can i enable JS?
Not sure if you found a resolve. But I fixed this issue by command export PLOWSHARE_DEBIAN_JS=yes then you might encounter another issue like "Javascript interpreter not found. Please install one" just install nodejs sudo apt-get install nodejs

wkhtmltopdf: No such file or directory [ Closed ]

I installed wkhtmltopdf from the following code
sudo apt-get install wkhtmltopdf
But when I am creating PDF then it is generating following error
Error: /bin/bash: /usr/bin/wkhtmltopdf: No such file or directory
I think the correct path would be /usr/local/bin/wkhtmltopdf. You can get it by which wkhtmltopdf command.
It appears that when you're trying to run wkhtmltopdf, it's not finding the program to execute.
You can try to locate it with locate wkhtmltopdf. That should return the path to the executable. If that doesn't return a path, you can use this (but it will take longer): find / -name wkhtmltopdf 2>/dev/null.
Once you've got the path of the executable, make sure to add it to your $PATH, so it can be called from anywhere on the command line. See this post for instructions on how to add to the path variable.
After a long time facing this issue I decided to replace it by another converter.
I removed wkhtmltopdf and I installed html-pdf converter and then PDF file created successfullu

Helpp for install cstore_fdw

I'm actually trying to install sctore_fdw but I just have a little question for the installation.
I follow a tutorial and it is asking to do this :
you need to include the pg_config directory path in your make command
This is my pg_config path:
/usr/bin/pg_config
I have some difficulty with Linux and specifically with the make command, so what i'm supposed to do?
Have you tried this like the instructions specify (ref: https://github.com/citusdata/cstore_fdw)?
PATH=/usr/bin/:$PATH make
sudo PATH=/usr/bin/:$PATH make install

Switch to different version of Perl - modules version

I am trying to use a new version of perl - 5.18.1 and I get an error for one of the modules I am trying to use:
/usr/local/perl-5.18.1/bin/perl: symbol lookup error:
/home/riskprod/bin/lib/perl5/x86_64-linux-thread-multi/auto/Cwd/Cwd.so:
undefined symbol: Perl_Tstack_sp_ptr
I have cpan and use it for my modules. From my research it looks like the reason for the error is that it was built using different version of perl.
How can I change the version of the build? What would be the proper solution to this problem?
Some details
Here is what I have in bash_profile:
export PERL_LOCAL_LIB_ROOT="/home/riskprod/perl5:$PERL_LOCAL_LIB_ROOT";
export PERL_MB_OPT="--install_base "/home/riskprod/perl5"";
export PERL_MM_OPT="INSTALL_BASE=/home/riskprod/perl5";
export PERL5LIB="/home/riskprod/perl5/lib/perl5:$PERL5LIB";
export PATH="/home/riskprod/perl5/bin:$PATH";
Here is how I ran the cpan:
/usr/local/perl-5.18.1/bin/perl -MCPAN -e shell
I did this to reinstall:
force install Cwd
The module you are trying to use was compiled against a different build of Perl. It's not clear what you did for that to happen. Maybe you set PERL5LIB to point to an directory into which modules were installed using INSTALL_BASE? (Damn you, INSTALL_BASE!) You just need to reinstall the module, but it would also help to stop looking in whatever directory contains the that module.

Cannot run Code::Blocks: libwx_gtk2u-2.8.so.0 not found

I am trying to install Code::Blocks 10.05 from (non-SVN) sources (codeblocks-10.05-src.tar.bz2). My OS is Ubuntu 11.04. I needed to download and install wxWidgets first (I now have wxGTK-2.8.12), which seemed to work. I compiled it according to these instructions:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
Then I configured C::B with
./configure --with-wx-config=/opt/wx/2.8/bin/wx-config
and ran
export LDFLAGS="-Wl,-R /opt/wx/2.8/lib"
make
sudo -i
make install
When trying to run C::B, I get the following error:
codeblocks: error while loading shared libraries: libwx_gtk2u-2.8.so.0: cannot open shared object file: No such file or directory
The same question was asked here: error while loading shared libraries, but the suggested solution (namely adding the wxWidgets config to the options passed to configure) didn't work for me.
The output of wx-config --prefix is /opt/wx/2.8,
The output of wx-config --libs is -L/opt/wx/2.8/lib -pthread -lwx_gtk2u-2.8,
and that of which wx-config is /opt/wx/2.8/bin/wx-config.
I looked for the library and found /opt/wx/lib/libwx_gtk2u-2.8.so.0 to be a link to libwx_gtk2u-2.8.so.0.8.0 in the same folder.
What might be wrong here?
The problem is that the program cannot find the WX widgets libraries at run time. You will need to set your LD_LIBRARY_PATH variable to include the location of wxWidgets like this:
LD_LIBRARY_PATH=/opt/wx/2.8/lib ./codeblocks
The reason why its failing is because you compiled codeblocks against wxWidgets found in /opt/ and not the one installed in /usr/; the program doesn't know to look in /opt for the wx libraries.
Probably the easiest way to get code::blocks up and running on Ubuntu is to just install it via the Synaptic Package Manager. Just type in codeblocks into 'Quick search'. Find codeblocks on the list and just right-click to mark for install. Any dependencies and missing libraries needed will automatically be handled and installed by Synaptic as necessary.
If you're interested in trying the C::B nightly builds on Ubuntu then you'll want to checkout Jens' unofficial debian-repository here.
You can visit Why do I have to define LD_LIBRARY_PATH with an export every time I run my application? for a more generic case. For a particular case like yours you can follow the below given steps
If you had installed wxGTK then you would see the file in /usr/local/lib. You would get this error when the the above path is not as part of the makefile. I received this error while starting wxFormBuilder after building from source on CentOS. There are 2 approaches.
Approach 1: Putting the path in .bashrc
gedit /home/{your-username}/.bashrc
Then after the line # User specific aliases and functions paste the following
export $LD_LIBRARY_PATH=/usr/local/lib.
This would work for fine but for the current login, but for other users like root you might have to do the same in the respective .bashrc files.
Approach 2: Creating your own conf files
cd /etc/ld.so.conf.d
gedit wxformbuilder.conf
Give the path /usr/local/lib and save the file.
ldconfig (To update the library path).

Resources