安装 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 给出选项。变量?
[更新] 修复
从罗素的回答中,我导出了设备的变量
export PGPLOT_DEV=/XSERVE; cpanm PGPLOT
并通过 x11vnc 连接到服务器(连接到主显示器)以关闭 pgplot 测试正在显示的所有窗口。
[注意] 即使使用 ssh -X,也不要尝试在屏幕下安装 pgplot perl lib,很可能您不在启动原始屏幕的同一台计算机上,X 重定向将不起作用。您可以通过 vnc 连接到主显示器来规避该限制,否则您将无法完成安装。xrdp 和其他打开新会话的 vnc 将不起作用。您需要共享主显示。