8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Mac】SWI-Plorogでソースファイルを読み込む

Last updated at Posted at 2015-03-07

Macにて,SWI-Plorogのソースファイルの読み込みで詰まったのでメモ.

#環境
OS X 10.9.5
SWI-Prolog6.6.6

#DL先
SWI-Prolog より

SWI-Prolog 6.6.6 for MacOSX 10.6 (Snow Leopard) and later on intel

をダウンロード

#PATHの設定
SWI-Plorogを使うにはswiplというファイルがある場所にPATHを通す必要がある.
通常は/opt/local/bin/swiplがあるらしいが,
自分の場合は/Applications/SWI-Prolog.app/Contents/MacOS/にあった.
したがってPATHを/Applications/SWI-Prolog.app/Contents/MacOS/に通す.

PATHの通し方

#実行
ターミナルを起動し、次のコマンドを実行するとソースファイルを読み込んで起動することができる.
swipl -f ファイル名.swi

8
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?