2009-09-15 50 views

回答

1

根據Brendan Gregg究竟是誰開發的Perl工具與Solaris系統的工作:

的kstat的Perl庫附帶 的Solaris。

然而,在他的一個模塊,他包括以下注意事項:

 
# - If you have upgraded /usr/bin/perl, this program may be unable to 
# find the Sun::Solaris::Kstat library (which is under /usr/perl5). 
# Before the "use strict;" line, you may need to add, 
# use lib "/usr/perl5/5.6.1/lib"; 
# to point to your location of Sun/Solaris/Kstat.pm. 

如果不工作,你可能要爲Kstat.pm運行find命令,是某些是否不是這個文件存在於你係統的任何地方。

+0

感謝亞當,我發現這與你給出的相同路徑,但是當在我的腳本中使用這個路徑時,我得到了同樣的錯誤「Can not locate loadable object for module Sun :: Solaris :: Kstat」。請建議。 – Space 2009-09-17 07:49:28

+0

@Virus:該模塊與加載Kstat所需的C庫有關。錯誤信息本身應該告訴你特定文件的名稱(通常以'.so'或'.o'結尾)。您需要在您的系統上找到該查找,然後將其路徑添加到'LD_LIBRARY_PATH'環境變量,或修改'/ etc/ld.so.conf'並運行具有根特權的'ldconfig'來修改系統範圍的庫組態。 – 2009-09-17 11:32:25