Tag Archive for 'module'

让内核自动加载所需模块

需要在配置编译时,选择

1
2
3
4
5
6
 --- Enable loadable module support
   [*]     Module unloading
   [*]         Forced module unloading
   [*]     Module versioning support
   [_]     Source checksum for all modules
   [*]     Automatic kernel module loading

Automatic kernel module loading 是应该选择的项目 ;)

DBD::mysql安装问题

在安装perl的DBD::mysql模块的时候遇到一些问题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ perl -MCPAN -e shell
[....]
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
 
 Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
 not contain the path to mysql_config. Resorting to guessed values!
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
 Failed to determine directory of mysql.h. Use
 [....]

进入DBD::mysql的代码安装目录

1
2
3
4
5
$ cd $HOME/.cpan/build/DBD-mysql-3.0008
$ perl --mysql_config=$MYSQL_PREFIX_DIR/bin/mysql_config
$ make
$ make test
$ make install

这样就安装成功了