I want to load a module on a server using SSH
ssh server.university.com "module load moduleX"
but I'm getting the following error:
/usr/local/Modules/default/bin/modulecmd: error while loading shared` libraries: libtclx8.4.so: cannot open shared object file: No such file or directory
I tried the solutions of this thread:
How to use environment modules in a ssh command line?
That is,
ssh server.university.com "bash -lc 'module load moduleX'"
bash: module: command not found
and
ssh server.university.com "source /etc/profile; module load moduleX"
/usr/local/Modules/default/bin/modulecmd: error while loading shared libraries: libtclx8.4.so: cannot open shared object file: No such file or directory
I can load the module when I've already signed into the server. The reason for why I want to load it in the same command is that I in a pipeline want to do some estimations on the server, the rest on my computer.
Can someone please find a solution?
Here is the way I solved it:
It seems like the case I had a .bash_profile file prohibited the .profile file to be read. Took the .bash_profile file away and now it is working. I also added the following lines to the start of the .bashrc file which also was a part of the solution:
MODULE_VERSION=default
export MODULE_VERSION
LD_LIBRARY_PATH=/usr/local/pkg/tcltk/8.6.0/lib/:/usr/local/pkg/tcltk/8.6.0/lib/tclx8.4/
export LD_LIBRARY_PATH
Related
I've made an OOT module that uses a dynamic shared library.
The library files are located at "/home/username/intel/oneapi/ipp/2021.6.0/lib/intel64".
I've added to the module_folder/lib/CMakeFile.txt the line:
target_link_libraries(module_name -L/home/username/intel/oneapi/ipp/2021.6.0/lib/intel64 ipp_iw ippch ippcore ippcv ippdc ippi ipps ippvm)
to link all the libraries I need.
I've then used make && sudo make install to install the OOT module.
I've also added the line:
export LD_LIBRARY_PATH=~/intel/oneapi/ipp/2021.6.0/lib/intel64:$LD_LIBRARY_PATH to ~/.bashrc.
When I try to run a flow graph in gnuradio companion that uses the block from the OOT module i get the error: "ImportError: libippcore.so.10: cannot open shared object file: No such file or directory"
However if I try to run what gnuradio companion runs through the terminal:
/usr/bin/python3 -u /home/username/Documents/oot_test.py
I'm able to find the shared object file and it runs without any problems.
My question is how can i make gnuradio companion look for the shared object files in the given folder? (From my understanding the use of export LD_LIBRARY_PATH in .bashrc only executes when opening a terminal).
Classic problem of setting paths, especially LD_LIBRARY_PATH. In the shell you're manually starting python from, it's set correctly, the way you started GRC it's not.
Solution: Start GRC from the same shell, or make sure LD_LIBRARY_PATH is set for your whole session correctly, not just in a shell.
Upon running a command that requires mpi, it fails with
error while loading shared libraries: libmpi_cxx.so.40: cannot open shared object file: No such file or directory
I'm running it in a conda environment pytorch_p36.
However, I checked that libmpi_cxx.so.40 is present in that same conda environment.
Command
locate libmpi_cxx
Output
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so.40
/home/ubuntu/anaconda3/envs/pytorch_p36/lib/libmpi_cxx.so.40.20.1
Is there some issue with PATH or LD_LIBRARY_PATH?
If so what? How can I make sure anaconda environment libs are picked up by the 2 environment vars?
Try this:
LD_LIBRARY_PATH=$CONDA_PREFIX/lib [[rest of your command, e.g. python foo.py]]
I am trying to run tor on Ubuntu with terminal (using SSH). Whenever I am trying to open the executable file I am getting this error:
./tor: error while loading shared libraries: libevent-2.1.so.7:
cannot open shared object file: No such file or directory
I have tried to re-install the packages and nothing going well, also tried to link the library and that also did nothing. Whenever I am trying to create another executable file it runs okay, the problem is only with this tor file.
Further details:
$ ldd ./tor | grep libevent
libevent-2.1.so.7 => not found
$ ls -l /usr/lib/libevent*
No such file or directory
Can anyone guide me on how to solve it? Any help would be really appreciated.
When I tried to use dexdump, but the so file could not be loaded, I registered the path of the file as an environment variable, but the same error occurred no matter how many times I repeated it. What should I do?
muang#ubuntu:~/Desktop/dataset/dexdump2$
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/Desktop/dataset/dexdump2/obj
muang#ubuntu:~/Desktop/dataset/dexdump2$ export LD_LIBRARY_PATH
muang#ubuntu:~/Desktop/dataset/dexdump2$ echo $LD_LIBRARY_PATH
:/Desktop/dataset/dexdump2/obj
muang#ubuntu:~/Desktop/dataset/dexdump2$ ./dexdump2
./dexdump2: error while loading shared libraries: libdexfile.so: cannot open shared object file: No such file or directory
The above is what it appeared when running on Ubuntu Terminal.
If you know how to solve it, please reply.
i just installed Rstudio and wanted some packaes to use, im using linux mint, when i tried to install the xlsx package give an error related to rjava, so i installed the rjava package, but it cant be loaded, instead i get this error:
>library("rJava", lib.loc="/usr/lib/R/site-library")
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/usr/lib/R/site-
library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘rJava’
>detach("package:rJava", unload=TRUE)
Error in detach("package:rJava", unload = TRUE) : invalid 'name'
argument
I tried R CMD javareconf several times, but still no clue of the problem
You may want to locate the library, you can use the whereis command or look into standard path which are :
/usr/lib/jvm/java-7-oracle/lib/amd64
/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server
Once it's located, copy its folder's path.
Then add it to the LD_LIBRARY_PATH environment variable located in ~/.profile (create the file if needed).
export LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/lib/amd64:/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server
If you already have a LD_LIBRARY_PATH set you may want to keep it, so echo $LD_LIBRARY_PATH and add its content into the ~/.profile file.
You can reboot to reload the .profile, or you can just source ~/.profile form a terminal.
To conclude just sudo R CMD javareconf.