User Tools

Site Tools


installing_programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installing_programs [2020/07/13 18:48]
root
installing_programs [2022/01/26 10:39] (current)
root
Line 10: Line 10:
   * Sometimes we are a little behind. If you need the latest version you can ask me to upgrade. I usually check with people I know use the program to see if they are OK with upgrading.   * Sometimes we are a little behind. If you need the latest version you can ask me to upgrade. I usually check with people I know use the program to see if they are OK with upgrading.
  
-You are encouraged to install the software that you need into your own home directory (or possibly into a shared directory for the project you are working on). This gives you control of the versions of the software you are using, and when upgrades are made. This is good for reproducibility of results. You can use Conda to install specific versions of Python or R, and associated packages into your own home directory. You can also look at using a (Singularity) container to encapsulate a project or software pipeline - see [[Using Singularity]].+**Since we have moved to using Environment Modules on the cluster, the point about versions is less valid. Once a version of a piece of software is installed as a module it will not be removed, and will therefore remain available to you.** 
 + 
 +You are encouraged to install the software that you need into your own home directory (or possibly into a shared directory for the project you are working on). This gives you control of the versions of the software you are using, and when upgrades are made. This is good for reproducibility of results. You can use Conda to install specific versions of Python or R, and associated packages into your own home directory. Conda can also install many bioinformatics programs (e.g. STAR, bwa etc.) through the bioconda channel. You can also look at using a (Singularity) container to encapsulate a project or software pipeline - see [[Using Singularity]]
 + 
 + 
 +You can install miniconda by downloading the installation script here: https://docs.conda.io/en/latest/miniconda.html.
  
 === Installing Ubuntu Packages Locally === === Installing Ubuntu Packages Locally ===
Line 38: Line 43:
 make make
 </code> </code>
 +
 +This first style will build the application in the current directory. You can then run it from where it is, or copy it to a directory from where you usually run locally installed programs (a location that is in your PATH).
  
 <code> <code>
-./configure -prefix=$HOME+./configure --prefix=$HOME
 make install make install
 </code> </code>
 +
 +This second style will install the program into $HOME/bin. You can also give a prefix that points to a subdirectory of your home directory, e.g. $HOME/local. The program would then be installed to $HOME/local/bin. You can add this directory to your PATH for ease of running the program.
 +
 +If you do not specify the "--prefix" argument on the configure command the make install step will likely try to copy the program into /usr/local/bin. You do not have permission to write into /usr/local as a normal user.
  
 === Installing a Source Package === === Installing a Source Package ===
Line 60: Line 71:
   * Perl modules   * Perl modules
  
-  * If you have problems you can ask me (chris@statgen.ncsu.edu).+  * Sometimes R (or Python, or Perl) packages depend on software libraries that are not other R (or Python, or Perl) packages. 
 +    * In this case you can send e-mail to the system administrators to get the dependency installed using the OS package manager, or possibly from a direct download and install. 
 +    * If you have problems with an install you can ask send a help request to help@sciences.ncsu.edu). Send e-mail describing what you have tried and what happened.
  
 === Conda === === Conda ===
Line 72: Line 85:
 ... ...
 conda activate r-test conda activate r-test
 +</code>
 +
 +To install R 4.0.2 inside a conda environment you can use the command:
 +
 +<code>
 +conda install -c conda-forge r-base=4.0.2
 </code> </code>
  
installing_programs.1594680490.txt.gz · Last modified: 2020/07/13 18:48 by root