hack のためのネタ帳, etc,,,

shared library が読めないため起動できない場合 (2010-05-24)

必要最低限のパッケージだけ入れた場合次のようなエラーが出ることがある。
$ convert
/usr/bin/convert.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
この場合、cygcheck を用いて問題の DLL を特定すれば良い。
$ cygcheck convert
<中略>
cygcheck: track_down: could not find cyggomp-1.dll
問題の DLL が含まれるパッケージは同じく cygcheck に -p オプションを付けて次のようにすれば検索できる。
$ cygcheck -p cyggomp-1.dll
Found 3 matches for cyggomp-1.dll.
libgomp1/libgomp1-4.3.2-2       GCC Release series 4 compiler: GOMP shared runtime
libgomp1/libgomp1-4.3.4-1       GCC Release series 4 compiler: GOMP shared runtime
libgomp1/libgomp1-4.3.4-3       GCC Release series 4 compiler: GOMP shared runtime
あとは、Cygwin の setup から必要と分かったパッケージをインストールすればよい。

GOMP ってのは OpenMP のライブラリなのでマルチコアCPUで効果が期待できそうだけど、
パッケージの依存関係記述漏れだよね?これは?

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます