The Roundcube version (0.3.1) in Debian Squeeze is just too outdated. To create a new Debian package, using the latest version of Roundcube, is fairly easy.
Download the latest source (currently 0.8.1) from http://www.roundcube.net/download, and put the TAR image (roundcubemail-0.8.1.tar.gz) in /usr/src.
Now execute at the command line
$ cd /usr/src $ apt-get install devscripts build-essential $ apt-get source roundcube $ apt-get build-dep roundcube $ cd roundcube-0.3.1 $ uupdate ../roundcubemail-0.8.1.tar.gz $ cd ../roundcube-0.8.1 $ vim debian/rules # comment a few 'rm' statements $ dpkg-buildpackage -b -us -uc -nc
The newly created packages are now in /usr/src.
$ ls *.deb roundcube_0.8.1-1_all.deb roundcube-mysql_0.8.1-1_all.deb roundcube-sqlite_0.8.1-1_all.deb roundcube-core_0.8.1-1_all.deb roundcube-pgsql_0.8.1-1_all.deb
You will have to upgrade the MySQL schema, if you use MySQL to save Roundcube data.
The upgrade SQL statements are located in /usr/src/roundcube-0.8.1/SQL.
$ mysql -uroundcube -p roundcube < mysql.update.sql
Depending on how old your previous Roundcube installation was, you will have to disable a few SQL in the mysql.upgrade.sql file
Hi.
Great tutorial. I just follow your instruction and it works, but when i try to go to the roundcube web page like http://xxx.xxx.xxx.xxx/roundcube
I get this error: SERVICE CURRENTLY NOT AVAILABLE!
Error No. [520]
This is mi error log:
[24-Oct-2012 11:04:51 -0500]: PHP Error: Failed to load plugin file /var/lib/roundcube/plugins/plugin_manager/plugin_manager.php in /usr/share/roundcube/program/include/rcube_plugin_api.php on line 202 (GET /roundcube/)
[24-Oct-2012 11:04:51 -0500]: PHP Error: Failed to load plugin file /var/lib/roundcube/plugins/jqueryui/jqueryui.php in /usr/share/roundcube/program/include/rcube_plugin_api.php on line 202 (GET /roundcube/)
Do you have any idea what am doing wrong ?
Thanks
Hi,
Do you have jquery installed (regular Debian package)?
Cheers,
Johnny
Hi thanks for the reply.
Now its working, i just copy the plugin folder from source code and it works.
Thanks and excellent tutorial.
when i am doing dpkg-buildpackage -b -us -uc -nc
i get the following …. can u hel me please
cd . && QUILT_PATCHES=/usr/src/roundcube-0.8.1/debian/patches quilt –quiltrc /dev/null push -a || test $? = 2
Applying patch dbconfig-common_support.patch
patching file config/db.inc.php.dist
Hunk #1 FAILED at 14.
1 out of 1 hunk FAILED — rejects in file config/db.inc.php.dist
Patch dbconfig-common_support.patch does not apply (enforce with -f)
make: *** [debian/stamp-patched] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Hi Seppl,
Just leave out that dbconfig-common_support.patch file 😉 Or have a look in the .rej why the patch fails.
Johnny