fpc-3.0.2.x86_64-linux.tar (47 MB) contains a standard tar archive, with an install script
After untarring the archive into a temporary location, you can run the install script by issuing the command "sh install.sh".
rootで実行してます。
sh install.sh実行時にディレクトリ等聞いてきますが全部デフォルト(Enterのみ)でインストール
あと、パスカルは扱ったことありません。
/// バージョンはcentos6.9
# cat /etc/redhat-release
CentOS release 6.9 (Final)
/// 初期ではwgetが無いので入れる
# yum -y install wget
/// ダウンロード
# wget ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.2/x86_64-linux/fpc-3.0.2.x86_64-linux.tar
///tarボールを解凍
# tar xvf fpc-3.0.2.x86_64-linux.tar
/// 解凍したディレクトリに移動
# cd fpc-3.0.2.x86_64-linux
/// インストール
# sh install.sh
/// fpcコマンドをたたいてみる
# fpc
Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64
Copyright (c) 1993-2016 by Florian Klaempfl and others
/usr/bin/fpc [options] <inputfile> [options]
Only options valid for the default or selected platform are listed.
Put + after a boolean switch option to enable it, - to disable it.
@<x> Read compiler options from <x> in addition to the default fpc.cfg
-a The compiler does not delete the generated assembler file
-al List sourcecode lines in assembler file
-an List node info in assembler file (-dEXTDEBUG compiler)
-ao Add an extra option to external assembler call (ignored for internal)
-ap Use pipes instead of creating temporary assembler files
-ar List register allocation/release info in assembler file
-at List temp allocation/release info in assembler file
-A<x> Output format:
-Adefault Use default assembler
-Aas Assemble using GNU AS
-Agas Assemble using GNU GAS
-Agas-darwin Assemble darwin Mach-O64 using GNU GAS
-Amasm Win64 object file using ml64 (Microsoft)
-Apecoff PE-COFF (Win64) using internal writer
-Aelf ELF (Linux-64bit) using internal writer
-Ayasm Assemble using Yasm (experimental)
*** press enter ***
ありがとうございます。試してみました。下記のように表示されました
End of installation.
Refer to the documentation for more information.
[vagrant@localhost fpc-3.0.2.x86_64-linux]$ fpc
-bash: fpc: コマンドが見つかりません
[vagrant@localhost fpc-3.0.2.x86_64-linux]$ # fpc
[vagrant@localhost fpc-3.0.2.x86_64-linux]$ fpc -iv
-bash: fpc: コマンドが見つかりません
以上のようなコメントが出るということはインストールができていないということですね
End of installation.が出てるということはインストール自体はできていてfpcのpathがわからない状態か、インストール自体失敗しているかのどちらかですね。
sh install.sh実行時に最初に
------------------------------------
This shell script will attempt to install the Free Pascal Compiler
version 3.0.2 with the items you select
Install prefix (/usr or /usr/local) [/usr] :
---------------------------------------
↑これはインストール先の指定です。デフォルトでは/usrにインストールされます。ディレクトリを指定したらそこにインストールされます。/usrもしくは指定したディレクトリのPATHが通っていない可能性がありますね。
お世話になります
[vagrant@localhost ~]$ fpc -version
[0.004] Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64
[0.004] Copyright (c) 1993-2016 by Florian Klaempfl and others
[0.004] error: No source file name in command line
[0.004] error: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
この意味がよくわかりません
これを見る限りは
0.004] Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64
[0.004] Copyright (c) 1993-2016 by Florian Klaempfl and others
OKだけどあとの2つがエラーになっています
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/27 03:55
2017/07/27 12:37
2017/07/27 23:43
2017/07/28 00:20
2017/07/28 00:41
2017/07/28 00:59
2017/07/28 06:34