Linux 如何在Ubuntu中安装eclipse

Linux 如何在Ubuntu中安装eclipse,linux,eclipse,Linux,Eclipse,我在安装tarzxf eclipse cpp helios linux gtk.tar.gz时遇到问题 这是Ubuntu中的eclipse文件。请告诉我如何解压缩这个文件 为了解压,我使用了以下命令 1. $ gunzip file.gz 2. $ gunzip < file.tar.gz | tar xvf - 3. $ gunzip < file.tgz | tar xvf - 1.$gunzip文件.gz 2. $ gunzip>“$1”和1 其他的 (

我在安装tar
zxf eclipse cpp helios linux gtk.tar.gz时遇到问题

这是
Ubuntu
中的
eclipse
文件。请告诉我如何解压缩这个文件

为了解压,我使用了以下命令

   1. $ gunzip file.gz  
   2. $ gunzip < file.tar.gz | tar xvf -
   3. $ gunzip < file.tgz | tar xvf -
1.$gunzip文件.gz
2. $ gunzip
尝试以下操作

#!/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 "$@"
#/垃圾箱/垃圾箱
ECLIPSE=/usr/lib/ECLIPSE/ECLIPSE
注入\更新\站点(){
如果[!-e“$1”];则
echo“W:找不到$1”2>&1
返回1
fi
类别->>“$1”和1
其他的
(注入更新站点“$artifact”&\
注入更新站点“$metadata”&\
echo“I:注入的更新站点”)| echo“W:无法注入更新站点。”2>&1
fi
fi
exec$ECLIPSE“$@”
提及

tar-xzf tar-file-name.tar.gz/path/to/location


或者使用7Zip工具。右键单击并提取。

tar-zxvf eclipse-cpp-helios-linux-gtk.tar.gz有什么问题吗?是的,我下载了C/C++开发人员的eclipse IDE,它要求jvm,然后我安装了jvm,但在终端上显示bash:没有这样的指令。请告诉我,如果我安装了eclipse cdt。我如何在终端上运行它?如果我需要的话d JVM环境,适用于Ubuntu12.04或13.10。提前感谢您是否安装了java?没有java,Eclipse无法运行。是的,我已经安装了java,但仍然遇到同样的问题。如果您能发布完整的错误,我会更好。
tar xzf xxxx.tar.gz
tar xjf xxxx.tar.bz2