如何避免cpanm停止安装,等待仅在Build.log中显示的提示

时间:2014-12-21 00:11:34

标签: perl cpanm

安装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给出选项。瓦尔?

[更新] FIX

从Russell回答我导出了设备

的变量
 export PGPLOT_DEV=/XSERVE; cpanm PGPLOT

与x11vnc连接到服务器(到主显示器)以关闭pgplot测试显示的所有窗口。

[注意]即使使用ssh -X,也不要尝试在屏幕下安装pgplot perl lib,很可能是你不在启动原始屏幕的同一台计算机上,并且X重定向不起作用。您可以通过与主显示器的vnc连接来规避该限制,否则您将无法完成安装。 xrdp和其他打开新会话的vnc将无法正常工作。您需要共享主显示屏。

1 个答案:

答案 0 :(得分:1)

通过阅读分发中的test.pl,它会检查PGPLOT_DEV环境变量。对于Unix / Linux和/ PNG for Windows,看起来有效值为/ XSERVE。