2016-08-20 52 views
0

後,我安裝的梨,發現我有梨目錄裏面的Structures_Graph目錄 -無法找到「結構/ Graph.php」在亞馬遜上安裝PHP梨Structures_Graph Linux的

/home/ec2-user/pear/tests 

但是,我無法找到Structures/Graph.phpStructures/Graph/Node.phphttps://pear.php.net/package/Structures_Graph/docs/latest/li_Structures_Graph.html

提到我下面這篇文章http://www.codediesel.com/algorithms/building-a-graph-data-structure-in-php/,隨後安裝Structures_Graph的必須與這個工作 -

pear install Structures_Graph 

我得到 -

pear/Structures_Graph is already installed and is the same as the released version 1.1.1 
install failed 

回答

0

我懷疑/home/ec2-user/pear/tests是你的PEAR目錄;你可能有一個全系統的梨安裝。

獲取其位置與

$ pear config-get php_dir