Behind the Site »

Zend - The PHP Company

Installing Zend Studio / Zend Guard on Ubuntu 6.1

Article #226
Product: Zend Studio


Summary



Zend Studio installation, uninstallation and the program itself will fail with the following Errors:
error while loading shared libraries: libm.so.6 / libc.so.6 / librt.so.1: cannot open shared object file: no such file or directory
Same applies for the Zend Guard installation.

Cause



The Install Anywhere that is used is exporting an env variable 'LD_ASSUME_KERNEL', which is used to determine the correct library location according to the kernel reported. Since the distribution is much newer than the installation, it is exporting the wrong location, and the Installer fails to find the required files, although they are present in the /lib directory tree.


Resolution



Here is the complete recipe for a successful installation of Zend Studio. Follow a similar path for Zend Guard:


  • If the /usr/local/Zend directory is not already present, create it. Run 'sudo -s' to get root, and perform 'mkdir /usr/local/Zend'.

  • Now make the directory Zend owned by your username, so you can install and run Zend Studio without using Root. 'chown /usr/local/Zend'

  • exit Sudo and return to normal user 'exit'

  • Download 'ZendStudio-5_2_0.tar.gz' to your Home directory. perform 'tar xvfz ZendStudio-5_2_0.tar.gz' to extract

  • The following commands are the actual solution!

  • cp ZendStudio-5_2_0.bin ZendStudio-5_2_0.bak

  • cat ZendStudio-5_2_0.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZendStudio-5_2_0.bin

  • rm ZendStudio-5_2_0.bak

  • run './ZendStudio-5_2_0.bin' to perform the installation under your user




  • During the installation, choose the default directory /usr/local/Zend/ZendStudio-5.2.0

  • At the end of the installation, uncheck "Run Zend Studio now"



You will need to perform the exact patch for the Zend Studio binary:

  • cd /usr/local/Zend/ZendStudio-5.2.0/bin

  • cp ZDE ZDE.bak

  • cat ZDE.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZDE

  • rm ZDE.bak



Now, you can run Zend Studio by running ZDE directly, or linking from a desktop / menu shortcut.
You can also use / copy the shortcuts which were created during the installation in your Home directory.

If you like to uninstall Zend Studio in the future, you will also need to patch the uninstaller, which is located under '/usr/local/Zend/ZendStudio-5.2.0/Uninstall ZendStudio-5.2.0/Uninstall_ZendStudio-5.2.0'

The information in this article applies to



Zend Studio
Zend Guard
Ubuntu 6.1

Keywords



Studio, Guard, Ubuntu, Installation, libm, libc

Last Updated: 2006-10-31 14:10:34

 

» Send us feedback