« Emacs indentation hack | Main | PHP 5.1.1 »

Howto: Komodo 3.5 on Ubuntu / AMD64

60974424_2a8088dbd9_o

AMD64 Linux systems have always been hit and miss with Komodo, in a large part because we build 32-bit only, and some distros are better at providing 32-bit libs than others. Ubuntu is my current favorite distro for all sorts of reasons, but their AMD64 distro fails to run Komodo because the 32-bit libs they provide are not linked correctly ( to /usr/lib32 instead of /usr/lib  ).

Well, thanks to this forum post that Shane pointed me to it is now possible to run Komodo on Ubuntu AMD64 with minimal effort ( and wicked speed ). Here is what you need to do:

1. create a pangorc file at /etc/pango32/pangorc

[Pango]
ModuleFiles=/etc/pango32/pango.modules
[PangoX]
AliasFiles=/etc/pango/pangox.aliases

2. create a small shell script to set up the 32-bit environment properly and start Komodo:

#!/bin/sh
export GTK_PATH=/usr/lib32/gtk-2.0/
export PANGO_RC_FILE=/etc/pango32/pangorc
/path/to/bin/komodo

Note: This trick still works for Komodo 4.1 and Ubuntu Feisty AMD64. And as a clarification, before doing the above steps you should run the following command as suggested in Robert's comment below:

sudo apt-get install ia32-libs lib32asound2 lib32ncurses5 ia32-libs-sdl ia32-libs-gtk gsfonts gsfonts-x11 linux32

Update: In order to get Komodo to debug php scripts on an AMD64 machine with a 64bit PHP binary, you will need to build xdebug on your machine. On most systems this shyould be as simple as running 'pecl install xdebug-beta'. Full installation instructions for xdebug can be found here:

http://xdebug.org/docs/install

Comments

Thanks dude!!

That's exactly what I was looking for, thanks a lot! Komodo is building the database now ;-)

Why don't you guys also provide 64-bit builds as well?

thanks guys a lot. this is what i needed. this is awsome.

Ugh. Is there any hope at all of getting this to run under FC5 + AMD64? I have libgcc++ 6 installed. The compats are installed and the x11 depricated are installed... but can't seem to get it to stop screaming about libstdc++.so.5 Also could not find the link to the libccp3 version, is that not in Beta and why I can't find it?

Help?

David:

The specific package you need to install is this one:

compat-libstdc++-33-3.2.3-55.fc5.i386.rpm

This is the 32-bit libstdc++ 5 package provided by FC5.

Tried this on AMD64/Ubuntu 6.06.1 LTS (Dapper Drake) w/ Komodo 3.5.3
Still getting the following error:

error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Any ideas?

FWIW, I didn't have /etc/pango32, so I created the directory. Also created the pangorc but touched pango.modules...nothing in it though...

Do I need to ln something?

It sounds like you haven't installed the 32-bit GTK packages; I believe the package is called 'ia32-libs-gtk' or similar. Try searching in Synaptic for 'ia32'.

These changes should not be required on newer versions of Ubuntu. I just installed on Ubuntu Edgy amd64 and it works fine as long as the ia32-libs- packages are installed. I believe this was resolved prior to Dapper, so the link to this page should probably be removed from the Komodo System Requirements page.

if you add this before the above it will create the required lib32 stuff like pango32

sudo apt-get install ia32-libs lib32asound2 lib32ncurses5 ia32-libs-sdl ia32-libs-gtk gsfonts gsfonts-x11 linux32

What about the PHP debugger?
It uses a shared library, which is injected into the PHP binary. But my PHP installation comes from Ubuntu, thus its compiled for AMD64... as opposed to that library. I think it won't work. If so, I must get a PHP compiled for 32-bit. And, if I use mod_php, which is a library too, 32-bit Apache copy also will be necessary. Plus all the Apache toys I use. Sucks...

Whoops, I've just found out that that library is actually Xdebug, which is OpenSource, so I'll get its AMD64 copy, replace it and maybe it will work then. :-)

Hi. How to run php debugger in lates Komodo 4.1 on AMD64 under Ubuntu Linux.

@Yaroslav: I have update the post to include a link to instructions for building xdebug from source.

There is no package called ia32-libs-gtk in ubuntu 7.04.so what shud be done in that case.it says it obsoleted or missing.i installed ia32-libs.still not working

There is no package called ia32-libs-gtk in ubuntu 7.04.so what shud be done in that case.it says it obsoleted or missing.i installed ia32-libs.still not working

Are you sure you have all of the package repositories enabled? ia32-libs-gtk is a standard package on Ubuntu AMD64 systems, it just isn't installed by default.

Post a comment

If you have a TypeKey or TypePad account, please Sign In