2015-11-25 23 views
1

我想在SUN solaries 11安裝perl DBI,但我總是得到了以下錯誤:在SUN]安裝Perl DBI Solaries

sh: line 1: cc: not found 
*** Error code 127 
make: Fatal error: Command failed for target `Perl.o' 

我做了如下步驟:

下載並提取DBI- 1.628然後在shell命令中:

cd DBI-1.628 
make realclean 
perl Perlfile.PL 
meke 
+0

我已經安裝了gcc,當我輸入哪個gcc時,我得到了/ usr/bin/gcc – masker

+0

需要使用與編譯Perl('cc')相同的編譯器來編譯庫。 – ikegami

+0

我怎麼能得到它,perl已經安裝了我要安裝DBI,DBD – masker

回答

3

這意味着它在你的機器上找不到編譯器。您應該將編譯器的路徑添加到PATH變量中。 gcc和cc不是一回事。你應該安裝cc。