Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在amazon实例上安装Perl DBI_Perl_Dbi - Fatal编程技术网

在amazon实例上安装Perl DBI

在amazon实例上安装Perl DBI,perl,dbi,Perl,Dbi,我有使用DBIE的perl脚本。g use DBI; 当我执行脚本时,出现以下错误: Can't locate DBI.pm in @INC (@INC contains: /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

我有使用DBIE的perl脚本。g

use DBI;
当我执行脚本时,出现以下错误:

Can't locate DBI.pm in @INC (@INC contains: /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 ./install.pl line 15.
已尝试安装DBI: a)
sudoperl-MCPAN-e'installdbi'

 failed with YAML error 
b)
sudo apt get安装libyaml perl

c) 重新运行(a)
sudoperl-MCPAN-e'installdbi'

 failed with YAML error 
d) c)失败,因此尝试了这种方法

`sudo cpan DBI  
在步骤d)和d)中,我最后都会遇到以下错误:

 Writing Makefile for DBI
Writing MYMETA.yml
  TIMB/DBI-1.627.tar.gz
  make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
我还需要安装
DBD::mysql

系统信息:
per-v:(v5.14.2)为x86_64-linux-gnu-thread-multi构建

编辑: 此外,我还安装了gcc
sudo-apt-get-install-gcc

而且
cc-v
现在是


..线程模型:posix gcc版本4.6.3……

所以在谷歌搜索之后,我找到了这个关于
make
故障的链接

3号岗位为我工作

  • sudo apt get安装libyaml perl

  • sudoperl-MCPAN-e'installdbi'

  •  failed with YAML error 
    
    安装DBI (除了上述问题中的步骤)

    a)
    sudo-apt-get-install-build-sential-autoconf-automake-libtool-gdb

    b)
    sudo cpan DBI

    安装DBD::mysql a)
    sudo apt get安装mysql服务器

    b)
    sudo apt get安装libmysqlclient dev

    c)
    sudocpandbd::mysql

    我需要以上所有步骤,因为我有新的实例