Howto install Zend Studio on Linux with an AMD64 processor

Published 7 January, 2007 in Linux - 0 Comments

Sometimes you regret running a 64-bit processor, but as almost always anything ca be fixed. The Zend Studio installer complains about finding some lib files:

8 lines of Plain text
  1. Configuring the installer for this system’s environment…
  2. nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
  3. dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  4. /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
  5. basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  6. dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  7. basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  8. hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Of course there’s a fix for this, and this is how to do it (please change the version numbers according to your version):

8 lines of Bash
  1. # First make a copy of the installer file:
  2. cp ZendStudio-5_2_0.bin ZendStudio-5_2_0.bak
  3. # Then run this command
  4. cat ZendStudio-5_2_0.bak | sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > ZendStudio-5_2_0.bin
  5. #Then you can throw the .bak file away
  6. rm ZendStudio-5_2_0.bak

Hopefully you can now run the installer file.

Okey, when Zend Studio has been installed we need to redo these steps but for the executable ZDE file which is located in the bin directory of the directory where ZDE was installed. I installed it in my home directory so the path for me is:

1 lines of Plain text
  1. /home/poppa/ZendStudio-5.2.0/bin/ZDE

Okey, so lets go to that directory and make a copy of ZDE and then:

1 lines of Bash
  1. cat ZDE.bak | sed “s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/” > ZDE

And now we’re fit to go (hopefully)!

If you by any chance during any of these steps get complaints about the xxx/bin/java not being found it can be fixed by explicitly declaring the path to Java:

5 lines of Bash
  1. # For the installer
  2. ./ ZendStudio-5.2.0.bin LAX_VM=/path/to/java
  3. # Or for the executable
  4. ./ZDE LAX_VM=/path/to/java

And that’s that!