I'm trying to install caffe deep learning library on my university cluster grid running on Debian. The grid has some preinstalled modules, such as python, CUDA, compilers etc. The problem is, some of those are not really recent and some caffe dependencies are missing.
Caffe has following installation instructions for its dependencies:
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo I cannot install any of it on the grid. Is it somehow possible to build the framework on system with root privileges and then copy then copy it over? I know about
LD_LIBRARY_PATH but this would mean I would have to copy over huge amount of libraries which might not even be compatible with grid architecture. On the grid I can use
fakeroot even though I'm not sure if it would help.
Is there some way to create virtual environment so I can install all dependencies without actual root privileges on the grid. Or create virtual environment on local machine with root, build everything and copy it to grid? The framework doesn't need the root to run.
PS: While I mentioned caffe, this question is IMO universally applicable to any software installation on root restricted system.