解決Mac OS下安裝MyEclipse報錯:Your system does not have sufficient memory to support MyEclipse


最近想嘗嘗鮮,翻牆去www.myeclipseide.com上下載了最新版的MyEclipse 15CI版,安裝的時候,報告如下錯誤(MyEclipse 14也會出現這個問題):

Your system does not have sufficient memory to support MyEclipse. MyEclipse requires 256 MBs physical memory and 64 MBs of virtual memory. Your system only has 4056708 MBs of physical memory, and 0 MBs of virtual memory".

 

百度和Google了下,發現很多解決方案都是寫個程序強制性耗盡系統物理內存,逼迫系統開始使用虛擬內存,然后開始安裝,這很明顯是個很Low的辦法,

功夫不費有心人,終於找到了如下靠譜的解決方案,目前已經成功安裝:

1、下載完整的DMG安裝文件

2、雙擊打開,此時會出現一個MyEclipse 15 XXXXX Installer.app文件,右鍵顯示包內容

3、將包里的Contents文件夾復制出來,隨便放個地方

4、刪除 Contents/_CodeSignature 目錄

5、編輯 MacOS/standard-install文件,里面大概是這樣的:

1 #!/bin/sh
2 dir=`dirname "$0"`
3 cd "${dir}/../Installer"
4 dir=`pwd`
5 ./pulse-one -vmargs -Xms192m -Xmx256m -XX:MaxPermSize=128m -d32 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts "-Dpulse.settings.directory=${dir}/../Settings" "-Dpulse.artifact.bin.path=${dir}/../Resources/artifacts.bin" "-Dpulse.installer.directory=${dir}" &

6、在-vmargs里增加-Dcom.genuitec.pulse.debug.memory.check=true並保存

7、運行Contents/MacOS/standard-install 文件,搞定!

原文:

Download the full installer 
- Open the DMG and then show the package content of the installer 
- Copy the content of the Show Package contents to a separate folder 
- Delete the CodeSignature folder 
- From SystemPrefences temporarly enable "Allow apps downloaded from Anywhere" (in your Security & Privacy settings) 
- Edit the file MacOS/standard-install and add the following to the vmargs: "-Dcom.genuitec.pulse.debug.memory.check=true" 
- Run standard-install

出處:https://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=137321


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM