我试着在这里学习ruby on rails,并按照视频教程学习,但似乎无法让环境运行。我已经使用rails新的project_name创建了一个项目,但是当我运行rails服务器时,我实际上不能让它工作。drew$ rails server
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.7/lib/mysql2.rb:9:in `require': dlopen(/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle, 9)
WEBrick实例方法mount_proc做什么(用简单的英语)?医生说:Mounts proc or block on dir and calls it with a WEBrick::HTTPRequestand WEBrick::HTTPResponse
但我不清楚mounts proc on dir到底是什么意思或做了什么。
我有以下代码,其中有一个WEBrick实例是派生的,我希望等到webrick启动后,再继续执行其余代码: server = WEBrickthat take some time to setupend
# here I want to wait till the fork is complete or the WEBrickis started and accepts connecti