search
HomeBackend DevelopmentPHP TutorialUbuntu 8.04上eclipse和PHP的安装

Ubuntu 8.04下eclipse和PHP的安装
【转:】http://www.enet.com.cn/article/2008/1021/A20081021375941.shtml
1、官方下载PDT All-in-one版本:http://downloads.zend.com/pdt/all-in-one/

  2、解压到指定目录:/usr/local

  可先解压到当前目录然后

  mv eclipse /usr/local

  (1)如果想把eclipse目录的更改为root拥有,可以执行下面的命令

  sudo chown -R root:root /usr/local

  在/usr/bin目录下创建一个启动脚本eclipse

  (2)用下面的命令来创建:

  sudo gedit /usr/bin/eclipse

  然后在该文件中添加以下内容:

  #!/bin/sh

  export MOZILLA_FIVE_HOME=”/usr/lib/mozilla/”

  export ECLIPSE_HOME=”/usr/local/eclipse”

  $ECLIPSE_HOME/eclipse $*

  (3)让修改该脚本的权限,让它变成可执行,执行下面的命令:

  sudo chmod +x /usr/bin/eclipse

  3、在桌面或者gnome菜单中添加eclipse启动图标

  (1)在桌面或者启动面板上添加图标:

  在桌面(右键单击桌面->创建启动器)或面板(右键单击面板->添加到面板 ->定制应用程序启动器)上创建一个新的启动器,然后添加下列数据:

  名称:Eclipse Platform

  命令:eclipse

  图标: /usr/local/eclipse/icon.xpm

  (2)在Applications(应用程序)菜单上添加一个图标

  用文本编辑器在/usr/share/applications目录里新建一个名为eclipse.desktop的启动器,如下面的命令:

  sudo vi /usr/share/applications/eclipse.desktop

  或者

  sudo gedit /usr/share/applications/eclipse.desktop

  然后在文件中添加下列内容:

  [Desktop Entry]

  Encoding=UTF-8

  Name=Eclipse Platform

  Comment=Eclipse IDE

  Exec=eclipse

  Icon=/usr/local/eclipse/icon.xpm

  Terminal=false

  StartupNotify=true

  Type=Application

  Categories=Application;Development;

  保存文件。完成整个安装过程。可以双击桌面eclipse的图标来运行eclipse。

  3、汉化eclipse

  打开eclipse-Help-Software Updates....

  在打开的对话框中选择上面的第二项(Available Software)

  点击Add Site按钮,弹出URL对话框,在对话框里输入:http://download.eclipse.org/technology/babel/update-site/ganymede,点击确定(OK)按钮

  这时就可以在更新对话框里看到我们添加的地址了,点击前面的三角,展开语言更新选项

  再点击Language Packs前面的三角展开语言选择选项,在Eclipse Language Pack for Simplified Chinese选项上打勾

  点击对话框右边的install按钮

  OK开始下载并安装中文语言包,安装完成后,点击OK按钮,eclipse会自动关闭和启动,这时已经是中文版的了

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool