Gentoo and an Aptana Howto

Well yesterday, both Gentoo 2007.0 and Aptana milestone 8 were released. Thanks to some bugs in a previous release I was able to test milestone 8 on Gentoo last week; that was before ATI’s drivers went kamikaze.

Overall I am impressed with milestone 8, it features more advanced support of PHP, including variable highlighting. With Gentoo to install Aptana just make a folder in /usr/lib called aptana, then extract the archive to that point. After that make a file in /usr/bin called aptana, open it in your favorite editor (nano) and add the following:

export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
exec /usr/lib/aptana/Aptana

Save the file and do a chmod 755 on it so that it becomes executable. Now try typing in the command aptana& into your terminal. If all goes right you should see the aptana splash screen. If you get a bug, look at the log file it directs you to. Should you see something like org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] then your mozilla path is not correct. If the executable fails in general, you need to make sure you have the JRE 1.5 or newer. To get this just run emerge -p sun-jre-bin (you don’t have to use Sun’s JRE but that is what I use) if you like what you see then rerun the command without the -p. Once portage finishes doing its stuff, try executing Aptana again. It should work then, if not search the Aptana forums.

-John Havlik

[end of transmission, stay tuned]

Posted in Guides | Tagged:

6 thoughts on “Gentoo and an Aptana Howto

  1. Yeah, that’s true now, since with 1.0 they changed the name. However, there should be a syslink that maps Aptana to AptanaStudio since I never changed anything and it still works for me after upgrading.

  2. On 64bit Gentoo 2007.0, standalone Aptana will not work.
    There are two possibilities:
    1. Set system to use 32bit emulation of Sun Java
    (this will break Eclipse, but there might be a workaround)
    2. Install Aptana as Eclipse plugin.

    Commands used:
    [java-config –list-available-vms] -> to list java installed on system.
    [java-config –set-system-vm ] -> to set choice

    Note: you can have both, but you have to always re-set the correct vm. (or search for a 32bit workaround for Eclipse)

  3. pentagram,

    It looks like the recommended thing to do on 64bit systems is to install Aptana as an Eclipse plug-in. I don’t have a 64bit system so I can’t test that, but I’ll confirm that I agree with their recommendation.

  4. Thank you very much. I had no problem installing the plugin in Eclipse but I didn’t manage to install PHP support. Thank to your tip, I was able to install AptanaStudio standalone and here, I had no issues with PHP (running Funtoo x64). Thanks a lot for your help :)
    – forgive my English, I’m French –

Comments are closed.