<?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; update_rubygems</title>
	<atom:link href="http://www.iearn.in.th/tag/update_rubygems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>gem update &#8211;system is disabled on Debian</title>
		<link>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/</link>
		<comments>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 15:40:26 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[update gem]]></category>
		<category><![CDATA[update_rubygems]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=621</guid>
		<description><![CDATA[ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update gem เจอปัญหานี้ครับ ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. วิธีการแก้โดยการเปลี่ยนไปใช้ gem ที่ไว้สำหรับ update rubygems ทำได้ 2 วิธีครับ gem install update_rubygems cd /var/lib/gems/1.8/bin ./update_rubygems or gem install [...]]]></description>
			<content:encoded><![CDATA[<p>ปัญหาเกิดจากกำลังลอง server และ rails hosting controller โดยที่ลองเล่นบน debian แล้วเมื่อต้องการ update gem เจอปัญหานี้ครับ</p>
<pre code="bash">ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
</pre>
<p><span id="more-621"></span><br />
วิธีการแก้โดยการเปลี่ยนไปใช้ gem ที่ไว้สำหรับ update rubygems ทำได้ 2 วิธีครับ</p>
<pre code="bash">
gem install update_rubygems
cd /var/lib/gems/1.8/bin
./update_rubygems
</pre>
<p>or</p>
<pre code="bash">
gem install rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems
</pre>

<p class="sayac_bilgi">5 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2010/03/07/gem-update-system-is-disabled-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Ruby Gem Behind Proxy</title>
		<link>http://www.iearn.in.th/2009/01/19/update-ruby-gem-behind-proxy/</link>
		<comments>http://www.iearn.in.th/2009/01/19/update-ruby-gem-behind-proxy/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 04:54:35 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[RoR]]></category>
		<category><![CDATA[environments]]></category>
		<category><![CDATA[http_proxy]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[update gem]]></category>
		<category><![CDATA[update_rubygems]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=38</guid>
		<description><![CDATA[ช่วงนี้กำลังว่างเนื่องจากว่าไม่ค่อยมีงานอะไรไหลเข้ามาเท่าไรเนื่องจากวิกฤเศรษฐกิจโลก อ่าๆ เลยเอาเวลาว่างๆ ช่วงนี้มาสร้างสัน อะไรเล่นดีกว่า โดยหลังจากพอรู้แล้วว่า NSC คงไม่ได้เขารอบสุดท้ายแน่เลยเอาเวลามาปรับปรุง Haleserver ที่ทิ้งตั้งไว้ซักพักแล้วให้สามารถใช้งานได้ และคิดว่าจะเขียน sharing community เล็กๆ ขึ้นมาเพื่อให้เป็นตัวกลางในการแลกเปลี่ยนไฟล์กันในมหาลัย เลยจัดแจงเปิด Netbeans IDE คู่ใจหวังว่าจะืำให้เสร็จประมาณวัน-สองวันแต่เหตุการณ์ไม่คาดฝันเกิดขึ้นเมื่อผม generate rails app ปรากฏว่า netbeans ฟ้องว่า Gem ที่คุยใช้มันล่าสมัยน่า (0&#8230;..) เอาเป็นว่าเป็นสาเหตุที่จำเป็นต้องมา update gem กันในวันนี้ แต่ปัญหาสำคัยไม่ได้อยุ่ตรงอัพเดดหรอกครับแต่เนื่องมาจากระบบในมหาวิทยาลัยผมใช้ proxy เลยทำให้การอัพเดดต่างๆ ยากกว่าเดิมไปประมาณ 1 บรรทัดก็เลยเอาความรู้ 1 บรรทัดนี้มาเผยแพร่กันครับ เริ่มต้นสำหรับการอัพเดด gem สำหรับมี proxy อยุ่สามารถทำได้ 2 วิธีครับ คือเข้าไป set environments ของ windows ซึ่งยาวไม่อธิบายละกัน เอาเป็นว่า ใช้ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/01/gem.jpg"><img class="aligncenter size-medium wp-image-39" title="update_gem" src="http://www.iearn.in.th/wp-content/uploads/2009/01/gem-300x206.jpg" alt="update_gem" width="300" height="206" /></a></p>
<p>ช่วงนี้กำลังว่างเนื่องจากว่าไม่ค่อยมีงานอะไรไหลเข้ามาเท่าไรเนื่องจากวิกฤเศรษฐกิจโลก อ่าๆ เลยเอาเวลาว่างๆ ช่วงนี้มาสร้างสัน อะไรเล่นดีกว่า โดยหลังจากพอรู้แล้วว่า NSC คงไม่ได้เขารอบสุดท้ายแน่เลยเอาเวลามาปรับปรุง Haleserver ที่ทิ้งตั้งไว้ซักพักแล้วให้สามารถใช้งานได้ และคิดว่าจะเขียน sharing community เล็กๆ ขึ้นมาเพื่อให้เป็นตัวกลางในการแลกเปลี่ยนไฟล์กันในมหาลัย เลยจัดแจงเปิด Netbeans IDE คู่ใจหวังว่าจะืำให้เสร็จประมาณวัน-สองวันแต่เหตุการณ์ไม่คาดฝันเกิดขึ้นเมื่อผม generate rails app ปรากฏว่า netbeans ฟ้องว่า Gem ที่คุยใช้มันล่าสมัยน่า (0&#8230;..) เอาเป็นว่าเป็นสาเหตุที่จำเป็นต้องมา update gem กันในวันนี้<span id="more-38"></span></p>
<p>แต่ปัญหาสำคัยไม่ได้อยุ่ตรงอัพเดดหรอกครับแต่เนื่องมาจากระบบในมหาวิทยาลัยผมใช้ proxy เลยทำให้การอัพเดดต่างๆ ยากกว่าเดิมไปประมาณ 1 บรรทัดก็เลยเอาความรู้ 1 บรรทัดนี้มาเผยแพร่กันครับ</p>
<p>เริ่มต้นสำหรับการอัพเดด gem สำหรับมี proxy อยุ่สามารถทำได้ 2 วิธีครับ คือเข้าไป set environments ของ windows ซึ่งยาวไม่อธิบายละกัน เอาเป็นว่า ใช้ dos คำสั่ง ง่ายๆ ในการ set environments ละกันครับ</p>
<p><code> SET HTTP_PROXY=http://cahce.psu.ac.th:8080<br />
update_rubygems<br />
gem update</code></p>
<p>ก็เป็นอันว่าเรียบร้อยแล้วละครับ เพิ่มแค่บรรทัดแรกเอง</p>

<p class="sayac_bilgi">13 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/01/19/update-ruby-gem-behind-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

