从源代码安装perl 5.12.3+DBI/DBD

前端之家收集整理的这篇文章主要介绍了从源代码安装perl 5.12.3+DBI/DBD前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

一,安装perl

1、下载5.12.3.tar.gz

2、解压

3、进入解压目录执行

./Configure -des -Dprefix=/usr/local

make

make test

make install

二,安装数据库模块

1、下载DBI

2、进入到解压目录

执行perl Makefile.PL

make

make test

make install

3、下载DBD-MysqL,前提安装MysqL客户端

4、进入到解压目录

执行perl Makefile.PL --testuser=zhangyajun --testpassword=****** --testhost=ip --testdb=db --MysqL_config=/usr/local/MysqL/MysqL-5.1.50-linux-x86_64-glibc23/bin/MysqL_config

make

make test

make install   参考 blog.csdn.net/kohaku/article/details/6049183

猜你在找的Perl相关文章