I can only give some global guidelines, because every environment is different:
* Read the file INSTALL.
* RoundCube is a web application, so you have to define a website for it.
* Create a database to store user-specific settings and add the right credentials in the file ./config/db.inc.php.
* Modify the settings in the file ./config/main.inc.php according to your enviroment.