How to fix Zend Server on Ubuntu 12.04 Precise
After a long battle a solution is here!
Many thanks to Alex Sherman @AlxShr from BelleRon Technologies – www.belleron.com.
Disclaimer: Use at your own risk! Worked on clean 12.04 install.
First of all we used a script taken from: http://ubuntuforums.org/showthread.php?t=636724&page=2
#!/bin/bash #modded by japzone if [[ -z "$1" ]]; then echo "Syntax: $0 debfile" exit 1 fi DEBFILE="$1" TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1 OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb if [[ -e "$OUTPUT" ]]; then echo "$OUTPUT exists." rm -r "$TMPDIR" exit 1 fi dpkg-deb -x "$DEBFILE" "$TMPDIR" dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then echo DEBIAN/control not found. rm -r "$TMPDIR" exit 1 fi CONTROL="$TMPDIR"/DEBIAN/control MOD=`stat -c "%y" "$CONTROL"` gedit "$CONTROL" read -p "Press any key once you've finished editing and saved" if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then echo Not modfied. else echo Building new deb... dpkg -b "$TMPDIR" "$OUTPUT" fi rm -r "$TMPDIR"
The script above saved as debedit.sh and given execute permissions by
chmod u+x debedit.sh
Packages downloaded by:
apt-get download libpq4 php-5.3-imap-zend-server
Then edited dependencies by:
./debedit.sh libpq4_8.1.17-0etch1_amd64.deb ./debedit.sh php-5.3-imap-zend-server_5.3.9+b260_amd64.deb
In the “Depends” line of each of them changed libkrb53 to libkrb5-3
After that installed each of the modified packages:
dpkg -i libpq4_8.1.17-0etch1_amd64.modfied.deb dpkg -i php-5.3-imap-zend-server_5.3.9+b260_amd64.modfied.deb
And then, finally, installed the zend server by:
apt-get install zend-server-ce-php-5.3
WOW! It Works!!!
This is continued from: Zend Server broken on Ubuntu 12.04
Thanks to the investment from Tesserent Limited we were able to create this script without a problem.
Visit or contact the tax office to know about our packages.
Thank you! It really works! Respect!
Eugene
May 2, 2012 at 2:11 pm
Thank you very much, works fine !
Just one observation: the script was called with two different names (debedit.sh and debeditor.sh), please unify them.
Gustavo Barbosa Gama (@gustavobgama)
May 2, 2012 at 6:35 pm
Thanks, fixed it….
I have copied parts from the command line and parts had to write from memory so missed some 🙂
Alex (Shurf) Frenkel
May 2, 2012 at 6:51 pm
Dude u forget to tell they need a package called “gdebi” to reconstruct the package. “sudo apt-get install gdebi”
Eduardo Costa Garcia
May 4, 2012 at 8:18 pm
I actually dont think you need it, I dont have it installed on my server. (Just checked…)
When do you get the message you need it? At what stage?
Alex (Shurf) Frenkel
May 4, 2012 at 10:50 pm
Just tried this after a fresh install, had to run updates before it worked.
Matt
May 7, 2012 at 10:09 pm
You have to be updated anyway, after you add the Zend Debian repository.
Alex (Shurf) Frenkel
May 8, 2012 at 9:54 am
The dependency issue is now fixed in Zend Server’s repository. There is still one issue with CURL and SSL that is related to the difference in the SSL library that we are working to fix and hoep to release soon.
Kent Mitchell
Director, Product Management
Zend
Kent Mitchell
May 10, 2012 at 7:07 pm
Thanks Kent
I will check it, and if it will work ok I will post a note about this.
Alex (Shurf) Frenkel
May 14, 2012 at 12:12 pm
Hi mates, i cant make it to work:
root@x-Notebook:/tmp# apt-get download libpq4 php-5.3-imap-zend-server
E: Unable to locate package libpq4
E: Unable to locate package php-5.3-imap-zend-server
E: Couldn’t find any package by regex ‘php-5.3-imap-zend-server’
Do you know how to tweak this one?
Thanks
Jick
May 21, 2012 at 10:30 am