10

perl 用の GD ライブラリをインストールしようとしましたが、長い間役に立ちませんでした。インターネットで見つけたあらゆることを試しましたが、何もありませんでした。GD パッケージを必要とする Circos グラフを取得しようとしています。

CPAN からインストールしようとすると、次のエラーが表示されます。

    Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD.t ........ 1/12 Can't load './blib/arch/auto/GD/GD.bundle' for module GD: dlopen(./blib/arch/auto/GD/GD.bundle, 2): Symbol not found: _jpeg_resync_to_restart
  Referenced from: /usr/lib/libgd.2.dylib
  Expected in: flat namespace
 in /usr/lib/libgd.2.dylib at /opt/local/lib/perl5/5.14.1/darwin-multi-2level/DynaLoader.pm line 194.
 at t/GD.t line 14
Compilation failed in require at t/GD.t line 14.
BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD.t ........ Dubious, test returned 2 (wstat 512, 0x200)
Failed 12/12 subtests 
t/Polyline.t .. Can't load '/Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/arch/auto/GD/GD.bundle' for module GD: dlopen(/Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/arch/auto/GD/GD.bundle, 2): Symbol not found: _jpeg_resync_to_restart
  Referenced from: /usr/lib/libgd.2.dylib
  Expected in: flat namespace
 in /usr/lib/libgd.2.dylib at /opt/local/lib/perl5/5.14.1/darwin-multi-2level/DynaLoader.pm line 194.
 at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /Users/zehira/.cpan/build/GD-2.46-mp3nuO/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/GD.t      (Wstat: 512 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 12 tests but ran 1.
t/Polyline.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
Files=2, Tests=1,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.04 cusr  0.01 csys =  0.08 CPU)
Result: FAIL
Failed 2/2 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
  LDS/GD-2.46.tar.gz
  make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports LDS/GD-2.46.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 LDS/GD-2.46.tar.gz                           : make_test NO

--enable-shared --enable-static オプションを使用して jpeg ライブラリを再インストールしようとしましたが、どちらも役に立ちませんでした。また、Mac に付属の perl インストールを台無しにしてしまったのではないかと考えて、MacPorts バージョンの perl もインストールしました。なぜこれが起こっているのか誰にも分かりますか?

(はい、私はターミナルの世界に比較的慣れていないので、まだ自分の道をナビゲートしようとしています)

ありがとう!

4

5 に答える 5

11

homebrewを使用してこの問題を解決し、最初に libgd をインストールしてからcpanをインストールしました。それは完璧に機能しました。

brew install libgd

cpan install GD
于 2015-08-03T12:45:51.103 に答える
3

問題なく段階的にインストールしました

http://zientzilaria.herokuapp.com/blog/2012/06/03/installing-circos-on-os-x/

多分それは助けます...

于 2013-07-19T12:20:22.557 に答える
1

まず、私は circos ユーザーでもあります :) perl と circos が必要とするモジュールのために win/linux/mac に circos をインストールするのは簡単ではありません。

私の練習の上で、最初からこのようにする方がよいでしょう:

  1. perlをインストールします(非常に人気のある新しいバージョンを選択してください)
  2. サーコスをインストールします (参照http://circos.ca/software/installation/ )
  3. circos が必要とするモジュールをインストールしますが、GD は除外します。これは簡単です。ダウンロードしてコピーするか、CPAN でインストールするだけです (参照http://www.rcbowen.com/imho/perl/modules.html ) 。
  4. GD のインストール: GD は特別なモジュール (プラットフォームに依存しない) であり、OS でビルドしてからインストールする必要があります: http://www.sharedproteomics.com/forum/showthread.php?325-Installing-GD-on- Mac-OSX-10.6

あなたの問題はstep3にあるようです!!! Google がお手伝いできない場合は、circos の Google グループを使用してヘルプをリクエストする方法もあります。http: //groups.google.com/group/circos-data-visualization では、Martin と他の circos ユーザーが直接お手伝いします

于 2012-03-12T07:12:52.850 に答える
0

Circos のインストールの前提条件については、CircosAPI のドキュメントが非常に役立ちます。これは OSX 10.8 用に作成されたもので、OS X Yosemite でも動作します。

http://kylase.github.io/CircosAPI/os-x-installation-guide/

于 2015-03-21T17:30:20.650 に答える
-2

が必要libgdです。使用している場合は、使用してubuntu取得できます

sudo apt-get install libgd-gd2-perl

circosその後、インストール手順に記載されている通常の手順に従うことができます。

于 2014-09-27T11:53:01.923 に答える