IDL7.1是32位的版本,由于64位系统缺失一些32位的库文件,所以IDL会闪退。
首先安装一些库文件:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo aptitude install libc6:i386 libstdc++6:i386libatk1.0-0:i386 libc6:i386 libcairo2:i386 libexpat1:i386libffi6:i386 libfontconfig1:i386 libfreetype6:i386 libgcc1:i386libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgtk2.0-0:i386libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386libselinux1:i386 libstdc++6:i386 libx11-6:i386 libxau6:i386libxcb1:i386 libxcb-render0:i386 libxcb-shm0:i386libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386zlib1g:i386
运行idlde,出现错误:
Gtk-Message: Failed to load module"overlay-scrollbar"
Gtk-Message: Failed to load module"unity-gtk-module"
解决:
sudo apt-get install --reinstallgtk2-engines-murrine:i386
sudo apt-get install unity-gtk2-module unity-gtk3-modulelibcanberra-gtk-module libcanberra-gtk3-module
sudo apt-get install unity-gtk2-module:i386libcanberra-gtk-module:i386
sudo apt-get install gtk2-engines:i386
sudo apt-get install libgtkmm-2.4-1c2:i386
sudo apt-get install libcanberra-gtk-module:i386
sudo apt-get install libc6:i386 libncurses5:i386libstdc++6:i386 libglib2.0-0:i386 libsoup2.4-1:i386libgtk2.0-0:i386
sudo apt-get install libicu-dev:i386
apt-get install gtk2-engines-murrine
sudo apt-get install libcanberra-gtk-module:i386
过程很乱,这些都尝试之后成功了,不太清楚那条命令比较核心。