为 perl 安装 GD 模块 - 安装程序时出错
Installing GD module for perl - Errors when installing program
我目前正在尝试在 Ubuntu.
中安装 Circos
根据说明,我已转到 bin 文件夹并且 运行 perl circos
我收到一条错误消息,告诉我有一堆模块没有安装。我尝试安装它们,除了两个以外,其他都有效。
当我进入 cpan
shell:
cpan[7]> install GD.pm
Running install for module 'GD'
LDS/GD-2.56.tar.gz
Has already been unwrapped into directory /home/qiime/.cpan/build/GD-2.56-DqDuWT
LDS/GD-2.56.tar.gz
'/usr/bin/perl Build.PL --installdirs site' returned status 512, not re-running
如果我从主终端运行它:
qiime@qiime-190-virtual-box:~/Documents/circos-0.69/bin$ perl -MCPAN -e 'install GD'
Reading '/home/qiime/.cpan/Metadata'
Database was generated on Wed, 27 Jan 2016 07:41:02 GMT
Running install for module 'GD'
Checksum for /home/qiime/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
==> Couldn't mkdir '/home/qiime/.cpan/build/tmp-8161': Permission denied
==> Cannot continue: Please find the reason why I cannot make the <==
==> directory <==
==> /home/qiime/.cpan/build/tmp-8161 <==
==> and fix the problem, then retry. <==
其他(总共约 15 个模块)模块安装没有问题。我不确定此时该做什么。我想这很简单,我想念...?
为了完整起见,这里是尝试 运行 perl circos
:
的错误
qiime@qiime-190-virtual-box:~/Documents/circos-0.69/bin$ perl circos
*** REQUIRED MODULE(S) MISSING OR OUT-OF-DATE ***
You are missing one or more Perl modules, require newer versions, or some modules failed to load. Use CPAN to install it as described in this tutorial
http://www.circos.ca/documentation/tutorials/configuration/perl_and_modules
missing GD
error Can't locate GD.pm in @INC (@INC contains: /home/qiime/Documents/circos-0.69/bin/lib /home/qiime/Documents/circos-0.69/bin/../lib /home/qiime/Documents/circos-0.69/bin /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 25) line 1.
missing GD::Polyline
error Can't locate GD/Polyline.pm in @INC (@INC contains: /home/qiime/Documents/circos-0.69/bin/lib /home/qiime/Documents/circos-0.69/bin/../lib /home/qiime/Documents/circos-0.69/bin /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 26) line 1.
编辑:更新
我发现我可能没有安装libgd
,所以我就这样做了。我试过 运行ning install GD.pm
在 cpan
shell:
cpan[1]> install GD.pm
Reading '/home/qiime/.cpan/Metadata'
Database was generated on Wed, 27 Jan 2016 07:41:02 GMT
Running install for module 'GD'
Checksum for /home/qiime/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
Scanning cache /home/qiime/.cpan/build for sizes
............................................................................DONE
Configuring L/LD/LDS/GD-2.56.tar.gz with Build.PL
Configuring for libgd version 2.0.36.
Checking for stray libgd header files...none found.
Unknown option: installdirs
Usage: perl Build.PL [options]
Configure GD module.
Options:
-options "JPEG,FT,PNG,GIF,XPM,ANIMGIF" feature options, separated by commas
-lib_gd_path path path to libgd
-lib_ft_path path path to Freetype library
-lib_png_path path path to libpng
-lib_jpeg_path path path to libjpeg
-lib_xpm_path path path to libxpm
-lib_zlib_path path path to libpng
-ignore_missing_gd Ignore missing or old libgd installations and try to compile anyway
If no options are passed on the command line. The program will
attempt to autoconfigure itself with the gdlib-config program (present
in GD versions 2.0.27 or later). Otherwise it will prompt for these
values interactively.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL --installdirs site -- NOT OK
Failed during this command:
LDS/GD-2.56.tar.gz : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512
这并不是真正的修复本身,但请看一下:
- Cannot install GD module on darwin 13.0.1 using cpan
正如 G. Cito 所说,perl 中的 GD 模块存在问题。
我使用他发布的说明以及以下内容来修复错误:
- Cannot install GD module on darwin 13.0.1 using cpan
- Installing Circos on OS X
具体来说,为了正确安装 perl 的 GD 模块,我需要最后一段代码:
srctemp$ curl -O http://www.cpan.org/authors/id/L/LD/LDS/GD-2.49.tar.gz (if curl fails copy and past on your browser)
srctemp$ tar -xzvf GD-2.49.tar.gz
srctemp$ cd GD-2.49
srctemp/GD-2.49$ perl Makefile.PL
srctemp/GD-2.49$ make
srctemp/GD-2.49$ sudo make install
我目前正在尝试在 Ubuntu.
中安装 Circos根据说明,我已转到 bin 文件夹并且 运行 perl circos
我收到一条错误消息,告诉我有一堆模块没有安装。我尝试安装它们,除了两个以外,其他都有效。
当我进入 cpan
shell:
cpan[7]> install GD.pm
Running install for module 'GD'
LDS/GD-2.56.tar.gz
Has already been unwrapped into directory /home/qiime/.cpan/build/GD-2.56-DqDuWT
LDS/GD-2.56.tar.gz
'/usr/bin/perl Build.PL --installdirs site' returned status 512, not re-running
如果我从主终端运行它:
qiime@qiime-190-virtual-box:~/Documents/circos-0.69/bin$ perl -MCPAN -e 'install GD'
Reading '/home/qiime/.cpan/Metadata'
Database was generated on Wed, 27 Jan 2016 07:41:02 GMT
Running install for module 'GD'
Checksum for /home/qiime/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
==> Couldn't mkdir '/home/qiime/.cpan/build/tmp-8161': Permission denied
==> Cannot continue: Please find the reason why I cannot make the <==
==> directory <==
==> /home/qiime/.cpan/build/tmp-8161 <==
==> and fix the problem, then retry. <==
其他(总共约 15 个模块)模块安装没有问题。我不确定此时该做什么。我想这很简单,我想念...?
为了完整起见,这里是尝试 运行 perl circos
:
qiime@qiime-190-virtual-box:~/Documents/circos-0.69/bin$ perl circos
*** REQUIRED MODULE(S) MISSING OR OUT-OF-DATE ***
You are missing one or more Perl modules, require newer versions, or some modules failed to load. Use CPAN to install it as described in this tutorial
http://www.circos.ca/documentation/tutorials/configuration/perl_and_modules
missing GD
error Can't locate GD.pm in @INC (@INC contains: /home/qiime/Documents/circos-0.69/bin/lib /home/qiime/Documents/circos-0.69/bin/../lib /home/qiime/Documents/circos-0.69/bin /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 25) line 1.
missing GD::Polyline
error Can't locate GD/Polyline.pm in @INC (@INC contains: /home/qiime/Documents/circos-0.69/bin/lib /home/qiime/Documents/circos-0.69/bin/../lib /home/qiime/Documents/circos-0.69/bin /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 26) line 1.
编辑:更新
我发现我可能没有安装libgd
,所以我就这样做了。我试过 运行ning install GD.pm
在 cpan
shell:
cpan[1]> install GD.pm
Reading '/home/qiime/.cpan/Metadata'
Database was generated on Wed, 27 Jan 2016 07:41:02 GMT
Running install for module 'GD'
Checksum for /home/qiime/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
Scanning cache /home/qiime/.cpan/build for sizes
............................................................................DONE
Configuring L/LD/LDS/GD-2.56.tar.gz with Build.PL
Configuring for libgd version 2.0.36.
Checking for stray libgd header files...none found.
Unknown option: installdirs
Usage: perl Build.PL [options]
Configure GD module.
Options:
-options "JPEG,FT,PNG,GIF,XPM,ANIMGIF" feature options, separated by commas
-lib_gd_path path path to libgd
-lib_ft_path path path to Freetype library
-lib_png_path path path to libpng
-lib_jpeg_path path path to libjpeg
-lib_xpm_path path path to libxpm
-lib_zlib_path path path to libpng
-ignore_missing_gd Ignore missing or old libgd installations and try to compile anyway
If no options are passed on the command line. The program will
attempt to autoconfigure itself with the gdlib-config program (present
in GD versions 2.0.27 or later). Otherwise it will prompt for these
values interactively.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
LDS/GD-2.56.tar.gz
/usr/bin/perl Build.PL --installdirs site -- NOT OK
Failed during this command:
LDS/GD-2.56.tar.gz : writemakefile NO '/usr/bin/perl Build.PL --installdirs site' returned status 512
这并不是真正的修复本身,但请看一下:
- Cannot install GD module on darwin 13.0.1 using cpan
正如 G. Cito 所说,perl 中的 GD 模块存在问题。
我使用他发布的说明以及以下内容来修复错误:
- Cannot install GD module on darwin 13.0.1 using cpan
- Installing Circos on OS X
具体来说,为了正确安装 perl 的 GD 模块,我需要最后一段代码:
srctemp$ curl -O http://www.cpan.org/authors/id/L/LD/LDS/GD-2.49.tar.gz (if curl fails copy and past on your browser)
srctemp$ tar -xzvf GD-2.49.tar.gz
srctemp$ cd GD-2.49
srctemp/GD-2.49$ perl Makefile.PL
srctemp/GD-2.49$ make
srctemp/GD-2.49$ sudo make install