For a university project I want to test a C++11 program on a 32-core machine. Unfortunately the machine has Ubuntu 12.04 with GCC 4.6 installed (we need GCC 4.7 because of some C++11 threading features). In such an environment I would normally run a chroot with a custom linux (say a debootstrap with Ubuntu 12.10). Since we don't get root access on the machine we can't use chroot.
So far I have prepared a run-time environment using debootstrap for our code, I compiled it in the debootstrap environemnt. Then copied it onto the server (using rsync). In order to run our C++ code I set the LD_LIBRARY_PATH to
and so far our code seems to run. I'm however stuck with our python code. It doesn't seem to be sufficient to set the paths manually.
Executing our script results in
ImportError: No module named _path
Is there an easier way to accomplish a "fake"-chroot than just overriding and creating environment variables?
Note I need python since we created a custom C++-Python module in order to run our tests. Maybe I should create two questions from this.