by john_doe_zend on Tue May 01, 2012 7:06 am
Thnank you, brinleyang, for posting the solution!
Thought I'll share details about how I managed to create 32-bit version:
* I've downloaded libpq4_8.1.17-1_i386.deb and php-5.3-imap-zend-server_5.3.9+b261_i386.deb to my local workstation (they were located at /var/cache/apt/archives/ on server)
* Extracted the contents
cd /tmp/folder_where_contents_will_be_extracted/
dpkg-deb -x /path/to/php-5.3-imap-zend-server_5.3.9+b261_i386.deb .
dpkg-deb -e /path/to/php-5.3-imap-zend-server_5.3.9+b261_i386.deb
* Removed the dependency on libkrb53 and php-5.3-zend-server
Look for "DEBIAN/control" file in extracted content. It contains a line like this:
Depends: libc6 (>= 2.3.6-6), libcomerr2 (>= 1.33-3), libkrb53 (>= 1.4.2), libssl0.9.8 (>= 0.9.8c-1), php-5.3-zend-server
The result after modification would look like this:
Depends: libc6 (>= 2.3.6-6), libcomerr2 (>= 1.33-3), libssl0.9.8 (>= 0.9.8c-1)
* Rebuilt DEB package
dpkg-deb -b . ../php-5.3-imap-zend-server_5.3.9+b261_i386.deb
* Uploaded packages back to server and installed them manually
dpkg -i libpq4_8.1.17-1_i386.deb
dpkg -i php-5.3-imap-zend-server_5.3.9+b261_i386.deb
* Successfully installed Zend Server
apt-get install zend-server-php-5.3