6
6

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.

Pandocローカルでのビルドからテスト実行まで

Posted at

Pandoc開発環境を整えるまでの備忘録。

Haskell環境構築。時間かかる。CabalはHaskellのパッケージマネージャーにあたる。


$ brew install ghc cabal-install
$ cabal update
$ cabal install cabal-install

git clone

$ git clone git://github.com/jgm/pandoc.git
$ cd pandoc
$ git submodule update --init

cabal-sandboxを利用し、Pandoc専用のcabal環境を用意する(依存関係で悩まないようにするためなので必須ではない)。

それなりに時間がかかる。


$ cabal sandbox init
$ make deps

テストを実行する。


$ cabal configure --enable-tests
$ cabal build
$ cabal test
Preprocessing library pandoc-1.14.0.4...
In-place registering pandoc-1.14.0.4...
Preprocessing test suite 'test-pandoc' for pandoc-1.14.0.4...
Running 1 test suites...
Test suite test-pandoc: RUNNING...
Test suite test-pandoc: PASS
Test suite logged to: dist/test/pandoc-1.14.0.4-test-pandoc.log
1 of 1 test suites (1 of 1 test cases) passed.
6
6
0

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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?