回答編集履歴
1
追記
answer
CHANGED
@@ -5,4 +5,56 @@
|
|
5
5
|
fpc-3.0.2.x86_64-linux.tar (47 MB) contains a standard tar archive, with an install script
|
6
6
|
After untarring the archive into a temporary location, you can run the install script by issuing the command "sh install.sh".
|
7
7
|
|
8
|
-
[https://www.freepascal.org/down/x86_64/linux-austria.var](https://www.freepascal.org/down/x86_64/linux-austria.var)
|
8
|
+
[https://www.freepascal.org/down/x86_64/linux-austria.var](https://www.freepascal.org/down/x86_64/linux-austria.var)
|
9
|
+
|
10
|
+
|
11
|
+
追記
|
12
|
+
|
13
|
+
rootで実行してます。
|
14
|
+
sh install.sh実行時にディレクトリ等聞いてきますが全部デフォルト(Enterのみ)でインストール
|
15
|
+
|
16
|
+
あと、パスカルは扱ったことありません。
|
17
|
+
|
18
|
+
```
|
19
|
+
/// バージョンはcentos6.9
|
20
|
+
# cat /etc/redhat-release
|
21
|
+
CentOS release 6.9 (Final)
|
22
|
+
|
23
|
+
|
24
|
+
/// 初期ではwgetが無いので入れる
|
25
|
+
# yum -y install wget
|
26
|
+
/// ダウンロード
|
27
|
+
# wget ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.2/x86_64-linux/fpc-3.0.2.x86_64-linux.tar
|
28
|
+
///tarボールを解凍
|
29
|
+
# tar xvf fpc-3.0.2.x86_64-linux.tar
|
30
|
+
/// 解凍したディレクトリに移動
|
31
|
+
# cd fpc-3.0.2.x86_64-linux
|
32
|
+
/// インストール
|
33
|
+
# sh install.sh
|
34
|
+
|
35
|
+
/// fpcコマンドをたたいてみる
|
36
|
+
# fpc
|
37
|
+
Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64
|
38
|
+
Copyright (c) 1993-2016 by Florian Klaempfl and others
|
39
|
+
/usr/bin/fpc [options] <inputfile> [options]
|
40
|
+
Only options valid for the default or selected platform are listed.
|
41
|
+
Put + after a boolean switch option to enable it, - to disable it.
|
42
|
+
@<x> Read compiler options from <x> in addition to the default fpc.cfg
|
43
|
+
-a The compiler does not delete the generated assembler file
|
44
|
+
-al List sourcecode lines in assembler file
|
45
|
+
-an List node info in assembler file (-dEXTDEBUG compiler)
|
46
|
+
-ao Add an extra option to external assembler call (ignored for internal)
|
47
|
+
-ap Use pipes instead of creating temporary assembler files
|
48
|
+
-ar List register allocation/release info in assembler file
|
49
|
+
-at List temp allocation/release info in assembler file
|
50
|
+
-A<x> Output format:
|
51
|
+
-Adefault Use default assembler
|
52
|
+
-Aas Assemble using GNU AS
|
53
|
+
-Agas Assemble using GNU GAS
|
54
|
+
-Agas-darwin Assemble darwin Mach-O64 using GNU GAS
|
55
|
+
-Amasm Win64 object file using ml64 (Microsoft)
|
56
|
+
-Apecoff PE-COFF (Win64) using internal writer
|
57
|
+
-Aelf ELF (Linux-64bit) using internal writer
|
58
|
+
-Ayasm Assemble using Yasm (experimental)
|
59
|
+
*** press enter ***
|
60
|
+
```
|