http://www.linuxidc.com/Linux/2013-06/85332.htm

Ubuntu 12.04下为codelite增添更新源

1、获取codelite的公钥

sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc

2、查看自己系统信息(如何知道所linux使用的是哪个发行版)

sudo lsb_release -a

例如:

Distributor ID:    Ubuntu

Description:      Ubuntu 12.04.2 LTS

Release:          12.04

Codename:        precise

3、根据上面的Codename,选择更新源

sudo apt-add-repository "deb http://repos.codelite.org/ubuntu/ precise universe"

sudo apt-get update

我的相关命令:

sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.7UjjuEvlkT --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --fetch-keys http://repos.codelite.org/CodeLite.asc
gpg: key 1AC82609: public key "David Hart (codelite key) <david@codelite.co.uk>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
yingc@yingc:~/work/public/solution$ sudo lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:    precise
yingc@yingc:~/work/public/solution$ sudo apt-add-repository "deb http://repos.codelite.org/ubuntu/ precise universe"
yingc@yingc:~/work/public/solution$ sudo apt-get install codelite

无法下载 http://security.ubuntu.com/ubuntu/pool/main/q/qt4-x11/qt4-qmake_4.8.1-0ubuntu4.4_i386.deb  404  Not Found [IP: 91.189.91.14 80]
E: 有几个软件包无法下载,您可以运行 apt-get update 或者加上 --fix-missing 的选项再试试?
yingc@yingc:~/work/public/solution$ sudo apt-get install codelite --fix-missing

  • You then need update your repositories. In synaptic, click the Reload button. If you're doing things by hand, do:
 sudo apt-get update
  • You should now be able to install CodeLite in the normal way through synaptic, or by doing:
 sudo apt-get install codelite wxcrafter

http://codelite.org/LiteEditor/Repositories#toc1

Codelite解决中文乱码

Setting - Editor - Misc - File font encoding,选择Windows 936编码

codelite编译显示中文字符为乱码

启用C99,并在控制台显示中文: Settings, Build Settings, gnc gcc, Switchs,在Source选项后面增加" -std=c99 -fexec-charset=GBK ",添加后,Source switch看起来是这样:
-c -std=c99 -fexec-charset=GBK codelite自动提示:
Setting-Tags Option-general-triggering-automatic word completion

ubuntu 安装 codelite的更多相关文章

  1. Mac OS、Ubuntu 安装及使用 Consul

    Consul 概念(摘录): Consul 是 HashiCorp 公司推出的开源工具,用于实现分布式系统的服务发现与配置.与其他分布式服务注册与发现的方案,比如 Airbnb 的 SmartStac ...

  2. ubuntu安装mysql

    好记性不如烂笔头,记录一下,ubuntu安装mysql的指令. 安装MySQL: sudo apt-get install mysql-server sudo apt-get install mysq ...

  3. ubuntu安装vim时提示 没有可用的软件包 vim,但是它被其它的软件包引用了 解决办法

    ubuntu安装vim时提示 没有可用的软件包 vim-gtk3,但是它被其它的软件包引用了 解决办法 本人在ubuntu系统安装vim  输入 sudo apt-get install vim 提示 ...

  4. docker 1.8+之后ubuntu安装指定版本docker-engine

    这边记录ubuntu安装过程,首先是官网文档 If you haven’t already done so, log into your Ubuntu instance. Open a termina ...

  5. debian/ubuntu安装桌面环境

    apt-get install xorg apt-get install gnome 然后startx ubuntu 安装Gnome桌面 1.安装全部桌面环境,其实Ubuntu系列桌面实际上有几种桌面 ...

  6. 一个ubuntu phper的自我修养(ubuntu安装)

    ubuntu安装篇 一.ubuntu下载 到ubuntu官网下载适合自己电脑配置的系统版本,此处不做展开. 二.制作USB启动盘 在windows下制作USB启动盘,工具是universal usb ...

  7. ubuntu 安装JAVA jdk的两种方法:

    ubuntu 安装jdk 的两种方式: 1:通过ppa(源) 方式安装. 2:通过官网下载安装包安装. 这里推荐第1种,因为可以通过 apt-get upgrade 方式方便获得jdk的升级 使用pp ...

  8. [其他]Ubuntu安装genymotion后unable to load VirtualBox engine

    问题: Ubuntu安装genymotion后unable to load VirtualBox engine 解决办法: 如果没有安装VirtualBox,要先安装VirtualBox. 安装Vir ...

  9. Ubuntu安装出现左上角光标一直闪解决方式

    Ubuntu安装出现左上角光标一直闪解决方式: 01下载ubunu http://cn.ubuntu.com/download/ 02.软碟通 http://pan.baidu.com/s/1qY8O ...

随机推荐

  1. js的继承实现方式

    1. 使用call或者apply来实现js对象继承 function Animal(age){ this.age = age; this.say = function(){ console.log(' ...

  2. Java外部类可以访问内部类private变量

    在讲Singleton时我举例时用过这样一段代码: public class SingletonDemo { private static class SingletonHolder{ private ...

  3. mac下git+maven+jenkins自动打包发布

    随着springboot+springcloud(dubbo)越来越多人使用,流行的微服务的概念越来越深入人心.分布式部署越来越复杂,给手动发布带来很大工作量.为了方便前期测试和后期线上部署更新,可使 ...

  4. web服务器boa的移植

    1.下载官方网站 http://www.boa.org/ 我下载的是0.94.13版本 2.解压 tar -zxvf boa-0.94.13.tar.gz 3.进入src目录 ./configure ...

  5. LINUX下的21个特殊符号 转

      1.  > 重定向输出符号. 2.  >>重定向输出符号,但有追加的功能. 3.  2>错误重定向输出符号,覆盖原文件内容. 4.  2>>错误重定向输出符号, ...

  6. Apache Mina入门

    Mina第一次听到这个名称的时候,我以为是个MM的名字米娜,后来才知道… Apache MINA(Multipurpose Infrastructure for Network Application ...

  7. Android实现两次按下返回键退出

    @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BAC ...

  8. H5页面开发笔记(react技术栈)

    1.子组件接收父组件的参数,要在子组件的componentDidMount函数中更改当前组件的state,若写在componentWillMount函数中,则会导致初始化界面UI的时候不能得到预期的效 ...

  9. java内存模型知识点汇总

    1.像windows/linux这种操作系统中,自带jvm么?以方便java程序的运行? 答:是的,一般操作系统都自带jvm的.但不带jdk,也就是说java的运行环境有,但编译环境没有. 1.jav ...

  10. Java Web开发基础(2)-JSP

    上一篇博我粗略的介绍了一下Servlet.粗略是由于博主也刚刚学习这部分的内容,还不是非常懂所以无法讲的非常精细.可是本着二八原则,我还是先继续学习.所以,这篇博客接着JSP的内容.由于.这两个内容关 ...