Is there an equivalent of python's virtualenv for C/C++ programs?

后端 未结 4 1862
温柔的废话
温柔的废话 2021-02-13 00:58

I have to develop C++ programs that have to run on Scientific Linux 5 or 6. I would like to develop with QtCreator on Ubuntu which has much more recent libraries than the one fo

4条回答
  •  轮回少年
    2021-02-13 01:19

    Use debootstrap to create the chroot environment (or even install ubuntu on a separate partition). Mount your home dir with mount -o bind. Use schroot convenient chroot setup.

    http://manpages.ubuntu.com/manpages/precise/en/man8/debootstrap.8.html

    http://manpages.ubuntu.com/manpages/precise/en/man8/mount.8.html

    http://manpages.ubuntu.com/manpages/precise/en/man1/schroot.1.html

提交回复
热议问题