search
HomeBackend DevelopmentPHP Tutorial Ubuntu 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 Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

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

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

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.