0

PGPLOT をインストールすると、インストールはここで永久に停止します。

$ cpanm PGPLOT
--> Working on PGPLOT
Fetching http://www.cpan.org/authors/id/K/KG/KGB/PGPLOT-2.21.tar.gz ... OK
Configuring PGPLOT-2.21 ... OK
Building and testing PGPLOT-2.21 ...

Build.logを見ると即答待ちのようです

$ tail ~/.cpanm/build.log 
       -L/usr/lib -L/usr/local/lib -lcpgplot -lpgplot -lX11 -lpng -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib -lgfortran -lm     \

chmod 755 blib/arch/auto/PGPLOT/PGPLOT.so
cp PGPLOT.bs blib/arch/auto/PGPLOT/PGPLOT.bs
chmod 644 blib/arch/auto/PGPLOT/PGPLOT.bs
Manifying blib/man3/PGPLOT.3
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `Makefile' has modification time 3e+02 s in the future
PERL_DL_NONLAZY=1 /home/pmg/perl5/perlbrew/perls/perl-5.16.0/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Default Device for plot tests [recommend /XSERVE] ?

デフォルトを強制するか、env を介してオプションを指定して、この質問を回避するにはどうすればよいですか。vars?

[更新]修正

ラッセルの回答から、デバイスの変数をエクスポートしました

 export PGPLOT_DEV=/XSERVE; cpanm PGPLOT

そして、pgplot テストが表示していたすべてのウィンドウを閉じるために、x11vnc でサーバー (メイン ディスプレイ) に接続しました。

[注] ssh -X を使用しても、画面の下に pgplot perl lib をインストールしようとしないでください。元の画面を起動したのと同じコンピューターにいない可能性があり、X リダイレクトが機能しません。メイン ディスプレイへの vnc 接続でこの制限を回避できます。そうしないと、インストールを完了できなくなります。新しいセッションを開く xrdp およびその他の vnc は機能しません。メインディスプレイを共有する必要があります。

4

1 に答える 1

1

ディストリビューション内の test.pl を読み取ると、PGPLOT_DEV 環境変数がチェックされます。有効な値は、Unix/Linux の場合は /XSERVE、Windows の場合は /PNG のようです。

于 2014-12-21T01:04:48.723 に答える