You should think about using containers for this.. much better. It's what apps crave. Their own world of deps specific to the app and nothing else..
Sometimes they even give you a container, or a build script for one. Makes life much easier and safer. You don't want those deps on your main machine running wild anyway..