chm*_*ike 11 c c++ virtualenv
我必须开发必须在Scientific Linux 5或6上运行的C++程序.我想在Ubuntu上使用QtCreator进行开发,它具有比SCL6上更新的库.
是否有相当于Python的C/C++程序的virtualenv?
使用具有所有必需库和依赖项的chroot可以完成这项工作.这存在吗?有关使用chroot的信息,请参见http://rcrowley.org/articles/dependencies.html.
使用 debootstrap 创建 chroot 环境(甚至在单独的分区上安装 ubuntu)。使用 mount -o bind 挂载您的主目录。使用 schroot 方便的 chroot 设置。
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