安裝時請注意順序:
1.安裝mysql 並執行
2.首先安裝dbi :
perl makefile.pl
make
make install
3.dbd-mysql包
#perl makefile.pl --mysql_config=/usr/local/mysql/bin/mysql_config (指定mysql_config位置)
或者:#perl makefile.pl -mysql_config=/home/mysql/bin/mysql_config -testuser=root -testpassword=dbadmin
#make
#make test //檢測安裝是否成功,如果在此處有錯誤提示,則需要做後面的cp 檔案的動作
#make install
install_driver(mysql) failed: can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/dbd/mysql/mysql.so' for module dbd::mysql: libmysqlclient.so.12: cannot open shared object file: no such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/dynaloader.pm line 230.
at (eval 6) line 3
compilation failed in require at (eval 6) line 3.
perhaps a required shared library or dll isn't installed where expected
at /root/mysqlreport line 162
cp檔案的動作:
#cp /usr/local/mysql40/include/mysql/* /usr/include/
#cp /usr/local/mysql40/lib/mysql/* /usr/lib/
測試:
首先在test庫中建立乙個table:
如果能夠正確的顯示出testuser 那表示安裝成功。
create table test(id int,name varchar(30))
然後執行下面的perl指令碼插入一條資料並且查詢得到結果:
#!/usr/bin/perl
use dbi;
my $dbh = dbi->connect("dbi:mysql:database=test;host=localhost","testuser","testpassword", );
my $rows = $dbh->do("insert into test (id, name) values (1, 'testuser')");
my $query = $dbh->prepare("select name from test");
$query->execute();
while(my $rs = $query->fetchrow_hashref()) /n"; }
然後再重新安裝dbd: dbd-mysql-4.005
#make clean
#perl makefile.pl --mysql_config=/usr/local/mysql/bin/mysql_config
#make
#make test
#make install
Latex 安裝步驟說明
tex系統最早由stanford大學教授donald e.kunth製成的計算機排版軟體系統,大家對他的 the art of computer programming 應該不會陌生。實際上,tex的製成正是由於上述的書出版樣本,令他不滿意,所以激發了他創制了tex排版系統。正所謂 乙個確定性的需求...
LAMP環境配置安裝注意安裝步驟及說明事項
shell yum y install gcc shell cd home hsk tar shell tar zxvf zlib 1.2.5.tar.gz shell cd zlib 1.2.5 shell configure build arm linux 這個配置編譯命令不要加目錄引數 啟動a...
bluecam連線步驟說明 智慧型門鎖安裝步驟分享
智慧型門鎖安裝步驟 步驟一 劃線和鑽孔 根據安裝圖紙所示尺寸,在門上標出有關孔位的輪廓線和圓孔中心線,按標註尺寸鑽出各安裝孔,即可開始安裝門鎖。步驟二 安裝鎖體 檢驗鎖體各孔位與安裝孔位是否一致,合格後壓入鎖體 防盜門有天地杆的,一定要掛好天地杆,然後檢查天地鉤是否能正常使用 木門安裝鎖體時應換沒有...