(*** Apologies if you tried this and it did not work! ***)
(*** Please refer the very last portion of the post, regarding exporting. ***)
Running Eclipse on Slackware 14 seemed extremely simple.
1] Download the version of Eclipse you want from this page.
2] Go to the directory where the download is.
For example,
cd /home/<username>/Downloads
3] tar -xvf eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz
4] You will notice that a directory called eclipse has been created. Go inside the directory and type eclipse. If everything has gone the way it should, Eclipse should work.
5] Now, you probably want to move this out of your Downloads directory, say, to the /usr/local path. So do the following:
cp -r eclipse /usr/local
5] You do not want to manually go to /usr/local/eclipse every time you want to run Eclipse, so you create an alias. Open ~./bashrc. ie.
vim ~./bashrc
(If there is no such file already, vim would create one for you)
6] Create an alias for the executable, that is, /usr/local/eclipse/eclipse, as follows:
alias eclips=/usr/local/eclipse/eclipse
(*** Please be advised that there should NOT be spaces between 'eclipse', '=' and '/' ***)
(I chose the alias 'eclips', you could name it anything you want. I am not sure what the complications are when you name it 'eclipse' and you go into the directory that contains a similar file - a name collision, basically . I guess it should be alright, since, in order to run /usr/local/eclipse/eclipse, you would have to type ./usr/local/eclipse/eclipse. Note the '.' at the start of the command)
To make this change effective, type the following command:
source ~/.bashrc
You should be able to run Eclipse by typing eclips anywhere.
(*** Please refer the very last portion of the post, regarding exporting. ***)
Running Eclipse on Slackware 14 seemed extremely simple.
1] Download the version of Eclipse you want from this page.
2] Go to the directory where the download is.
For example,
cd /home/<username>/Downloads
3] tar -xvf eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz
4] You will notice that a directory called eclipse has been created. Go inside the directory and type eclipse. If everything has gone the way it should, Eclipse should work.
5] Now, you probably want to move this out of your Downloads directory, say, to the /usr/local path. So do the following:
cp -r eclipse /usr/local
5] You do not want to manually go to /usr/local/eclipse every time you want to run Eclipse, so you create an alias. Open ~./bashrc. ie.
vim ~./bashrc
(If there is no such file already, vim would create one for you)
6] Create an alias for the executable, that is, /usr/local/eclipse/eclipse, as follows:
alias eclips=/usr/local/eclipse/eclipse
(*** Please be advised that there should NOT be spaces between 'eclipse', '=' and '/' ***)
(I chose the alias 'eclips', you could name it anything you want. I am not sure what the complications are when you name it 'eclipse' and you go into the directory that contains a similar file - a name collision, basically . I guess it should be alright, since, in order to run /usr/local/eclipse/eclipse, you would have to type ./usr/local/eclipse/eclipse. Note the '.' at the start of the command)
To make this change effective, type the following command:
source ~/.bashrc
You should be able to run Eclipse by typing eclips anywhere.
No comments:
Post a Comment