<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>L.A.M.N.K</title>
	
	<link>http://www.lamnk.com/blog</link>
	<description>Free your mind ... and your ass will follow</description>
	<lastBuildDate>Sat, 30 Jan 2010 02:55:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/lamnk" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="lamnk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Php-fpm error after reinstall PHP</title>
		<link>http://www.lamnk.com/blog/computer/php-fpm-error-after-reinstall-php/</link>
		<comments>http://www.lamnk.com/blog/computer/php-fpm-error-after-reinstall-php/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 02:51:31 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=216</guid>
		<description><![CDATA[Error:

lamnk@lamnk:~% sudo php-fpm start
Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f ] php-cgi [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c &#124; Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/error-compiling-php-on-centos-64-bit/' rel='bookmark' title='Permanent Link: Error compiling PHP on CentOS 64 bit'>Error compiling PHP on CentOS 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/strange-error-when-compile-vpnc/' rel='bookmark' title='Permanent Link: Strange error when compile vpnc'>Strange error when compile vpnc</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Error:</p>
<blockquote><p>
<code>lamnk@lamnk:~% sudo php-fpm start</p>
<p>Starting php_fpm Error in argument 1, char 1: no argument for option -<br />
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f ] php-cgi [args...]<br />
-a Run interactively<br />
-C Do not chdir to the script's directory<br />
-c | Look for php.ini file in this directory<br />
-n No php.ini file will be used<br />
-d foo[=bar] Define INI entry foo with value 'bar'<br />
-e Generate extended information for debugger/profiler<br />
-f Parse . Implies `-q'<br />
-h This help -i PHP information<br />
-l Syntax check only (lint)<br />
-m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output.<br />
-s Display colour syntax highlighted source.<br />
-v Version number<br />
-w Display source with stripped comments and whitespace.<br />
-z Load Zend extension<br />
................................... failed</code>
</p></blockquote>
<p>Reason:</p>
<blockquote><p>The old config file php-fpm.conf is located at /etc. However the new config file is moved to /usr/etc.</p></blockquote>
<p>I don&#8217;t know why is that. I&#8217;ve used the exact same old configuration directives &#8230;</p>
<p>Fix:</p>
<blockquote><p>Move or copy php-fpm.conf from /etc to /usr/etc. Problem solved.</p></blockquote>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/error-compiling-php-on-centos-64-bit/' rel='bookmark' title='Permanent Link: Error compiling PHP on CentOS 64 bit'>Error compiling PHP on CentOS 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/strange-error-when-compile-vpnc/' rel='bookmark' title='Permanent Link: Strange error when compile vpnc'>Strange error when compile vpnc</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/computer/php-fpm-error-after-reinstall-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset TCP/IP networking stack in Windows 7 and Vista</title>
		<link>http://www.lamnk.com/blog/computer/reset-tcpip-networking-stack-in-windows-7-and-vista/</link>
		<comments>http://www.lamnk.com/blog/computer/reset-tcpip-networking-stack-in-windows-7-and-vista/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 01:44:22 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=212</guid>
		<description><![CDATA[Sometimes your DHCP service is not able to pull an IP addresse, that means the network stack on Windows goes banana. To fix that, open command prompt with administrator privilege (click on Start -> type in &#8220;cmd&#8221; -> right click on the command prompt and choose &#8220;Run as Administrator&#8221;) and type these command:
netsh int ip [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/run-cygwin-on-vista-as-administrator/' rel='bookmark' title='Permanent Link: Run Cygwin on Vista as Administrator'>Run Cygwin on Vista as Administrator</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-fix-cisco-vpn-client-error-442-on-windows-vista/' rel='bookmark' title='Permanent Link: How to fix Cisco VPN Client error 442 on Windows Vista'>How to fix Cisco VPN Client error 442 on Windows Vista</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-fix-error-27848-2738-at-cisco-vpn-installation/' rel='bookmark' title='Permanent Link: How to fix error 27848 / 2738 at Cisco VPN installation'>How to fix error 27848 / 2738 at Cisco VPN installation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes your DHCP service is not able to pull an IP addresse, that means the network stack on Windows goes banana. To fix that, open command prompt with administrator privilege (click on Start -> type in &#8220;cmd&#8221; -> right click on the command prompt and choose &#8220;Run as Administrator&#8221;) and type these command:</p>
<blockquote><p><code>netsh int ip reset C:\netsh.log.txt<br />
netsh winsock reset</code></p></blockquote>
<p>&#8230; then all your network configuration is reset.</p>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/run-cygwin-on-vista-as-administrator/' rel='bookmark' title='Permanent Link: Run Cygwin on Vista as Administrator'>Run Cygwin on Vista as Administrator</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-fix-cisco-vpn-client-error-442-on-windows-vista/' rel='bookmark' title='Permanent Link: How to fix Cisco VPN Client error 442 on Windows Vista'>How to fix Cisco VPN Client error 442 on Windows Vista</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-fix-error-27848-2738-at-cisco-vpn-installation/' rel='bookmark' title='Permanent Link: How to fix error 27848 / 2738 at Cisco VPN installation'>How to fix error 27848 / 2738 at Cisco VPN installation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/computer/reset-tcpip-networking-stack-in-windows-7-and-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Almost there …</title>
		<link>http://www.lamnk.com/blog/all-about-me/almost-there/</link>
		<comments>http://www.lamnk.com/blog/all-about-me/almost-there/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 06:23:59 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Shine on you crazy diamond]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=202</guid>
		<description><![CDATA[Yesterday I wanted to clean around my home directory:
rm dmesg.txt feh_02 * boot.txt test.txt test.txt~ xxxtest.txt
And this is the result:
zsh: sure you want to delete all the files in /home/lamnk [yn]? n
zsh: sure you want to delete all the files in /home/lamnk [yn]? y
rm: cannot remove `feh_02': No such file or directory
rm: cannot remove `Customization': [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/' rel='bookmark' title='Permanent Link: How to install Cisco VPN client on Ubuntu Jaunty Jackalope and Karmic Koala 64 bit'>How to install Cisco VPN client on Ubuntu Jaunty Jackalope and Karmic Koala 64 bit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I wanted to clean around my home directory:</p>
<blockquote><p><code>rm dmesg.txt feh_02 * boot.txt test.txt test.txt~ xxxtest.txt</code></p></blockquote>
<p>And this is the result:</p>
<blockquote><p><code>zsh: sure you want to delete all the files in /home/lamnk [yn]? n<br />
zsh: sure you want to delete all the files in /home/lamnk [yn]? y<br />
rm: cannot remove `feh_02': No such file or directory<br />
rm: cannot remove `Customization': Is a directory<br />
rm: cannot remove `Desktop': Is a directory<br />
rm: cannot remove `Documents': Is a directory<br />
rm: cannot remove `Download': Is a directory<br />
rm: cannot remove `Dropbox': Is a directory<br />
rm: cannot remove `Ebooks': Is a directory<br />
rm: cannot remove `Movies': Is a directory<br />
rm: cannot remove `Music': Is a directory<br />
rm: cannot remove `Photos': Is a directory<br />
rm: cannot remove `Pictures': Is a directory<br />
rm: cannot remove `Truyentranh': Is a directory<br />
rm: cannot remove `backup': Is a directory<br />
rm: cannot remove `builds': Is a directory<br />
rm: cannot remove `boot.txt': No such file or directory<br />
rm: cannot remove `test.txt': No such file or directory<br />
rm: cannot remove `test.txt~': No such file or directory<br />
rm: cannot remove `xxxtest.txt': No such file or directory<br />
</code></p></blockquote>
<p>Luckily i didn&#8217;t issue <code>rm -rf</code> as usual &#8230;</p>
<p>I will look at shell&#8217;s warning before press Y</p>
<p>I will look at shell&#8217;s warning before press Y</p>
<p>I will look at shell&#8217;s warning before press Y</p>
<p>[repeat 1000 times]</p>
<p>&#8230; and still press y on reflex &#8230;</p>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/' rel='bookmark' title='Permanent Link: How to install Cisco VPN client on Ubuntu Jaunty Jackalope and Karmic Koala 64 bit'>How to install Cisco VPN client on Ubuntu Jaunty Jackalope and Karmic Koala 64 bit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/all-about-me/almost-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Cisco VPN client on Ubuntu Jaunty Jackalope and Karmic Koala 64 bit</title>
		<link>http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/</link>
		<comments>http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 09:54:53 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[VPN]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=195</guid>
		<description><![CDATA[Cisco module again doesn&#8217;t let us compile against the new kernel in Ubuntu 9.04 and 9.10 beta:
/home/lamnk/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/lamnk/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/lamnk/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
/home/lamnk/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/lamnk/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/lamnk/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/lamnk/vpnclient/interceptor.c:272: [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-hardy-heron-804/' rel='bookmark' title='Permanent Link: How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit'>How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='Permanent Link: With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Cisco module again doesn&#8217;t let us compile against the new kernel in Ubuntu 9.04 and 9.10 beta:</p>
<blockquote><p><code>/home/lamnk/vpnclient/interceptor.c: In function ‘interceptor_init’:<br />
/home/lamnk/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’<br />
/home/lamnk/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’<br />
/home/lamnk/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’<br />
/home/lamnk/vpnclient/interceptor.c: In function ‘add_netdev’:<br />
/home/lamnk/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’<br />
/home/lamnk/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’<br />
/home/lamnk/vpnclient/interceptor.c: In function ‘remove_netdev’:<br />
/home/lamnk/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’<br />
make[2]: *** [/home/lamnk/vpnclient/interceptor.o] Error 1<br />
make[1]: *** [_module_/home/lamnk/vpnclient] Error 2<br />
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-1-generic'<br />
make: *** [default] Error 2<br />
Failed to make module "cisco_ipsec.ko".</code></p></blockquote>
<p>Before installtion I assume that you have the latest version 4.8.02.0030 and the required packages for compiling ie gcc, libstdc++6 &#8230; The kernel version should be from 2.6.30 to 2.6.32</p>
<ul>
<li>Download the client and extract it</li>
<li>Go to vpnclient folder:<br />
<blockquote><code>cd vpnclient</code></p></blockquote>
</li>
<li>Download patch file for 64 bit and apply it (users on 32bit systems can skip this step):<br />
<blockquote><p><code>wget http://lamnk.com/download/vpnclient-linux-4.8.02-64bit.patch</code></p></blockquote>
<p></p>
<blockquote><p><code>patch < ./vpnclient-linux-4.8.02-64bit.patch</code></p></blockquote>
<p></p>
<blockquote><p><code>sed -i 's/^CFLAGS/EXTRA_CFLAGS' Makefile</code></p></blockquote>
</li>
<li>Download patch file for newer kernel (2.6.30+) and apply it:<br />
<blockquote><p><code>wget http://lamnk.com/download/vpnclient-linux-2.6.31-final.diff</code></p></blockquote>
<p></p>
<blockquote><p><code>patch < ./vpnclient-linux-2.6.31-final.diff</code></p></blockquote>
</li>
<li>Next we must edit a kernel source file<br />
<blockquote><p><code>sudo sed -i 's/const\ struct\ net_device_ops\ \*netdev_ops;/struct\ net_device_ops\ \*netdev_ops;/' `find /usr/src -name netdevice.h`</code></p></blockquote>
<p>Yes, it is a one liner, you should copy &#038; paste that command instead of typing <img src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  The command's translation into English: find the string <code>const struct net_device_ops *netdev_ops;</code> and change it to <code>struct net_device_ops *netdev_ops;</code> in the file locates at<br />
<blockquote><code>find /usr/src -name netdevice.h</code></p></blockquote>
</li>
<li>And finally, install Cisco VPN Client:<br />
<blockquote><p><code>sudo ./vpn_install</code></p></blockquote>
</li>
</ul>
<p>The patch files are not from me. All credit goes to the people at <a href="http://forum.tuxx-home.at/viewtopic.php?f=15&#038;t=790&#038;sid=0f466816287ec0ec3941772532ab725e">tuxx-home.at forum</a></p>
<p>If you can't install or have a problem please leave a comment</p>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-hardy-heron-804/' rel='bookmark' title='Permanent Link: How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit'>How to install Cisco VPN client on Ubuntu Hardy Heron 8.04 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/with-kernel-2624-you-will-need-a-patch-to-install-cisco-vpn-client/' rel='bookmark' title='Permanent Link: With kernel 2.6.24 you will need a patch to install Cisco VPN Client'>With kernel 2.6.24 you will need a patch to install Cisco VPN Client</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
		<item>
		<title>Compile rtorrent on CentOS 64bit</title>
		<link>http://www.lamnk.com/blog/computer/compile-rtorrent-on-centos-64bit/</link>
		<comments>http://www.lamnk.com/blog/computer/compile-rtorrent-on-centos-64bit/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 06:51:04 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[libsigc++]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pkgconfig]]></category>
		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=177</guid>
		<description><![CDATA[I always fall for this error when compile rtorrent, so &#8230; :
Error:

checking for STUFF... configure: error: Package requirements (sigc++-2.0) were not met:
No package 'sigc++-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables STUFF_CFLAGS
and STUFF_LIBS to avoid the need to call pkg-config.
See the pkg-config man [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/error-compiling-php-on-centos-64-bit/' rel='bookmark' title='Permanent Link: Error compiling PHP on CentOS 64 bit'>Error compiling PHP on CentOS 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/strange-error-when-compile-vpnc/' rel='bookmark' title='Permanent Link: Strange error when compile vpnc'>Strange error when compile vpnc</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I always fall for this error when compile rtorrent, so &#8230; :</p>
<p><strong>Error:</strong></p>
<blockquote><p><code><br />
checking for STUFF... configure: error: Package requirements (sigc++-2.0) were not met:</code></p>
<p><code>No package 'sigc++-2.0' found</code></p>
<p><code>Consider adjusting the PKG_CONFIG_PATH environment variable if you<br />
installed software in a non-standard prefix.</code></p>
<p><code>Alternatively, you may set the environment variables STUFF_CFLAGS<br />
and STUFF_LIBS to avoid the need to call pkg-config.<br />
See the pkg-config man page for more details.</code></p></blockquote>
<p><strong>Fix:</strong></p>
<blockquote><p><code>$ updatedb<br />
$ locate pkgconfig | grep sigc++-2.0.pc</code></p></blockquote>
<p>You will see something like <code>/usr/lib/pkgconfig/sigc++-2.0.pc</code>. If it is not there, then go install <a href="http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/">libsigc++</a> (it&#8217;s not in official CentOS repo).<br />
Then define the PKG_CONFIG_PATH variable as the configure script suggests:</p>
<blockquote><p><code>$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig/</code></p></blockquote>
<p>Run configure script for libtorrent again. <code>--prefix=</code> should be the same for libsigc++, libtorrent and rtorrent, otherwise they will complain <img src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p><code>./configure --prefix=/usr &amp;&amp; make</code></p></blockquote>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/error-compiling-php-on-centos-64-bit/' rel='bookmark' title='Permanent Link: Error compiling PHP on CentOS 64 bit'>Error compiling PHP on CentOS 64 bit</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/strange-error-when-compile-vpnc/' rel='bookmark' title='Permanent Link: Strange error when compile vpnc'>Strange error when compile vpnc</a></li>
<li><a href='http://www.lamnk.com/blog/vpn/can-not-compile-cisco-vpn-client-on-opensuse-103-64bit/' rel='bookmark' title='Permanent Link: Can not compile Cisco VPN client on openSUSE 10.3 64bit'>Can not compile Cisco VPN client on openSUSE 10.3 64bit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/computer/compile-rtorrent-on-centos-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import Excel .xls files into R</title>
		<link>http://www.lamnk.com/blog/econometrics/import-excel-xls-files-into-r/</link>
		<comments>http://www.lamnk.com/blog/econometrics/import-excel-xls-files-into-r/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 16:11:45 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Econometrics]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[xls]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=173</guid>
		<description><![CDATA[What is R ? R is a programming language and software environment for statistical computing and graphics. It is developed by
statisticians around the world and is free software, released under the GNU General Public License.
In order to import .xls file into R, we must convert the file to csv first. One way to this is [...]


Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/wordpress-blank-screen-of-death/' rel='bookmark' title='Permanent Link: Wordpress Blank Screen of Death'>Wordpress Blank Screen of Death</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>What is R ? R is a programming language and software environment for statistical computing and graphics. It is developed by<br />
statisticians around the world and is free software, released under the GNU General Public License.</p>
<p>In order to import .xls file into R, we must convert the file to csv first. One way to this is to open xls files in a speadsheet application and then export to csv format. Another way is to use a small convert program, handily available on &#8230; Google. An example: <a href="http://search.cpan.org/~ken/xls2csv-1.06/script/xls2csv">xls2csv</a>:</p>
<blockquote><p><code>xls2csv -x dataset.xls -c dataset.csv</code></p></blockquote>
<p>After converting to csv, import data with</p>
<blockquote><p><code>> dataset1 <- read.csv(file = "~/dataset.csv")</code></p></blockquote>


<p>Related posts:<ol><li><a href='http://www.lamnk.com/blog/computer/wordpress-blank-screen-of-death/' rel='bookmark' title='Permanent Link: Wordpress Blank Screen of Death'>Wordpress Blank Screen of Death</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/econometrics/import-excel-xls-files-into-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternative PHP Cache – APC – impact</title>
		<link>http://www.lamnk.com/blog/computer/alternative-php-cache-apc-impact/</link>
		<comments>http://www.lamnk.com/blog/computer/alternative-php-cache-apc-impact/#comments</comments>
		<pubDate>Thu, 21 May 2009 12:45:32 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=157</guid>
		<description><![CDATA[Picture worths thousand words &#8230;
I have never used a PHP accelerator before. Now it is a must to install APC for every new server (if you have enough memory to throw around).


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Picture worths thousand words &#8230;</p>
<div class="wp-caption alignnone" style="width: 497px"><a href="http://img32.imageshack.us/img32/6125/apccpuimprovement.png"><img title="apc cpu improvement" src="http://img32.imageshack.us/img32/6125/apccpuimprovement.png" alt="apc cpu improvement" width="487" height="252" /></a><p class="wp-caption-text">apc cpu improvement</p></div>
<p>I have never used a PHP accelerator before. Now it is a must to install APC for every new server (if you have enough memory to throw around).</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/computer/alternative-php-cache-apc-impact/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kamehameha in real life</title>
		<link>http://www.lamnk.com/blog/all-about-me/kamehameha-in-real-life/</link>
		<comments>http://www.lamnk.com/blog/all-about-me/kamehameha-in-real-life/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 17:41:54 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Shine on you crazy diamond]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=134</guid>
		<description><![CDATA[Can&#8217;t stop LOL  

If you don&#8217;t know that Kamehameha is, read Dragon Ball serie.


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Can&#8217;t stop LOL <img src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><img src="http://img5.imageshack.us/img5/9397/w173948184.gif" alt="Kamezoko kamehameha" /></p>
<p>If you don&#8217;t know that <em>Kamehameha</em> is, read <a href="http://en.wikipedia.org/wiki/Dragon_ball">Dragon Ball</a> serie.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/all-about-me/kamehameha-in-real-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A wild guess about tonight Academy award</title>
		<link>http://www.lamnk.com/blog/all-about-me/a-wild-guess-about-tonight-academy-award/</link>
		<comments>http://www.lamnk.com/blog/all-about-me/a-wild-guess-about-tonight-academy-award/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 15:33:00 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Shine on you crazy diamond]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[oscar]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=112</guid>
		<description><![CDATA[Here we go:

Best Picture: A curious case of Benjamin Button Slumdog Millionaire (a bit off)
Bes Actor: Mickey Rourke Sean Penn (Sean was really good in Milk but can&#8217;t compare to Mickey. Anyway &#8230;)
Bes Actress: Kate Winslet (spot on   )
Best Supporting Actor: Heath Ledger (of course)
Bes Supporting Actress: Marisa Tomei Penelope Cruz (the hardest [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Here we go:</p>
<ul>
<li>Best Picture: <span style="text-decoration: line-through;">A curious case of Benjamin Button</span> Slumdog Millionaire (<em>a bit off</em>)</li>
<li>Bes Actor: <span style="text-decoration: line-through;">Mickey Rourke</span> Sean Penn (<em>Sean was really good in Milk but can&#8217;t compare to Mickey. Anyway &#8230;</em>)</li>
<li>Bes Actress: Kate Winslet (<em>spot on <img src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em>)</li>
<li>Best Supporting Actor: Heath Ledger (<em>of course</em>)</li>
<li>Bes Supporting Actress: <span style="text-decoration: line-through;">Marisa Tomei</span> Penelope Cruz (<em>the hardest award to guess</em>)</li>
<li>Bes Director: Danny Boyle (<em>see the comment down there <img src='http://www.lamnk.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </em> )</li>
</ul>
<p>If Slumdog Millionaire gets Best Picture (I highly doubt it), then Best Director would go to David Fincher. (<em>Arrggh</em>)</p>
<p><strong>Updated.</strong></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/all-about-me/a-wild-guess-about-tonight-academy-award/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XML-Mapping gem has permission problem</title>
		<link>http://www.lamnk.com/blog/computer/xml-mapping-gem-has-permission-problem/</link>
		<comments>http://www.lamnk.com/blog/computer/xml-mapping-gem-has-permission-problem/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 07:11:44 +0000</pubDate>
		<dc:creator>Lamnk</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.lamnk.com/blog/?p=103</guid>
		<description><![CDATA[You may have this error when require &#8216;xml/mapping&#8217; in your ruby script:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- xml/mapping (LoadError)
Solution: go to the gem directory of XML-Mapping (mine is /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/) and chmod all files in this directory to 644.
Who is to point finger at here ? Rubygem or XML-Mapping authors ?


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>You may have this error when require &#8216;xml/mapping&#8217; in your ruby script:</p>
<blockquote><p><code>/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- xml/mapping (LoadError)</code></p></blockquote>
<p>Solution: go to the gem directory of XML-Mapping (mine is <code>/usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/</code>) and chmod all files in this directory to 644.</p>
<p>Who is to point finger at here ? Rubygem or XML-Mapping authors ?</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lamnk.com/blog/computer/xml-mapping-gem-has-permission-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.336 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-11 14:54:23 -->
