﻿<?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++博客-实验室宅男的一亩三分地-随笔分类-配置问题</title><link>http://www.cppblog.com/whspecial/category/15680.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 15 Mar 2014 22:46:23 GMT</lastBuildDate><pubDate>Sat, 15 Mar 2014 22:46:23 GMT</pubDate><ttl>60</ttl><item><title>log4j 行号与文件名打印问号</title><link>http://www.cppblog.com/whspecial/archive/2014/03/11/206132.html</link><dc:creator>whspecial</dc:creator><author>whspecial</author><pubDate>Tue, 11 Mar 2014 07:57:00 GMT</pubDate><guid>http://www.cppblog.com/whspecial/archive/2014/03/11/206132.html</guid><wfw:comment>http://www.cppblog.com/whspecial/comments/206132.html</wfw:comment><comments>http://www.cppblog.com/whspecial/archive/2014/03/11/206132.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/whspecial/comments/commentRss/206132.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/whspecial/services/trackbacks/206132.html</trackback:ping><description><![CDATA[<div>转载自：http://www.blogjava.net/itspy/archive/2008/04/22/194686.html#Post<br /><br />log4j本来设置了要打印行号与文件名的,结果有的能打印出来,有的却是乱码,查了些文档之后才发现,原来打印问题是因为编绎时没有编绎进去调试信息,所以没办法打印.</div><div></div><div>但是我用的是Ant,如果在Ant编绎时,编绎进去调试信息呢,参考下面配置.</div><div></div><div>&lt;javac srcdir="src" destdir="bin" <span style="background-color: yellow;">debug="true" </span>&nbsp;classpathref="accrual.path" &gt;</div><div></div><div></div><div></div><div><br />参考文档</div><div>http://ant.apache.org/manual/CoreTasks/javac.html</div><div>Log4j配置</div><div>log4j.appender.C1.layout.ConversionPattern=%F(%L)-- %-4r %-5p [%t] %37c %3x - %m%n</div><img src ="http://www.cppblog.com/whspecial/aggbug/206132.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/whspecial/" target="_blank">whspecial</a> 2014-03-11 15:57 <a href="http://www.cppblog.com/whspecial/archive/2014/03/11/206132.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>What is the location of the directory of C header files that match your running kernel?(fedora 13虚拟机系统安装vmware tools出现的问题)</title><link>http://www.cppblog.com/whspecial/archive/2011/01/05/138024.html</link><dc:creator>whspecial</dc:creator><author>whspecial</author><pubDate>Wed, 05 Jan 2011 07:38:00 GMT</pubDate><guid>http://www.cppblog.com/whspecial/archive/2011/01/05/138024.html</guid><wfw:comment>http://www.cppblog.com/whspecial/comments/138024.html</wfw:comment><comments>http://www.cppblog.com/whspecial/archive/2011/01/05/138024.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/whspecial/comments/commentRss/138024.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/whspecial/services/trackbacks/138024.html</trackback:ping><description><![CDATA[<div id=blog_text class=cnt>
<p>Fedora13安装vmware出现 :<br>What is the location of the directory of C header files that match your running<br>kernel?<br><br>The path "" is not valid.<br>Would you like to change it? [yes]<br><br>解决办法：<br>1.将VMwareTools- 8.1.4-227600.tar.gz文件复制到`/software/文件夹下面<br>2.安装VMwareTools:<br>[root@localhost tian]#cd software<br>[root@localhost tian]#tar xvzf VMwareTools-8.1.4-227600.tar.gz<br>[root@localhost tian]# cd vmware-tools-distrib/<br>[root@localhost tian]#./vmware-install.pl<br>Creating a new VMware Tools installer database using the tar4 format.<br><br>Installing VMware Tools.<br><br>In which directory do you want to install the binary files?<br>[/usr/bin]<br><br>What is the directory that contains the init directories (rc0.d/ to rc6.d/)?<br>[/etc/rc.d]<br><br>What is the directory that contains the init scripts?<br>[/etc/rc.d/init.d]<br><br>In which directory do you want to install the daemon files?<br>[/usr/sbin]<br><br>In which directory do you want to install the library files?<br>[/usr/lib/vmware-tools]<br><br>In which directory do you want to install the documentation files?<br>[/usr/share/doc/vmware-tools]<br><br>The path "/usr/share/doc/vmware-tools" does not exist currently. This program<br>is going to create it, including needed parent directories. Is this what you<br>want? [yes]<br><br>The installation of VMware Tools 8.1.4 build-227600 for Linux completed<br>successfully. You can decide to remove this software from your system at any<br>time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".<br><br>Before running VMware Tools for the first time, you need to configure it by<br>invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want<br>this program to invoke the command for you now? [yes]<br><br>Initializing...<br><br><br>Stopping VMware Tools services in the virtual machine:<br>Guest operating system daemon:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [确定]<br>Virtual Printing daemon:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [确定]<br>Unmounting HGFS shares:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [确定]<br>Guest filesystem driver:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [确定]<br><br><br><br>Before you can compile modules, you need to have the following installed...<br><br>make<br>gcc<br>kernel headers of the running kernel<br><br><br>Searching for GCC...<br>Detected GCC binary at "/usr/bin/gcc".<br>The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.<br>Would you like to change it? [no]<br><br>Searching for a valid kernel header path...<br>The path "" is not valid.<br>Would you like to change it? [yes]<br><br>What is the location of the directory of C header files that match your running<br>kernel?<br>3.下载相应的kernel-devel.rpm包进行安装<br>Fedora13 Alpha版本内核版本为：<br>2.6.33-0.52.rc8.git6.fc13.i686.PAE<br>其下载地址为：<br>ftp://rpmfind.net/linux/fedora/releases/test/13-Alpha/Fedora/i386/os/Packages/kernel-devel-2.6.33-0.52.rc8.git6.fc13.i686.rpm<br>注：不同的版本可在此网站找到相应的文件。</p>
<p><font style="BACKGROUND-COLOR: #ff0000">----- 如果网络畅通,可以 运行 [ yum -y install kernel-devel ],进行安装就6M,很快</font></p>
<p><br>[root@localhost tian]#rpm -q kernel-devel<br>package kernel-devel is not installed<br>[root@localhost tian]#rpm -ivh ftp://rpmfind.net/linux/fedora/releases/test/13-Alpha/Fedora/i386/os/Packages/kernel-devel-2.6.33-0.52.rc8.git6.fc13.i686.rpm<br><br>[root@localhost tian]#rpm -q kernel-devel<br>[root@localhost tian]#kernel-devel-2.6.33-0.52<br><br>提示：安装完kernel-devel后重启一下计算机，因为此时的系统检测的内核仍为启动时的内核版本。<br><br>4.重新运行VMware的配置文件<br>[root@localhost bin]# /usr/bin/vmware-config-tools.pl<br><br></p>
转载自：<a href="http://hi.baidu.com/wmhx/blog/item/312d7ada4c06c6d6b7fd48a1.html">http://hi.baidu.com/wmhx/blog/item/312d7ada4c06c6d6b7fd48a1.html</a><br></div>
<br>
<img src ="http://www.cppblog.com/whspecial/aggbug/138024.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/whspecial/" target="_blank">whspecial</a> 2011-01-05 15:38 <a href="http://www.cppblog.com/whspecial/archive/2011/01/05/138024.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>更新ubuntu后出现grub rescue&gt; no such device:*****错误的解决方法 </title><link>http://www.cppblog.com/whspecial/archive/2010/07/25/121265.html</link><dc:creator>whspecial</dc:creator><author>whspecial</author><pubDate>Sun, 25 Jul 2010 13:30:00 GMT</pubDate><guid>http://www.cppblog.com/whspecial/archive/2010/07/25/121265.html</guid><wfw:comment>http://www.cppblog.com/whspecial/comments/121265.html</wfw:comment><comments>http://www.cppblog.com/whspecial/archive/2010/07/25/121265.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cppblog.com/whspecial/comments/commentRss/121265.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/whspecial/services/trackbacks/121265.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;系统情况：win7，在其上使用wubi安装了ubuntu10.04，某天更新时在提示了grub方面的错误，当时没有在意，结果更新重启之后发现无法grub，直接进入了grub rescue命令行之下。<br>&nbsp;&nbsp;&nbsp;不想重装系统，只是想修复grub。在网上搜索了一下，发现很多人都遇到了这个问题，按照一个老外的方法解决了这个问题：<br>&nbsp;&nbsp;&nbsp;网址在：<br><a href="http://ubuntuforums.org/showthread.php?t=1490715">http://ubuntuforums.org/showthread.php?t=1490715</a></p>
<hr style="BACKGROUND-COLOR: #ffffff; COLOR: #ffffff" SIZE=1>
<!-- / icon and title --><!-- message -->
<div id=post_message_9343936 class=vbclean_msgtext>First of all, if you want to keep using ubuntu properly, boot into win7 and remove wubi (after getting your data out). Wubi was never meant to be a long term install, just a quick try.<br><br>Right now you have few things to fix, but it would be even easier to fix if you had proper ubuntu, not wubi.<br><br>OK...<br>1. Get a 10.04 ubuntu desktop cd. Use it to load live mode, or Try Ubuntu option. That will load ubuntu running from the cd.<br><br>2. Then use these instructions to fix partition #1 on disk /dev/sda:<br><a href="http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector" target=_blank><u><font color=#810081>http://sourceforge.net/apps/mediawik...ms:Boot_Sector</font></u></a><br><br>3. Open terminal and install generic MBR on /dev/sda with:<br><br>sudo apt-get install lilo<br>sudo lilo -M /dev/sda mbr<br><br>Ignore the warnings it will give.<br><br>After this restart and you should be able to boot into win7. You have the same error on partition #2 but I think you can get by without fixing it too. Lets see.<br>If needed, run step 2 for partition #2 also.<br><br>Once you can boot into win7 and access wubi, get your data out and think about installing proper ubuntu.<br><br>If you have questions about that, just ask.<br></div>
<br>&nbsp;&nbsp;&nbsp;实际上需要一张ubuntu 10.04的安装盘，也可能还需要一张windows7的安装盘。如果恰巧也解决了您的问题，请在这里留个言，可以让更多人看到解决方法。<br><br>
<img src ="http://www.cppblog.com/whspecial/aggbug/121265.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/whspecial/" target="_blank">whspecial</a> 2010-07-25 21:30 <a href="http://www.cppblog.com/whspecial/archive/2010/07/25/121265.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>