特殊:Badtitle/NS100:InstallingCompilers/zh:修订间差异
Dbzhang800(留言 | 贡献) 小无编辑摘要 |
Dbzhang800(留言 | 贡献) 小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第5行: | 第5行: | ||
{{Languages|UbuntuHelp:InstallingCompilers}} | {{Languages|UbuntuHelp:InstallingCompilers}} | ||
== 安装GNU C编译程序和GNU C++编译程序 == | == 安装GNU C编译程序和GNU C++编译程序 == | ||
要安装gcc和g++编译程序,你需要<code><nowiki>build-essential</nowiki></code>包。 | 要安装gcc和g++编译程序,你需要<code><nowiki>build-essential</nowiki></code>包。 | ||
这也会安装上'''GNU make''' | 这也会安装上'''GNU make''' | ||
== 安装GNU Java 编译程序 == | == 安装GNU Java 编译程序 == | ||
注意GNU的 Java 编译程序与Sun Microsystems 开发和发布的不同,不会提供Java给firefox 浏览器. 对此,可参见[[Java]]。 要安装 '''gcj''' ,一个GNU Java 编译程序,需要安装下列包:gcj 。 | 注意GNU的 Java 编译程序与Sun Microsystems 开发和发布的不同,不会提供Java给firefox 浏览器. 对此,可参见[[Java]]。 要安装 '''gcj''' ,一个GNU Java 编译程序,需要安装下列包:gcj 。 | ||
'''gcj'''可被用于: 1. 编译 .java 文件生成字节码(.class文件) | '''gcj'''可被用于: 1. 编译 .java 文件生成字节码(.class文件) | ||
* 编译 .java 文件生成一个可执行的linux文件 | * 编译 .java 文件生成一个可执行的linux文件 | ||
要安装GNU java 字节码 翻译器, 你需要gij包 | 要安装GNU java 字节码 翻译器, 你需要gij包 | ||
要使 gcj 编译为可执行文件, 请安装 libgcj6-dev (否则编译时会出错:libgcj.spec: 没有此文件或目录)。用新立得安装 libgcj6-dev 。 | 要使 gcj 编译为可执行文件, 请安装 libgcj6-dev (否则编译时会出错:libgcj.spec: 没有此文件或目录)。用新立得安装 libgcj6-dev 。 | ||
== 安装 GNU Fortran 编译程序 == | == 安装 GNU Fortran 编译程序 == | ||
安装 GNU Fortran 77 编译程序 - '''g77''' , 你需要 g77 安装包。 | 安装 GNU Fortran 77 编译程序 - '''g77''' , 你需要 g77 安装包。 | ||
安装GNU Fortran 95 编译程序 - '''gfortran ,'''安装包是: gfortran。 | 安装GNU Fortran 95 编译程序 - '''gfortran ,'''安装包是: gfortran。 | ||
== 安装 GNU 自动化工具 == | == 安装 GNU 自动化工具 == | ||
安装 '''autoconf''' 和'''automake''' ,你需要<code><nowiki>autoconf automake</nowiki></code> 的安装包。 | 安装 '''autoconf''' 和'''automake''' ,你需要<code><nowiki>autoconf automake</nowiki></code> 的安装包。 | ||
使用Apt-get 需要你选择一个明确的automake版本。 例如,你决定使用 automake1.9, 你需要明确指定该版本,就如 <code><nowiki>automake1.9</nowiki></code> 的包。 | 使用Apt-get 需要你选择一个明确的automake版本。 例如,你决定使用 automake1.9, 你需要明确指定该版本,就如 <code><nowiki>automake1.9</nowiki></code> 的包。 | ||
[[Category:CategoryDocumentation]] | |||
[[Category:UbuntuHelp]] | |||
[[Category: | [[Category:程序开发]] |
2008年4月18日 (五) 14:13的最新版本
![]() |
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/InstallingCompilers }} |
![]() |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/af | • {{#if: UbuntuHelp:InstallingCompilers|Afrikaans| [[::InstallingCompilers/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ar | • {{#if: UbuntuHelp:InstallingCompilers|العربية| [[::InstallingCompilers/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/az | • {{#if: UbuntuHelp:InstallingCompilers|azərbaycanca| [[::InstallingCompilers/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/bcc | • {{#if: UbuntuHelp:InstallingCompilers|جهلسری بلوچی| [[::InstallingCompilers/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/bg | • {{#if: UbuntuHelp:InstallingCompilers|български| [[::InstallingCompilers/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/br | • {{#if: UbuntuHelp:InstallingCompilers|brezhoneg| [[::InstallingCompilers/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ca | • {{#if: UbuntuHelp:InstallingCompilers|català| [[::InstallingCompilers/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/cs | • {{#if: UbuntuHelp:InstallingCompilers|čeština| [[::InstallingCompilers/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/de | • {{#if: UbuntuHelp:InstallingCompilers|Deutsch| [[::InstallingCompilers/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/el | • {{#if: UbuntuHelp:InstallingCompilers|Ελληνικά| [[::InstallingCompilers/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/es | • {{#if: UbuntuHelp:InstallingCompilers|español| [[::InstallingCompilers/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/fa | • {{#if: UbuntuHelp:InstallingCompilers|فارسی| [[::InstallingCompilers/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/fi | • {{#if: UbuntuHelp:InstallingCompilers|suomi| [[::InstallingCompilers/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/fr | • {{#if: UbuntuHelp:InstallingCompilers|français| [[::InstallingCompilers/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/gu | • {{#if: UbuntuHelp:InstallingCompilers|ગુજરાતી| [[::InstallingCompilers/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/he | • {{#if: UbuntuHelp:InstallingCompilers|עברית| [[::InstallingCompilers/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/hu | • {{#if: UbuntuHelp:InstallingCompilers|magyar| [[::InstallingCompilers/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/id | • {{#if: UbuntuHelp:InstallingCompilers|Bahasa Indonesia| [[::InstallingCompilers/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/it | • {{#if: UbuntuHelp:InstallingCompilers|italiano| [[::InstallingCompilers/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ja | • {{#if: UbuntuHelp:InstallingCompilers|日本語| [[::InstallingCompilers/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ko | • {{#if: UbuntuHelp:InstallingCompilers|한국어| [[::InstallingCompilers/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ksh | • {{#if: UbuntuHelp:InstallingCompilers|Ripoarisch| [[::InstallingCompilers/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/mr | • {{#if: UbuntuHelp:InstallingCompilers|मराठी| [[::InstallingCompilers/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ms | • {{#if: UbuntuHelp:InstallingCompilers|Bahasa Melayu| [[::InstallingCompilers/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/nl | • {{#if: UbuntuHelp:InstallingCompilers|Nederlands| [[::InstallingCompilers/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/no | • {{#if: UbuntuHelp:InstallingCompilers|norsk| [[::InstallingCompilers/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/oc | • {{#if: UbuntuHelp:InstallingCompilers|occitan| [[::InstallingCompilers/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/pl | • {{#if: UbuntuHelp:InstallingCompilers|polski| [[::InstallingCompilers/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/pt | • {{#if: UbuntuHelp:InstallingCompilers|português| [[::InstallingCompilers/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ro | • {{#if: UbuntuHelp:InstallingCompilers|română| [[::InstallingCompilers/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/ru | • {{#if: UbuntuHelp:InstallingCompilers|русский| [[::InstallingCompilers/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/si | • {{#if: UbuntuHelp:InstallingCompilers|සිංහල| [[::InstallingCompilers/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/sq | • {{#if: UbuntuHelp:InstallingCompilers|shqip| [[::InstallingCompilers/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/sr | • {{#if: UbuntuHelp:InstallingCompilers|српски / srpski| [[::InstallingCompilers/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/sv | • {{#if: UbuntuHelp:InstallingCompilers|svenska| [[::InstallingCompilers/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/th | • {{#if: UbuntuHelp:InstallingCompilers|ไทย| [[::InstallingCompilers/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/tr | • {{#if: UbuntuHelp:InstallingCompilers|Türkçe| [[::InstallingCompilers/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/vi | • {{#if: UbuntuHelp:InstallingCompilers|Tiếng Việt| [[::InstallingCompilers/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/yue | • {{#if: UbuntuHelp:InstallingCompilers|粵語| [[::InstallingCompilers/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/zh | • {{#if: UbuntuHelp:InstallingCompilers|中文| [[::InstallingCompilers/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/zh-hans | • {{#if: UbuntuHelp:InstallingCompilers|中文(简体)| [[::InstallingCompilers/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallingCompilers | UbuntuHelp:InstallingCompilers | {{#if: | :}}InstallingCompilers/zh}}/zh-hant | • {{#if: UbuntuHelp:InstallingCompilers|中文(繁體)| [[::InstallingCompilers/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:InstallingCompilers|:InstallingCompilers/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :InstallingCompilers/zh/zh | | {{#ifexist: InstallingCompilers/zh/zh | | {{#ifeq: {{#titleparts:InstallingCompilers/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:InstallingCompilers/zh|1|-1|}} | zh | | }}
安装GNU C编译程序和GNU C++编译程序
要安装gcc和g++编译程序,你需要build-essential
包。
这也会安装上GNU make
安装GNU Java 编译程序
注意GNU的 Java 编译程序与Sun Microsystems 开发和发布的不同,不会提供Java给firefox 浏览器. 对此,可参见Java。 要安装 gcj ,一个GNU Java 编译程序,需要安装下列包:gcj 。
gcj可被用于: 1. 编译 .java 文件生成字节码(.class文件)
- 编译 .java 文件生成一个可执行的linux文件
要安装GNU java 字节码 翻译器, 你需要gij包
要使 gcj 编译为可执行文件, 请安装 libgcj6-dev (否则编译时会出错:libgcj.spec: 没有此文件或目录)。用新立得安装 libgcj6-dev 。
安装 GNU Fortran 编译程序
安装 GNU Fortran 77 编译程序 - g77 , 你需要 g77 安装包。
安装GNU Fortran 95 编译程序 - gfortran ,安装包是: gfortran。
安装 GNU 自动化工具
安装 autoconf 和automake ,你需要autoconf automake
的安装包。
使用Apt-get 需要你选择一个明确的automake版本。 例如,你决定使用 automake1.9, 你需要明确指定该版本,就如 automake1.9
的包。