我在Ubuntu上安裝了eclipse Luna,沒有互聯網連接。 我試圖運行簡單的「Hello World」程序,但我遇到的錯誤:在Ubuntu上找不到路徑中的程序「g ++」
Program "g++" not found in PATH
所以我下載(另一臺計算機上覆制吧)g++_4.8.2-1ubuntu6_i386.deb
並試圖安裝它:
sudo dpkg -i g++_4.8.2-1ubuntu6_i386.deb
,我得到這個錯誤信息:
dpkg: dependency problems prevent configuration of g++:i386:
g++:i386 depends on cpp (>= 4:4.8.2-1ubuntu6)
g++:i386 depends on gcc (>= 4:4.8.2-1ubuntu6)
g++:i386 depends on g++-4.8 (>= 4.8.2-5~)
g++:i386 depends on gcc-4.8 (>= 4.8.2-5~)
dpkg: error processing g++:i386 (--install)
我怎麼能安裝的g ++正確,沒有互聯網連接? 我會很樂意提供一些指導。
謝謝。