การติดตั้ง rails


8. Install rails

ขั้นตอนที่ 8 : การติดตั้ง rails
คำสั่งการติดตั้ง rails

#gem install rails --include-dependencies

click >> ตัวอย่าง  

คำสำคัญ (Tags): #tutorial#install#rails#kv#knowledgevolution
หมายเลขบันทึก: 55522เขียนเมื่อ 24 ตุลาคม 2006 14:30 น. ()แก้ไขเมื่อ 17 เมษายน 2012 18:34 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (8)

#gem install rails --include-dependencies

ใช้เวลานานไหมครับ ตอนี่ติดตั้งหนะครับ

ผมลองทำและใช้คำสั่งข้างต้น เหมือนมันจะขึ้นว่าแบบนี้ครับ

Attempting local installation of 'rails'

Local gem file not found: rails*.gem

Attempting remote installation of 'rails'

Updating Gem source index for: http://gems.rubyforge.org

แล้วมันก็รอ นานมาก แล้วไม่เกิดอะไรขึ้นเลย

เลยสงสัยว่ามีความผิดปรกติอย่างไรหรือเปล่าครับ และมีวิธีตรวจสอบอย่างไรครับ

คิดว่าน่าจะมีปัญหาในการต่อ internet ครับลองตรวจสอบดูดังนี้

1. ลองเข้า http://gems.rubyforge.org จาก browser ดูว่าเข้าได้หรือไม่

2. มีการใช้ proxy ในการเชื่อมต่อหรืือไม่ ถ้ามีให้ใช้คำสั่งดังนี้ก่อน set HTTP_PROXY=http://[proxy url]:[port] แล้วตามด้วยคำสั่ง gem install rails --include-dependencies ครับ

1. เชื่อมต่อ internet ได้ครับ

ไม่มีการเชื่อต่อผ่าน proxy ครับ

2. รบกวนถามอีกเรื่องนะครับ

svn co svn://svn.usablelabs.com/kms/kv/trunk kv

ไม่สามารถใช้งาน ได้ครับ ไปดูในเว็บ http://knowledgevolution.org

เหมือนมีการปรับปรุงเว็บไซต์ของเจ้าของ souce code

คำถามคือจะสามารถหา download ได้ที่ไหนบ้างครับ

มีปัญหา การใช้คำสั่ง

#gem install rails --include-dependencies

และ

#gem install gettext --include-dependencies

#gem install redcloth --include-dependencies

#gem install gd2 --include-dependencies

#gem install color --include-dependencies

นิ่งเลยครับ ไม่มีการเชื่อมต่อผ่าน proxy ครับ

มีปัญหา การใช้คำสั่ง

#gem install rails --include-dependencies

และ

#gem install gettext --include-dependencies

#gem install redcloth --include-dependencies

#gem install gd2 --include-dependencies

#gem install color --include-dependencies

นิ่งเลยครับ ไม่มีการเชื่อมต่อผ่าน proxy ครับ

1. เรื่อง svn co svn://svn.usablelabs.com/kms/kv/trunk kv แล้วไม่ได้อันนี้ให้ลองติดต่อเจ้าของ web ดูนะครับ

2. เรื่อง install gems ไม่ได้ให้ลองโหลด gem จาก http://gems.rubyforge.vm.bytemark.co.uk/gems/ มาลงแบบ local ดูครับ

ขอคำแนะนำอีกนิดครับ

ตรง http://gems.rubyforge.vm.bytemark.co.uk/gems/

download ตัวไหน บ้างที่ใช้ครับ

แล้ววิธีการลงแบบ local ทำอย่างไรครับ ใช้คำสั่งอะไรครับผม

ปล. ผมไม่เคยใช้งาน ruby ครับ

gems ที่ใช้มีดังนี้ครับ

1. activesupport

2. activerecord

3. actionpack

4. actionwebservice

5. actionmailer

6. rails

คำสั่งที่ใช้ install คือ gem install activesupport-x.x.x.gem (x.x.x คือเลข version ที่โหลดมาแนะนำให้ใช้ตัวใหม่สุดครับ) ให้ run คำสั่งตามลำดับด้านบนนะครับ

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท