记 Ubuntu14.04 Monodevelop 安装的两个问题
1. Monodevelop 不能执行,显示错误 The assembly mscorlib.dll was not found or could not be loaded.
首先要确定mono安装完整,这个问题的可能原因是mono安装的路径不正确,monodevelop在/usr/local/lib下找不到mono.
解决的方法:
用which mono查看mono的安装路径,然后建立一个软连接过去就能够了:
sudo ln -s /usr/lib/mono /usr/local/lib/
推荐用软连接的方式,假设直接复制过去的话还会有其它的问题如c# compiler not found for mono / .net 4.0 什么的
2. Monodevelop的默认执行终端xterm非常丑
用 export GNOME_DESKTOP_SESSION_ID=1 & monodevelop
执行的话会让Monodevelop用gnome-terminal做为默认终端把Xterm设置一下
vim ~/.Xresources
贴上配置文件,我的配置文件例如以下:
! 把这个文件放到用户目录下
xterm*faceName: Source Code Pro:style=Regular
! support chinese
xterm*faceNameDoublesize: Droid Sans Fallback:style=Regular
xterm*faceSize: 13
xterm*vt100.geometry: 90x25
xterm*loginshell: true
! support 256color
xterm*termName: xterm-256color
!Color
term*cursorBlink: true
xterm*background: black
xterm*foreground: gray
xterm.borderLess: true
xterm.cursorBlink: true
xterm*colorUL: yellow
xterm*colorBD: white
! set Ctrl + V for paste http://forum.ubuntu.org.cn/viewtopic.php?t=143221
XTerm*VT100.Translations: #override Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n Ctrl <KeyPress> P: print() \n
最后,执行以下命令让设置生效
xrdb -load ~/.Xresources
顺便吐槽一下,xterm的默认界面真丑陋,不知道吓跑了多少人…..