<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>程式設計 遇上 小提琴 &#187; 問題</title>
	<atom:link href="http://blog.ez2learn.com/category/%e5%95%8f%e9%a1%8c/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ez2learn.com</link>
	<description>Victor&#039;s個人部落格，關於程式設計與小提琴</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VirtualBox下跑FreeBSD的網路問題和安裝Python模組心得</title>
		<link>http://blog.ez2learn.com/2008/10/06/network-problem-of-freebsd-under-virtualbox/</link>
		<comments>http://blog.ez2learn.com/2008/10/06/network-problem-of-freebsd-under-virtualbox/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 03:33:57 +0000</pubDate>
		<dc:creator>victor</dc:creator>
				<category><![CDATA[中文文章]]></category>
		<category><![CDATA[問題]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Unix-Like]]></category>
		<category><![CDATA[虛擬機器]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[lxml]]></category>
		<category><![CDATA[twisted]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.ez2learn.com/?p=124</guid>
		<description><![CDATA[昨天在VirtualBox上裝了FreeBSD，但是卻遇到無法上網的問題 #ping google.com ping: cannot resolve google.com: No address associated with name 看起來是網路沒有設定好，連DNS都找不到的樣子，於是在網路上找了一找，終於找到了解決方法 ifconfig pcn0 down ifcontig pcn0 media 10baseT/UTP ifconfig pcn0 up dhclient pcn0 解決了之後終於成功地在上面執行了我在Windows下寫的程式，一開始我連什麼指令用來抓檔案都不知道，我只知道curl這樣的指令，但它好像沒有這樣的指令，後來知到有fetch可以用，就裝好了easy_install之後就很方便，接著裝了Twisted，和lxml，而lxml並不是直接用easy_install就可以用，還得先安裝並編譯libxml2和libxslt，但其實也很簡單，先fetch下來，解開壓縮，然後執行 ./configure make install 編譯要花一小段時間，但沒想到這麼順利，沒有什麼編譯錯誤跑出來，完成後再用easy_install安裝lxml就可以了 寫一個小程式來測試 然後執行 Wow! 成功了!]]></description>
			<content:encoded><![CDATA[<p>昨天在VirtualBox上裝了FreeBSD，但是卻遇到無法上網的問題</p>
<blockquote><p>#ping google.com</p>
<p>ping: cannot resolve google.com: No address associated with name</p></blockquote>
<p>看起來是網路沒有設定好，連DNS都找不到的樣子，於是在網路上找了一找，終於找到了<a href="http://forums.virtualbox.org/viewtopic.php?t=2563">解決方法</a></p>
<blockquote><p>ifconfig pcn0 down<br />
ifcontig pcn0 media 10baseT/UTP<br />
ifconfig pcn0 up<br />
dhclient pcn0</p></blockquote>
<p>解決了之後終於成功地在上面執行了我在Windows下寫的程式，一開始我連什麼指令用來抓檔案都不知道，我只知道curl這樣的指令，但它好像沒有這樣的指令，後來知到有fetch可以用，就裝好了easy_install之後就很方便，接著裝了Twisted，和lxml，而lxml並不是直接用easy_install就可以用，還得先安裝並編譯libxml2和libxslt，但其實也很簡單，先fetch下來，解開壓縮，然後執行</p>
<blockquote><p>./configure<br />
make install</p></blockquote>
<p>編譯要花一小段時間，但沒想到這麼順利，沒有什麼編譯錯誤跑出來，完成後再用easy_install安裝lxml就可以了</p>
<p>寫一個小程式來測試</p>
<div id="attachment_132" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.ez2learn.com/wp-content/uploads/2008/10/2008-10-06_113534.png"><img class="size-medium wp-image-132" title="FreeBSD下的Twisted測試用程式" src="http://blog.ez2learn.com/wp-content/uploads/2008/10/2008-10-06_113534-300x195.png" alt="FreeBSD下的Twisted測試用程式" width="300" height="195" /></a><p class="wp-caption-text">FreeBSD下的Twisted測試用程式</p></div>
<p>然後執行</p>
<div id="attachment_133" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.ez2learn.com/wp-content/uploads/2008/10/2008-10-06_113629.png"><img class="size-medium wp-image-133" title="FreeBSD下的Twisted執行結果" src="http://blog.ez2learn.com/wp-content/uploads/2008/10/2008-10-06_113629-300x195.png" alt="FreeBSD下的Twisted執行結過" width="300" height="195" /></a><p class="wp-caption-text">FreeBSD下的Twisted執行結果</p></div>
<p>Wow! 成功了!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ez2learn.com/2008/10/06/network-problem-of-freebsd-under-virtualbox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

