ラベル debian の投稿を表示しています。 すべての投稿を表示
ラベル debian の投稿を表示しています。 すべての投稿を表示

2017年3月12日日曜日

UbuntuでMissing (or bad) header file: zlib.hと言われた時の対処法

Linuxでcabalをインストールした時に次のエラーが出た。

 $ ./bootstrap.sh
...
Configuring zlib-0.5.4.1...
Setup: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
* Missing C library: z
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

Error during cabal-install bootstrap:
Configuring the zlib package failed.

Missing (or bad) header file: zlib.h

zlibがないことによるものらしい。UbuntuやDebian系は zlib1g-dev という名前のパッケージをインストールすればよい。


 $ sudo apt-get install zlib1g-dev

2015年8月3日月曜日

Beamerでdvipdfm.def not found と言われた時の解決法

結論を言うと古い「dvipdfm」ではなく「dvipdfmx」 を使いましょうということ。

ソースコードの最初の行を次のように変更すればよい。


- \documentclass[dvipdfm]{beamer}
+ \documentclass[dvipdfmx]{beamer}

しかし、これですぐに解決せず、次のようなエラーが起こることがある。

 runpopen command not allowed: extractbb


! LaTeX Error: Cannot run pipe command. Try --shell-escape
(--enable-pipes in MikTeX) option.
これは、エラーメッセージに書いてあるように、platexコマンドへ --shell-escapeというオプションを渡してやるようにすると解決する。

Enjoy!

2011年10月28日金曜日

dvipdfmx.def not found と言われたときの対処

とりあえずCTANから同ファイルをダウンロードし、ソースディレクトリにおけば良いようだ。

日本ではwww.ring.gr.jpにCTANのミラーがあるようだ。

次のURLからdvipdfmx.defをダウンロードしよう。

http://www.ring.gr.jp/pub/text/CTAN/macros/latex/contrib/dvipdfmx-def/dvipdfmx.def

2011年6月16日木曜日

Linuxで 「zlib.h no such file or directory ZLib.cpp:53: error」のように 言われたときの対処法

Linuxでzlib.hがないというエラーが出たときはzlibに関するパッケージが不足しているかららしい。

Debianではaptで簡単に解決できる。

sudo aptitude install zlib1g-dev

2011年6月7日火曜日

aptitude updateで「NO_PUBKEY 07DC563D1F41B907」と言われたときの対処法

ある日Debian (squeeze) で aptitude updateを実行したら次のようなエラーが出た

$ sudo aptitude update

取得:9 http://www.debian-multimedia.org squeeze/non-free i386 Packages/DiffIndex [505 B]
183 kB を 3秒 秒でダウンロードしました (55.4 kB/s)
W: GPG エラー: http://www.debian-multimedia.org squeeze Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 07DC563D1F41B907


  • 解決方法



  1. http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2010.12.26_all.deb からdebファイルをダウンロード

  2. $ sudo dpkg -i ~/Download/debian-multimedia-keyring_2010.12.26_all.deb

  3. $ sudo aptitude update