2014-03-05 42 views
-1

安裝Eclipse我現在面臨的問題,而安裝焦油zxf eclipse-cpp-helios-linux-gtk.tar.gz如何在Ubuntu

eclipse文件中Ubuntu。請告訴我如何解壓這個文件。

要解壓我用下面的命令

1. $ gunzip file.gz 
    2. $ gunzip < file.tar.gz | tar xvf - 
    3. $ gunzip < file.tgz | tar xvf - 
+0

tar -zxvf eclipse-cpp-helios-linux-gtk.tar.gz給出了什麼問題? –

+0

是的,我爲C/C++開發人員下載了Eclipse IDE,它要求使用jvm,然後我安裝了jvm,但是在終端中它顯示了bash:沒有這樣的直接數據。 請告訴我,如果我安裝eclipse cdt。我如何在終端中運行它?如果我需要JVM環境,這適用於Ubuntu 12.04或13.10。 在此先感謝 – user3141327

+0

那麼你有安裝Java? Eclipse無法運行沒有Java。 –

回答

0

嘗試以下

#!/bin/sh 

ECLIPSE=/usr/lib/eclipse/eclipse 

inject_update_site(){ 
if [ ! -e "$1" ] ; then 
echo "W: Cannot find $1" 2>&1 
return 1 
fi 
cat - >>"$1" <<eof> 
repositories/http\:__download.eclipse.org_releases_indigo/enabled=true 
repositories/http\:__download.eclipse.org_releases_indigo/isSystem=false 
repositories/http\:__download.eclipse.org_releases_indigo/nickname=Indigo Update Site 
repositories/http\:__download.eclipse.org_releases_indigo/uri=http\://download.eclipse.org/releases/indigo/ 
EOF 

} 

if [ ! -d ~/.eclipse/ ] ; then 
$ECLIPSE -clean -initialize || exit $? 
artifact=$(find ~/.eclipse \ 
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.artifact.repository.prefs) 
metadata=$(find ~/.eclipse \ 
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.metadata.repository.prefs) 
if [ -z "$artifact" ] || [ -z "$metadata" ]; then 
echo "W: Cannot inject update-sites, cannot find the correct config." 2>&1 
else 
(inject_update_site "$artifact" && \ 
inject_update_site "$metadata" && \ 
echo "I: Injected update sites") || echo "W: Could not inject update sites." 2>&1 
fi 
fi 

exec $ECLIPSE "[email protected]" 

參考 How to install the latest version of Eclipse Classic on Ubuntu 12.04 using the terminal?

0
tar xzf xxxx.tar.gz 
tar xjf xxxx.tar.bz2 
1

焦油-xzf焦油文件name.tar.gz/path/to/location

或使用7Zip工具。右鍵單擊並提取。