Hi Jerry,
Are you confident that digest was installed properly?
I ask because I know at least Centos 6.3 doesn't ship (by default) with a gcc new enough to compile parts of Shiny's dependencies. I remember seeing a similar error on Centos and it ended up being related to problems compiling C++. Without seeing all of the commands you ran and their output I can't be confident this is exactly your problem, though. I just know that for the Shiny Server build we go through special hoops to use "scl" to make a newer gcc available [1][2].
I'm pretty sure Centos 7 has a suitable gcc by default, so if you can I recommend using that instead. Install procedure is identical.
Alan