SEO Test

October 23, 2007

Zend Studio, Platform 3.5.0 on Ubuntu 7.10

Filed under: code — Crevete @ 4:56 pm

So I try to install Zend Studio 5.5.0 with Zend Platform on Ubuntu 7.10 - Gusty Gibbon. But after the IDE install was finished this error popped up:

The Zend Platform installation requires root privileges.
Please login as root, and run:
/home/name/ZendStudio-5.5.0/scripts/splatform_install.sh
Press ENTER to continue...

Ok, that’s an easy thing to do:

~$ sudo sh /home/name/ZendStudio-5.5.0/scripts/splatform_install.sh
sh: Can't open /home/name/ZendStudio-5.5.0/scripts/splatform_install.sh

What the fuck! Looks like they misspelled the freaking script name. Cd’ed into the dir and found out the real name was platform_install.sh . Here goes nothing:

~$ sudo sh /home/name/ZendStudio-5.5.0/scripts/platform_install.sh

The Zend Platform installation requires root privileges.
Please login as root, and run:
/home/name/ZendStudio-5.5.0/scripts/splatform_install.sh
Press ENTER to continue…

How stupid is this?! Sudo is root motherfucker! Now let’s try again this time with sudo su:

~$ sudo su
root@lap:/home/name/ZendStudio-5.5.0/scripts# sh platform_install.sh

The Zend Platform installation requires root privileges.
Please login as root, and run:
/home/name/ZendStudio-5.5.0/scripts/splatform_install.sh
Press ENTER to continue…

ARGH!!! Why oh why doesn’t this work in Ubuntu?

root@lap:/home/name/ZendStudio-5.5.0/scripts# gedit platform_install.sh#!/bin/sh

if [ "$UID" != "0" ]; then
echo The Zend Platform installation requires root privileges.
echo Please login as root, and run:
echo /home/name/ZendStudio-5.5.0/scripts/splatform_install.sh
echo Press ENTER to continue...
read dummy
exit 0
fi
[ ! -d "/home/name/ZendStudio-5.5.0/tmp" ] && mkdir "/home/name/ZendStudio-5.5.0/tmp"
cd "/home/name/ZendStudio-5.5.0/tmp"
"../bin/bzip2" -d < "/home/name/ZendStudio-5.5.0/packages/ZendPlatform-Linux.tar.bz2" | tar xvf -
cd "/home/name/ZendStudio-5.5.0/tmp/ZendPlatform-Linux"
./install --express
cd ..
rm -rf "/home/name/ZendStudio-5.5.0/tmp/ZendPlatform-Linux"
echo Press ENTER to continue...
exit 0

Aha! Now all you need to do is make the first condition true by replacing $UID with 0 like so:

if [ "0" != "0" ]; then

……….

Don’t forget to run as root:

"sudo sh platform_install.sh"

Voila! Gusty Gibbon Ubuntu with Zend Platform 5.5. : Ubuntu 7.10 with Zend Platform installer Zend Platform Installation was a success

2 Comments »

  1. I also found out about platform_install.sh but I didn’t think it actually contains the script.

    I assumed this is sort of like a readme file to let the user know they need to run splatform_install.sh (”s” probably stands for SUPER so I doubt they misspelled it).

    Thank you for the tip!

    Comment by Sam IT — November 6, 2007 @ 6:58 pm

  2. WOW, just wow. Didn’t even think of opening the damn script. Thanks for the tip!!! A life saver.

    Comment by Dan — August 4, 2008 @ 6:13 pm

Leave a comment

16 queries and 0.189 seconds.