Also, are you doing it by hand? Have you looked at either pkgsrc or spark.io?
* https://en.wikipedia.org/wiki/Pkgsrc
* https://spack.io