Ubuntu 15.10下安装Lazarus IDE 1.6

Lazarus 支持多种操作系统,Windows,以及几种 Linux 发行版,当然包括Ubuntu 15.10,Mac OS X。各个Linux发行版安装Lazarus都很方便。

用Lazarus 编写IDE时会用到synedit 标签中的控件来高亮显示,是delphi的开源替代品.freepascal://wiki.lazarus。支持 FreeBSD.freepascal,另外可以下载lazarus 的源代码来学习,利用 Lazarus 创建的应用程序,也能被容易地移植到多种操作系统上,特别是图形界面应用程序。Lazarus 与 Delphi 高度兼容Lazarus 是基于 Free Pascal 的 Object Pascal 语言集成开发环境(IDE)。

下面我们来看看在Ubuntu 15.10下怎样安装最新的Lazarus IDE 1.6。

本文环境是32位Ubuntu 15.10,所以下载的是32位的Lazarus IDE 1.6。

Ubuntu 15.10下安装Lazarus IDE 1.6

首先下载Lazarus 1.6,下载地址见

https://www.linuxidc.com/Linux/2016-02/128550.htm

开始安装lazarus_1.6-0_i386.deb:

linuxidc@linuxidc:~/下载$ sudo gdebi lazarus_1.6-0_i386.deb

Ubuntu 15.10下安装Lazarus IDE 1.6

[sudo] linuxidc 的密码:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done

提示:
此软件包不可安装
Dependency is not satisfiable: fpc (>= 3.0.0)|fp-compiler (>= 3.0.0)

--------------------------------------------------------------------------------------

先安装fpc_3.0.0-151205_i386.deb

linuxidc@linuxidc:~/下载$ sudo gdebi fpc_3.0.0-151205_i386.deb

Ubuntu 15.10下安装Lazarus IDE 1.6

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done

Free Pascal Compiler
 Freepascal is a free 32/64bit Pascal Compiler. It comes with a
 run-time library fully compatible with Turbo Pascal 7.0 and nearly
 Delphi compatible. Some extensions are added to the language, like
 function overloading. Shared libraries can be linked. This package
 contains commandline compiler and utils. Provided units are the
 runtime library (RTL), free component library (FCL) and bindings
 for among others gtk1, gtk2, ncurses, zlib, mysql, postgres and
 ibase.
您是否想安装这个软件包?[y/N]:

--------------------------------------------------------------------------------------

接着安装fpc-src_3.0.0-151205_i386.deb

linuxidc@linuxidc:~/下载$ sudo gdebi fpc-src_3.0.0-151205_i386.deb

Ubuntu 15.10下安装Lazarus IDE 1.6

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done

Free Pascal Sources
 The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible
 32/64bit Object Pascal Compiler. It comes with fully TP 7.0
 compatible run-time library.
 Some extensions are added to the language, like function overloading. Shared
 libraries can be linked and created. Basic Delphi support is already
 implemented (classes,exceptions,ansistrings). This package contains the
 sources for the compiler, the rtl, fcl and packages.
您是否想安装这个软件包?[y/N]:

--------------------------------------------------------------------------------------

下面开始Lazarus IDE 1.6的正式安装:

Ubuntu 15.10下安装Lazarus IDE 1.6

linuxidc@linuxidc:~/下载$ sudo gdebi lazarus_1.6-0_i386.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading state information... Done
需要安装以下软件包: debhelper gir1.2-gtk-2.0 gtk2-engines-pixbuf libatk1.0-dev libcairo-script-interpreter2 libcairo2-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgail-common libgail18 libgdk-pixbuf2.0-dev libglib2.0-dev libgtk2.0-0 libgtk2.0-bin libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libmail-sendmail-perl libpango1.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-0 libpng12-dev libpthread-stubs0-dev libsm-dev libsys-hostname-long-perl libx11-dev libx11-doc libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev po-debconf x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/15466.html