Can't locate Msql.pm in @INC ...... - BBS
By Barb Cronin
at 2018-05-17T09:39
at 2018-05-17T09:39
Table of Contents
※ 引述《TPPCMAN ()》之銘言:
: 要判定 在9.3上面有安裝成功 則是在 sh 跑完後
: 執行 perl test.pl 檔
: 執行的結果會在文字模式 列出一個小表格
: 11.1 執行 perl test.pl 則是 出現如下錯誤
: Can't locate Mysql.pm in @INC (you may need to install the Mysql module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24 .) at test.pl line 2.
: BEGIN failed--compilation aborted at test.pl line 2.
照 log 猜...不知道是不是 p5-DBD-mysql 之類沒安裝?
https://www.freshports.org/databases/p5-DBD-mysql/
又或是大小寫? ( mysql.pm v.s. Mysql.pm )
或是要再跟前面的人確認他當時用的版本是不是也另外打包自己才有的東西?
: 一開始 我猜想 或許是 作業系統太舊 而 pkg 太舊
: 也下載了 或是 ports裝 比較適於11.1的pkg
: 但錯誤依舊
: 還蠻傷腦筋的
: --------------附上 test.pl 內容---------------
: #!/usr/bin/perl
: use Mysql;
: $dbh=Mysql->connect("localhost","mysql","root","XXXX");
: $q_str="show databases";
: $row=$dbh->query($q_str);
: while(($db)=$row->fetchrow) {
: $q_str = "show tables from $db";
: $row1=$dbh->query($q_str);
: while(($tbl)=$row1->fetchrow) {
: $q_str="alter table $db.$tbl type=MyISAM;";
: print "$q_str\n";
: }
: }
--
Paramore - Franklin
And when we get home, I know we won't be home at all
This place we live, it is not where we belong
And I miss who we were in the town that we could call our own
Going back to get away after everything has changed
--
: 要判定 在9.3上面有安裝成功 則是在 sh 跑完後
: 執行 perl test.pl 檔
: 執行的結果會在文字模式 列出一個小表格
: 11.1 執行 perl test.pl 則是 出現如下錯誤
: Can't locate Mysql.pm in @INC (you may need to install the Mysql module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24 .) at test.pl line 2.
: BEGIN failed--compilation aborted at test.pl line 2.
照 log 猜...不知道是不是 p5-DBD-mysql 之類沒安裝?
https://www.freshports.org/databases/p5-DBD-mysql/
又或是大小寫? ( mysql.pm v.s. Mysql.pm )
或是要再跟前面的人確認他當時用的版本是不是也另外打包自己才有的東西?
: 一開始 我猜想 或許是 作業系統太舊 而 pkg 太舊
: 也下載了 或是 ports裝 比較適於11.1的pkg
: 但錯誤依舊
: 還蠻傷腦筋的
: --------------附上 test.pl 內容---------------
: #!/usr/bin/perl
: use Mysql;
: $dbh=Mysql->connect("localhost","mysql","root","XXXX");
: $q_str="show databases";
: $row=$dbh->query($q_str);
: while(($db)=$row->fetchrow) {
: $q_str = "show tables from $db";
: $row1=$dbh->query($q_str);
: while(($tbl)=$row1->fetchrow) {
: $q_str="alter table $db.$tbl type=MyISAM;";
: print "$q_str\n";
: }
: }
--
Paramore - Franklin
And when we get home, I know we won't be home at all
This place we live, it is not where we belong
And I miss who we were in the town that we could call our own
Going back to get away after everything has changed
--
Tags:
BBS
All Comments
Related Posts
Can't locate Msql.pm in @INC ......
By Genevieve
at 2018-05-16T16:26
at 2018-05-16T16:26
Meltdown Spectre 相關
By Connor
at 2018-04-21T02:29
at 2018-04-21T02:29
網卡在凌晨時 一直重啟
By Ingrid
at 2018-04-20T01:34
at 2018-04-20T01:34
網卡在凌晨時 一直重啟
By Agnes
at 2018-04-18T10:21
at 2018-04-18T10:21
Mariadb 啟動錯誤問題
By Zanna
at 2018-02-23T22:10
at 2018-02-23T22:10