Archive for January, 2007

Howto install Zend Studio on Linux with an AMD64 processor

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!

Upgraded computer

Since I became a Mac user (and an Apple Cinema Display owner) my old PC has just been collecting dust since the new monitor has DVI connections and I had no DVI support on my old video card. So I thought: lets buy a new video card and put the old working horse back in business!

Well, stupid as I am I didn’t check what interface there was on my old mother board so I ended up with a video card with PCI Express and a mother board with AGP! Smart ass (I’m a hardware lamer indeed)! I couldn’t bother going back to the store to return the video card so I turned to the Internet and bought a new mother board and a new processor. And this time I really checked that the new mother board would support my old memory sticks. At least I thought so! When the stuff arrived the memory sticks didn’t fit, of course!

So back to the Internet for some new memory sticks! Okey dokey, the sticks arrived and I was fit to go putting the stuff together. Everything went smoothly until I was to connect the power supply to the mother board! It didn’t fit, surprise! So I went downtown and bought a new power supply unit and finally everything fit together.

And while I was at it I bought a new hard drive and a DVD/CD burner. So from just planning on buying a new video card I ended up with a brand new computer. It wasn’t like it wasn’t needed so all in all it was a rather good thing (although a lot more expensive than what I had in mind).

So what did I end up with?

  • Mother board: ASUS A8N5X with NVIDIA nForce 4 chipset.
  • Processor: AMD64 Athlon 3500+
  • Video card: GeForce 7300 GS with 256mb DDR2.
  • Memory: 2x Kingston KVR 400 512mb
  • Hard drive: WD 120gb 7200
  • DVD/CD burner: Samsung S182D
  • And of course a brand new installation of Ubuntu Linux

And all in all I have to say I’m quite satisfied. When logging in to Gnome it takes like 4 seconds for the desktop to load and become usable! Firefox launches almost instantaneously and the speed is in general light years ahead of my old hardware!

Nice!