zoukankan      html  css  js  c++  java
  • 记 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非常丑

    1. 用 export GNOME_DESKTOP_SESSION_ID=1 & monodevelop
      执行的话会让Monodevelop用gnome-terminal做为默认终端

    2. 把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) 
     <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) 
     Ctrl <KeyPress> P: print() 
    
    
    

    最后,执行以下命令让设置生效

    xrdb -load ~/.Xresources

    顺便吐槽一下,xterm的默认界面真丑陋,不知道吓跑了多少人…..

  • 相关阅读:
    ajax 上传文件
    在linux服务器centos上使用svn同步代码到项目中
    css3 选择器 权重问题 (第二部分)
    css3 选择器 权重问题 (第一部分)
    css3 文本模型
    (java)剑指offer题三
    (java)剑指0ffer题二
    (java)剑指offer题一
    java程序入口main()方法浅析
    jar命令浅析
  • 原文地址:https://www.cnblogs.com/blfshiye/p/5258214.html
Copyright © 2011-2022 走看看