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

最新文章

  1. js框架设计1.1命名空间笔记
  2. iOS 线性滚动
  3. 30、准确计算CoreText高度的方法
  4. Difference between LET and LET* in Common LISP
  5. 自定义圆环progressbar
  6. iOS - Swift Array 数组
  7. C语言中volatile关键字的作用
  8. Info.plist和pch文件的作用
  9. js整理常用方法
  10. HDU4527+BFS
  11. jQuery 滚动动画简单版
  12. net.sf.json.JSONException: There is a cycle in the hierarchy!
  13. nginx记录响应与POST请求日志
  14. node请求下载接口时乱码
  15. 如果没有&lt;form&gt;标签,也没有enctype=&quot;multipart/form-data&quot;属性,怎么使用formData对象提交表单呢?如下方式
  16. Analyzing &#39;enq: HW - contention&#39; Wait Event (Doc ID 740075.1)
  17. 用Java实现图片验证码功能
  18. WC2019 游记
  19. Brup Suite 渗透测试笔记(五)
  20. gdb windbg and od use

热门文章

  1. bzoj 2555
  2. python开发_html_html处理
  3. Educational Codeforces Round 13 C. Joty and Chocolate 水题
  4. URAL 1880 Psych Up&#39;s Eigenvalues
  5. jmeter用BeanShell调用jar包对HTTP请求中的参数进行MD5加密
  6. .vs目录有什么用?
  7. HDU 4649 Professor Tian(反状态压缩dp,概率)
  8. Cocos2d—X游戏开发之CCToggle(菜单标签切换)CCControlSwitch(开关切换)
  9. IOS7开发~Images.xcassets
  10. Android intent action大全