Installing software in your home directory: Difference between revisions

Jump to navigation Jump to search
m
Added note on java archive for the setrpaths.sh script.
No edit summary
m (Added note on java archive for the setrpaths.sh script.)
Line 57: Line 57:
== Installing binary packages == <!--T:15-->
== Installing binary packages == <!--T:15-->
If you install pre-compiled binaries in your home directory (for example [https://conda.io/miniconda.html Miniconda]) they may fail using errors such as <code>/lib64/libc.so.6: version `GLIBC_2.18' not found</code>. Often such binaries can be patched using our <code>setrpaths.sh</code> script, using the syntax <code>setrpaths.sh --path path [--add_origin]</code> where path refers to the directory where you installed that software. This script will make sure that the binaries use the correct interpreter, and search for the libraries they are dynamically linked to in the correct folder. The option <code>--add_origin</code> will also add $ORIGIN to the RUNPATH. This is sometimes helpful if the library cannot find other libraries in the same folder as itself.
If you install pre-compiled binaries in your home directory (for example [https://conda.io/miniconda.html Miniconda]) they may fail using errors such as <code>/lib64/libc.so.6: version `GLIBC_2.18' not found</code>. Often such binaries can be patched using our <code>setrpaths.sh</code> script, using the syntax <code>setrpaths.sh --path path [--add_origin]</code> where path refers to the directory where you installed that software. This script will make sure that the binaries use the correct interpreter, and search for the libraries they are dynamically linked to in the correct folder. The option <code>--add_origin</code> will also add $ORIGIN to the RUNPATH. This is sometimes helpful if the library cannot find other libraries in the same folder as itself.
Note:
* some java archive (<code>.jar</code> files) may contains shared objects that need to be patched. The <code>setrpaths.sh</code> script will extract and patch those objects and update the java archive.


== The Compute Canada software stack == <!--T:9-->
== The Compute Canada software stack == <!--T:9-->
cc_staff
284

edits

Navigation menu