﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-每天早晨叫醒你的不是闹钟,而是梦想-随笔分类-Linux</title><link>http://www.cppblog.com/mmdengwo/category/16458.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 21 Feb 2014 02:24:52 GMT</lastBuildDate><pubDate>Fri, 21 Feb 2014 02:24:52 GMT</pubDate><ttl>60</ttl><item><title>Linux安装CodeBlocksSVN最新版</title><link>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205810.html</link><dc:creator>沛沛</dc:creator><author>沛沛</author><pubDate>Mon, 17 Feb 2014 10:10:00 GMT</pubDate><guid>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205810.html</guid><wfw:comment>http://www.cppblog.com/mmdengwo/comments/205810.html</wfw:comment><comments>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205810.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mmdengwo/comments/commentRss/205810.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mmdengwo/services/trackbacks/205810.html</trackback:ping><description><![CDATA[<a href="http://apt.jenslody.de/" title="http://apt.jenslody.de/" target="_blank" style="color: #002d93; text-decoration: none; font-family: simsun; line-height: 23px;">http://apt.jenslody.de/</a><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_1319944131TwC8.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 打开软件源配置文件添加下面5行</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo gedit /etc/apt/sources.list</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">deb http://apt.jenslody.de/ any main</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">deb-src http://apt.jenslody.de/ any main</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">deb http://apt.jenslody.de/ any release</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">deb-src http://apt.jenslody.de/ any release</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">deb http://apt.wxwidgets.org/ lenny-wx main</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 更新软件源配置文件 和 安装Key</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get update</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get install jens-lody-debian-keyring</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">这样只是把软件源家进去了，并没有安装好，所以还要输入安装命令</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 然后输入下面这个命令开始安装 codeblocks</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get install codeblocks</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_131994413369ql.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">现在安装好，从编程软件里开启CodeBlocks了，是英文的，并且是最近几日的最版本</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_13199441353iTP.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 你也可以直接下载 CodeBlocks 的二进制发行包，从这个URL进入</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><a href="http://apt.jenslody.de/pool/" title="http://apt.jenslody.de/pool/" target="_blank" style="color: #002d93; text-decoration: none; font-family: simsun; line-height: 23px;">http://apt.jenslody.de/pool/</a><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 中文化CodeBlocks 下载这个包，语言文件 Linux下通用的</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><a href="http://srgb.googlecode.com/files/CodeBlocks_Linux_Install.zip" title="http://srgb.googlecode.com/files/CodeBlocks_Linux_Install.zip" target="_blank" style="color: #002d93; text-decoration: none; font-family: simsun; line-height: 23px;">http://srgb.googlecode.com/files/CodeBlocks_Linux_Install.zip</a><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">进入压缩包把语言文件放到桌面 '/locale/zh_CN/CodeBlocks.mo'&nbsp;&nbsp;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">中文化 codeblocks locale/zh_CN/codeblocks.mo 里的 中文化文件放这里</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">&nbsp;'/usr/share/codeblocks/locale/zh_CN/codeblocks.mo'&nbsp;&nbsp;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">设置权限为所有人可以访问</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_1319944136E9w5.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_1319944137Bjcp.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;"># 使用管理员权限把 语言包 locale 目录 拉到 /usr/share/codeblocks里</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo nautilus /usr/share/codeblocks/</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">注意 locale 的权限可能不完整，所以 选住目录 所有者-群组-其他设定都能访问文件;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">对包含的文件应用权限；</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">进入 /usr/share/codeblocks/locale/zh_CN/ 目录选两个文件</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">右键修改权限 所有者 和 群组 都可以读写</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_13199441386fr6.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_131994414068gk.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">现在安装的 CodeBlocks 打开是中文里，但是只有基本IDE环境，很多插件和开发包没安装</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">可以输入 sudo apt-get install codeblocks &lt;按两下TAB&gt;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">列出没有安装的其他包， 你可以选择安装，我偷懒了</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get install codeblocks* &lt;回车&gt;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get install libwxsmith* &lt;回车&gt;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">sudo apt-get install libwxgtk2.8-dev &lt;回车&gt;</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_13199441410n03.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><br style="color: #333333; font-family: simsun; line-height: 23px;" /><span style="color: #333333; font-family: simsun; line-height: 23px;">现在开启CB，建立一个wx项目，编译，可以编译成功了</span><br style="color: #333333; font-family: simsun; line-height: 23px;" /><img src="http://hi.csdn.net/attachment/201110/30/3362235_1319944142tHrz.png" alt="" style="border: 0px; max-width: 100%; color: #333333; font-family: simsun; line-height: 23px;" /><img src ="http://www.cppblog.com/mmdengwo/aggbug/205810.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mmdengwo/" target="_blank">沛沛</a> 2014-02-17 18:10 <a href="http://www.cppblog.com/mmdengwo/archive/2014/02/17/205810.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux makefile 教程</title><link>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205788.html</link><dc:creator>沛沛</dc:creator><author>沛沛</author><pubDate>Mon, 17 Feb 2014 09:30:00 GMT</pubDate><guid>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205788.html</guid><wfw:comment>http://www.cppblog.com/mmdengwo/comments/205788.html</wfw:comment><comments>http://www.cppblog.com/mmdengwo/archive/2014/02/17/205788.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mmdengwo/comments/commentRss/205788.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mmdengwo/services/trackbacks/205788.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 概述&#8212;&#8212;什么是makefile？或许很多Winodws的程序员都不知道这个东西，因为那些Windows的IDE都为你做了这个工作，但我觉得要作一个好的和professional的程序员，makefile还是要懂。这就好像现在有这么多的HTML的编辑器，但如果你想成为一个专业人士，你还是要了解HTML的标识的含义。特别在Unix下的软件编译，你就不能不自己写makefile了...&nbsp;&nbsp;<a href='http://www.cppblog.com/mmdengwo/archive/2014/02/17/205788.html'>阅读全文</a><img src ="http://www.cppblog.com/mmdengwo/aggbug/205788.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mmdengwo/" target="_blank">沛沛</a> 2014-02-17 17:30 <a href="http://www.cppblog.com/mmdengwo/archive/2014/02/17/205788.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>