I'm planing on having several identical servers as PHP web application servers (among other things). Instead of having to install and compile software on each server individually, I've decided to compile and install everything on a deployment server and then use those files on all servers. To ease the deployment of all this files, I've decided to install everything shared into /cluster/sw directory. When compiling software I use --prefix=/cluster/sw and add /cluster/sw/lib into /etc/ld.so.config file. So far so good and most of the software I compile works. /cluster/sw is exported over NFS.
But just now, when trying to compile RabbitMQ client for PHP, I got an error, saying it cannot find some file. When I installed the depending library (Rabbit-C client) without the --prefix=/cluster/sw option, the PHP client compiled just nice.
What I'm asking is this: What else I need to do so I can compile and run everything from /cluster/sw shared directory?