在fc6上安裝myeclipse全程記錄
今天用Fedora core6重裝了一次系統,接著下載jdk,安裝myeclipse,出現了一些問題,經過各位達人的幫忙,終於解決了,現在把整個過程記錄一下。
1.下載並安裝jdkjdk下載完成後,在命令列裡輸入:
rpm -ivh jdk-1_5_0_07-linux-i586.rpm
自動安裝jdk,系統預設將jdk安裝在
/usr/java/jdk1.5.0_07
2.下載並安裝eclipse,解壓縮即可
3.下載並安裝Myeclipse我下載的是一個 MyEclipse_5_0_1GA_E3_2.bin檔案,在命令列裡直接輸入: ./MyEclipse_5_0_1GA_E3_2.bin提示:bash: ./MyEclipse_5_0_1GA_E3_2.bin: 許可權不夠
然後輸入: chmod +x MyEclipse_5_0_1GA_E3_2.bin再接著輸入: ./MyEclipse_5_0_1GA_E3_2.bin
螢幕顯示以下資訊: 再輸入以下命令:Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
Launching installer...
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.4460/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
然後,我在高手的指點下,輸入以下命令:export CLASSPATH=/tmp/install.dir.4460/InstallerData:/tmp/install.dir.4460/InstallerData/installer.zip:
其中,4460是在錯誤中給出的資訊,接著輸入以下命令: /usr/java/jdk1.5.0_07/bin/java -Xmx268435456
-Xms67108864
com.zerog.lax.LAX /tmp/install.dir.4460/temp.lax /tmp/env.properties.4460 至此,Myeclipse就可以順利安裝了。4.啟動Myeclipse由於在系統安裝過程中,系統內建了一個jdk,所以啟動Myeclipse時會出現問題,不知道選擇哪個jdk,可以輸入以下命令選擇:
alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_10/bin/java 1
alternatives --config java
給出如下提示:
共有 2 個程式提供“java”。
選擇 命令
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /usr/java/jdk1.5.0_07/bin/java
按 Enter 來儲存當前選擇[+],或鍵入選擇號碼:
輸入2,斷行符號,重啟Myeclipse,一切就ok了。