狮子服务器是荒谬的。在 Mac 上,我运行了 Lion Server 10.7.3 的安装和设置,然后安装了 rvm、Ruby 1.9.3 和 Rails 3.2.3。
在 Mac 上它工作得很好,而在第二个 Mac 上不工作,我进入了 log devicemgr:
<Info>: default_profile_created_at_least_once was already true
Apr 10 20:23:26 <Name of Server> ProfileManager[1117] <Warning>: ** has_many_polymorphs: Warning; not all usage scenarios for polymorphic scopes are supported yet.
在系统日志中,守护进程 devicemgr 总是重复:
<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Initializing DeviceManagerDaemon with ports 3320,3321,3322,3323,3324,3325,3326,3327,3328,3329 (physmem = 8GB)
<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Making sure Rails is configured properly
<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Running rake command: /usr/bin/rake db:migrate
<Date, Time and Nome Server>.devicemanager[1634]: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
<Date, Time and Nome Server>.devicemanager[1634]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
<Date, Time and Nome Server>.devicemanager[1634]: from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
<Date, Time and Nome Server>.devicemanager[1634]: from /usr/bin/rake:18
<Date, Time and Nome Server>.devicemanager[1634]: /usr/share/devicemgr/backend/devicemgrd:109:in `rake': Rake command failed with 256 (RuntimeError)
<Date, Time and Nome Server>.devicemanager[1634]: from /usr/share/devicemgr/backend/devicemgrd:103:in `setupRails'
<Date, Time and Nome Server>.devicemanager[1634]: from /usr/share/devicemgr/backend/devicemgrd:33:in `run'
<Date, Time and Nome Server>.devicemanager[1634]: from /usr/share/devicemgr/backend/devicemgrd:131
Apr 12 23:02:05 apple com.apple.launchd[1] (com.apple.devicemanager[1634]): Exited with code: 1
Apr 12 23:02:05 apple com.apple.launchd[1] (com.apple.devicemanager): Throttling respawn: Will start in 10 seconds
Apr 12 23:02:07 apple xgrid[1637]: gss_init_sec_context is called on main thread, its a blocking api
Apr 12 23:02:12 apple xgrid[1641]: gss_init_sec_context is called on main thread, its a blocking api
我该如何解决?如果您想避免重新安装所有内容。谢谢!