Installing Aptana on Mandriva 2007
per Roger Borrell
—
darrera modificació
2020-03-25T15:18:01+01:00
How to install Aptana on Mandriva 2007 without installing eclipse first
- Download Aptana for Linux.
- Download mozilla-i686-pc-linux-gnu-1.7.8-gtk2+xft.tar.gz (mozilla wirh GTK2 is needed to install aptana. Will not work with the mozilla firefox that comes with the distribution. Urpmi mozilla will not work neither)
(Important: In this HOW-TO, I'm assuming that you download the files in your Desktop)
Install mozilla:
- You need to change to root:
su
- You need to install the package libstdc++.so.5, otherwise Aptana will fail in the launching process, so you better install it now and forget about it. If you have your fonts properly configured:
urpmi libstdc++.so.5
- Copy the file to the right location
cp ./Desktop/mozilla-i686-pc-linux-gnu-1.7.8-gtk2+xft.tar.gz /usr/local
- Move to the right location
cd /usr/local
- Unpack the files:
tar xvf mozilla-i686-pc-linux-gnu-1.7.8-gtk2+xft.tar.gz
- Set the environment variable MOZILLA_FIVE_HOME
export MOZILLA_FIVE_HOME=/usr/local/mozilla
- The MOZILLA_FIVE_HOME variable will be create it only temporally and will only work for the first time you launch Aptana. To make it work forever, what you need is to paste the command inside the /etc/profile (you can paste it after the line NLSPATH=/usr/share/locale/%l/%N). So, to edit the file:
vi /etc/profile
or
kwrite /etc/profile
and paste the following text after NLSPATH=/usr/share/locale/%l/%N :
export MOZILLA_FIVE_HOME=/usr/local/mozilla
PATH=$PATH:$HOME/Aptana
- To exit from the root prompt:
exit
- REBOOT YOUR COMPUTER
Install Aptana:
As your usual user type:
cd Desktop
cp Aptana_IDE_Setup.bin Aptana_IDE_Setup.bin.bak
cat Aptana_IDE_Setup.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Aptana_IDE_Setup.bin
- Give the file execution permision by the command:
chmod u+x Aptana_IDE_Setup.bin
- Run the installer and follow it, saying next to everything:
./Aptana_IDE_Setup.bin
- Launch the Aptana in the location you've install it (by default):
$HOME/Aptana/aptana
- "aptana" should also work:
aptana
Putting Aptana in Mandriva Menu
kmenuedit
- New Element
- Name: Aptana
- Command: $HOME/Aptana/aptana
I hope you gain the week I've lost !! Good luck !