红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

eclipse 安装pdt

发布时间:2008-09-18 16:20:18来源:红联作者:aacble
  出自:http://watertree.blog.sohu.com/

  先大概说说本文针对的问题:pdt的安装出现缺少feature错误(依赖性检测不通过),一般网上的教程应该够用了,但是你最后和我一样还是遇到安装pdt提示require feature,那么本文可能对你有用(懒的看的可以直接看最后安装步骤)。

  我的系统ubuntu8.04,eclipse版本3.4(我出现了上述问题的版本是3.2和3.4,3.2是新利得上安的,3.4是下载解压的,以下我之针对3.4,3.2应该也是一样)

  最近想安个pdt玩玩,怎奈装起来始终有问题,baidu一阵发现如下网页:URL1: http://hi.baidu.com/tianfan/blog/item/99881a23e596c74b935807c0.html

  一般情况下如上安装即可,但是如果你和我一样遇到缺少feature,那么URL1就不适合你了。出现这个问题的原因是因为版本问题。在eclipse 3.4的software update 中,pdt仍然是1.0,它提示缺少的feature实际是一个pdt1.0需要的老版本feature,在新的eclipse以及相关的software update中不会安装这个老feature

  参考:
  http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg02102.html
  http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg01605.html
  (看到有人遇到一样的问题是不是很爽)

  所以应该装pdt2.0(我下的是org.eclipse.php_feature-I20080909)

  URL1的前三步是没问题的:先安装jre,然后下载eclipse解压,然后chmod。(我遇到eclipse把gcj选成默认虚拟机,把gcj都删了就好了,反正我不用。注意:pdt在gcj下可能有问题)

  这里后来又找到两个网址:
  URL2: http://wiki.eclipse.org/PDT/Installation#From_Update_Site
  URL3: http://download.eclipse.org/tools/pdt/downloads/release.php?release=I20080909

  这是两种安装方法,我来解释一下(针对3.4)。

  第一个网址URL1,看得挺复杂,其实就是做了几件事(不用写 那些个代码):

  1、下载dltk1.0和pdt2.0的包 ,下下来你会发现包里面的二级目录有features和plugins。

  2、使用eclipse的software update里面自带两个站点其中一个(ganymede),安装,把相关的都装了

  3、新建站点(add site),选local,把刚刚解压的两个包分别装上(local是用来安装本地包的)

  上面的方法我没试过,我想应该没问题,因为问题出在pdt版本,而上面的方法的pdt是自己下的,不是像在URL1中在eclipse software update中用http://download.eclipse.org/tools/pdt/updates/ 站点更新的。

  我用的是URL3的方法,解释一下:
  看到requirements and handy extras么(蓝色条条里面),这个是安装pdt需要的东西

  EMF2.4.1开始下。每行后面都有个here么,点这个安,要是遇到404的就search,然后就会有download网址。一般选择最高版本的stable或者release.

  一直下到WTP3.0.2那一行就好。然后用eclipse的add site -> local安装各个包即可(可以把下下来的包解压到一个文件夹一次安装)

  大功告成了。总结一下:

  1、安装jre
  sudo apt-get install sun-java6-jre

  2、安装eclipse
  http://www.eclipse.org/downloads/ 下载classic最新版本后解压
  chmod 777 -R [你的eclipse目录]

  3、下载前提包
  打开 http://download.eclipse.org/tools/pdt/downloads/release.php?release=I20080909
  下载这些包并解压
  # EMF 2.4.1 runtime version used in this build is here.
  # XSD 2.4.1 runtime version used in this build is here.
  # GEF 3.4 runtime version used in this build is here.
  # DLTK Core Frameworks Integration 1.0 Runtime version used in this build is here.
  # DTP 1.6.1 runtime version used in this build is here.
  # WTP 3.0.2 Runtime version used in this build is here.

  4、安装下的那些包 eclipse -> help -> software update.. -> add sites -> local ->...

  5、下载pdt的包
  同样可以用上面那个网址,在最下面有一个PDT runtime 下载之,然后用第4步同样的方法安装。
文章评论

共有 0 条评论