Re: [問題] 新手安裝Ruby的問題
其實這似乎是 rails 的安裝問題哩
※ 引述《cuteman0725 (Q麵)》之銘言:
: 環境:
: -------------------------------------
: 作業系統:一開始用 Vista 安裝,後來改用 WinXP
: Ruby 1.8.6-26 和 1.8.6-27RC2
為什麼要用這麼舊的 ruby? 如果一定要用 1.8.6,
patchlevel 好歹用個 114 之後的
不過我剛剛看了一下,one click installer 的版本好像就是這個?
不介意的話,可以試試 1.8.7
http://www.ruby-lang.org/en/downloads/
或是自己 build 看看,用 msys 或 cygwin (cygwin 有 ruby binary release)
: (1)在 gem install mysql 時,出現下列錯誤
: Successfully installed mysql-2.7.3-x86-mswin32
: 1 gem installed
: Installing ri documentation for mysql-2.7.3-x86-mswin32...
: Installing RDoc documentation for mysql-2.7.3-x86-mswin32...
: ERROR: While generating documentation for mysql-2.7.3-x86-mswin32
這只是文件產生有誤,基本上沒有任何影響(我懷疑有人在看嗎?不都上網翻...)
: (2)輸入 http://localhost:81/helloworld
: 網頁出現另一個錯誤
: 126: - C:/Ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so
: ﹙圖片網址如下﹚
: http://0rz.tw/fa5aO
你的步驟應該沒錯吧,雖然我不知道 mongrel_rails 的 options 有哪些。
但這個錯誤就讓人納悶了,不知道為什麼會有亂碼?
錯誤是寫 LoadError, 看看能否確認檔案是否全部存在,
否則我會猜是 binary 不相容...
或許你可以先試試純 ruby 的 mysql binding, 我記得 rails 好像有 bundle?
或是換新版本的 ruby 試試,也許他送你的 mysql binary 版本不相容
不然就是要自己 build 一次,但這在 windows 上真的麻煩了些, 除非你用 cygwin.
--
#!/usr/bin/env ruby [露比] /Programming (Kn|N)ight/ 看板《Ruby》
# if a dog nailed extra legs that http://www.ptt.cc/bbs/Ruby/index.html
# walks like an octopus, and Welcome ~Ruby@ptt~
# talks like an octopus, then ◢█◣ http://www.ruby-lang.org/
# we are happy to treat it as █ http://www.ruby-doc.org/
# if it were an octopus. ◥ ◤ http://www.rubyforge.org/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.28.18
推
12/07 23:45, , 1F
12/07 23:45, 1F
討論串 (同標題文章)