Perl DBI install (local)

  1. down­load the pack­ages;
    DBI, DBI::DBD, DBD::mysql
  2. 安装DBI;
  3. 生成make­file
    DBI的Makefile.PL使用了Config包,如果是本地版的perl,需要编辑Makefile.PL,将通过$Config{“name”}获取的变量的路径稍作调整。
    调整好后,就可以生成makefile文件了。
    perl Makefile.PL PREFIX= PERL_LIB=
  4. 修改make­file文件
  5. make test (option­al)
  6. make install

Leave a Reply

Your email address will not be published. Required fields are marked *