ปัญหาเกิดจากกำลังลอง 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 rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems

5 views

Leave a Reply