|
发表于 2009-3-24 23:47:12
|
显示全部楼层
我曾经装过,去LAZARUS的WIKI看看吧.
那里有个脚本你直接COPY到UBUNTU去运行就可以安装好了. (网络安装)
或去下载DBE包自己用命令安装.
建议用第用网络安装
Getting Lazarus from our Ubuntu repository
On www.hu.freepascal.org there is a Ubuntu repository with Lazarus and FPC debs.
[edit] Short version: get Lazarus
In the sections that follow, there's a complete list of the commands you need to type at the console to download and install Lazarus on an Ubuntu system. If you're impatient, this section will just give you what you need to get it installed without going through every part of the process line by line.
Select and copy the following script, and save it as a file in your home directory named getlaz:
#!/bin/sh
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
gpg --export 6A11800F | apt-key add -
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" \\
>/etc/apt/sources.list.d/lazarus.list
apt-get update
apt-get install lazarus
At the shell prompt, type this to prepare the script for execution, and to execute it (you can copy these lines and paste them into your shell using Shift+Insert):
chmod +x getlaz
sudo ./getlaz
The process will download around 100Mb of data from the Lazarus repository and the standard ones. It will take at least five minutes, even with a fast connection. Any time it stops to ask for confirmation of any step, answer "Y" for yes.
When it finishes and returns to the shell prompt, you're set. Look in the "Development" section of your Ubuntu menu; Lazarus will be there and functional.
Now, for completists, here's the same instruction step by step. You can ignore it if you followed the above instructions successfully. Please remember to come back to the wiki and put in any tested, reliable changes that might clarify this section!
[edit] Add the key
Download the key from the public key server:
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
Add it to the apt system:
gpg --export 6A11800F | sudo apt-key add -
You can see the list of apt keys with:
sudo apt-key list
[edit] Add the repository
You can use synaptic for this or edit the /etc/apt/sources.list directly. For the stable repository, add the line:
deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe
Or using a console app. do:
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe">/etc/apt/sources.list.d/lazarus.list
For the testing repository:
deb http://www.hu.freepascal.org/lazarus/ lazarus-testing universe
Or similarly, using a console app. do:
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-testing universe">/etc/apt/sources.list.d/lazarus.list
[edit] Install Lazarus
Now You can install Lazarus with apt:
apt-get update; apt-get install lazarus
原文http://wiki.lazarus.freepascal.org/Getting_Lazarus#Downloading_releases |
|