Skip to content

Linux Home Directory Program Installation

Michael R. Crusoe edited this page Feb 10, 2019 · 5 revisions

All of these requires ${HOME}/bin to be listed on your PATH

mkdir -p ${HOME}/bin
echo 'export PATH=${PATH}:${HOME}/bin' >> ${HOME}/.bashrc
source ${HOME}/.bashrc

Autotools

./configure --prefix=${HOME}
make
make install

Python

pip install --user ${PROGRAM}
#  or
./setup.py install --user

Node.js

http://stackoverflow.com/a/13021677

Ruby

gem install --user-install ${PROGRAM}

or

bundle install --path ${HOME}/.gem 

R

Home directory installs are a built-in fallback. #win

Perl

Use local::lib. Debian/Ubuntu users can sudo apt-get install liblocal-lib-perl first.

perl -Mlocal::lib >> ~/.bashrc
# then regular cpan commands

CMake

cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME  && cmake --build . --target install

Adapted from: http://stackoverflow.com/a/6003937

Last-ditch

udocker or plain docker

Others?

Please feel free to add to this page.