=== 국산버전 ===
http://crowz.kr/xe/index.php?document_srl=2196&mid=Linux 퍼왔습니다. 좋은정보 감사합니다.
apt-get 유틸리티를 사용하지 않고 eclipse 를 설치하는 방법이다..
1. http://www.eclipse.org 에서 자신이 해당하는 버전을 다운받는다.
2. 압축을 푼다
tar -xvf eclipse-cpp-indigo-SR2-incubation-linux-gtk-x86_64.tar.gz
3. /opt 디렉토리로 eclipse 이동 ( 반드시 디렉토리 전체를 이롱시키자 )
sudo mv eclipse /opt/eclipse
4. eclipse 실행파일 생성
sudo vi /usr/bin/eclipse
실행후
----------------------------------------
#!/bin/sh
export ECLIPSE_HOME=/opt/eclipse
$ECLIPSE_HOME/eclipse $*
export ECLIPSE_HOME=/opt/eclipse
$ECLIPSE_HOME/eclipse $*
------------------------------------------
위의 내용 입력
5. 퍼미션 설정
sudo chmod 755 /usr/bin/eclipse
6. 우분투 데스크탑 메뉴에 추가
sudo vi /usr/share/applications/eclipse.desktop
------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
------------------------------------------------------
위의 내용 입력
== 영문버전 ==
http://thismagpie.blogspot.kr/2012/07/installing-eclipse-juno-42-on-lubuntu.html 에서 퍼왔습니다. 좋은정보 감사합니다.
Installing Eclipse Juno 4.2 on Lubuntu 12.04
I don't know why, but there does not seem to be a package ppa for juno yet. I had to use an alternative method to install. It really wasn't all that complicated in the end and this would probably work on the other flavours of Ubuntu too, but a word of warning: Bear in mind, I did this on a clean install; you will need to move your old install to another directory if you want to avoid problems.
The first part I got from this person's blog but, as is oft' the way, I was guided through the easy bit, then suddenly, I must have become an expert or something, because I came to a part where it said: 'you will need to create a script in /usr/bin to be the "executable" for eclipse'
"...Eh? Oh righty then!"
I got on that... Only took several hours and, a complete reinstall of my OS, but here it is: The full instruction on how to do it. Get Juno on your Lubuntu 12.04, that is. Open terminal:
>>sudo add-apt-repository -y ppa:webupd8team/java
>>sudo apt-get update
>>sudo apt-get install -y oracle-jdk7-installerDownload eclipse Juno from here and go to the directory where you downloaded it to (usually Downloads).
>>cd Downloads
Extract whatever way you wish, I chose:
>>tar -zxvf eclipse-SDK-4.2-linux-gtk.tar.gzIf I was doing it on my 64 bit version it would have been:
>>tar -zxvf eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz
(but right click >
extract works too.)Move the eclipse contents into this directory, like so:
>>
sudo mv eclipse /usr/lib/
Then I was failed by the rest of the blog and overwhelmed on my
own! I eventually pieced random bits of the internet together, to figure
out how to create the executable file and set the paths without it all
falling apart (again).To be fair the rest of my instruction here is bits I took from this person's blog post about another distro of eclipse and ubuntu, the important difference to notice is that he installed in opt, whereas I kept with usr like the first blogger used. I did this because it felt like the right thing to do to stay more global, but I really cannot say which would be the more appropriate choice. Early days, but here's where I ended up:
>>sudo touch /usr/bin/eclipse
>>sudo chmod 755 /usr/bin/eclipseThe chmod 755 bit is you setting the permissions here's a description of it. Then:
>>sudo leafpad /usr/bin/eclipseBy the way, Leafpad is just a text editor. It could be anything you fancy (e.g. nano, gedit, kate etc etc), the important thing is that once you have the file open in the text editor you paste this into it:
#!/bin/sh
export ECLIPSE_HOME=" /usr/lib/eclipse/eclipse"
$ECLIPSE_HOME/eclipse $*
Save and close.
To create the icon, and set the paths inside it I needed to open a text editor to write up a new file called eclipse.desktop (created below)
>>sudo leafpad /usr/share/applications/eclipse.desktop Inside the file pasted this:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=/usr/lib/eclipse/eclipse
Icon=/usr/lib/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Save and close.
Find eclipse now by going into programming menu and clicking on the eclipse icon which starts up Juno!
I wish there were a bit more documentation on this stuff though.
Phew! Now, fingers crossed I can get this Android plugin working on 4.2!
댓글 없음:
댓글 쓰기