mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

Is livereload incompatible with ruby 1.9.2? #63

Open lmartins opened 13 years ago

lmartins commented 13 years ago

I get the following when running livereload with ruby 1.9.2

Luis-Martinss-Mac-Pro:wip005 luismartins$ livereload

Version: 1.6 (compatible with browser extension versions 1.6.x) Port: 35729 Watching: /Users/luismartins/Sites/wip005

LiveReload is waiting for browser to connect. /Users/luismartins/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- osx/foundation (LoadError) from /Users/luismartins/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/platform/mac/rubycocoa_watcher.rb:2:in <top (required)>' from /Users/luismartins/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /Users/luismartins/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/platform/mac.rb:16:inblock in initialize' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/invokers/subprocess_invoker.rb:61:in call' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/invokers/subprocess_invoker.rb:61:instart_subprocess' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/invokers/subprocess_invoker.rb:20:in initialize' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/platform/mac.rb:25:innew' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/platform/mac.rb:25:in initialize' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/monitor.rb:35:innew' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/em-dir-watcher-0.9.4/lib/em-dir-watcher/monitor.rb:35:in watch' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/lib/livereload.rb:180:inrestart_watching' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/lib/livereload.rb:249:in block (2 levels) in run' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/lib/livereload.rb:249:ineach' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/lib/livereload.rb:249:in block in run' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:incall' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/lib/livereload.rb:220:in run' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems/livereload-1.6/bin/livereload:51:in<top (required)>' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/bin/livereload:19:in load' from /Users/luismartins/.rvm/gems/ruby-1.9.2-p180/bin/livereload:19:in

'

NV commented 13 years ago

Ruby can't find RubyCocoa.

I've tried to install RubyCocoa on rvm using https://gist.github.com/294465. It fails:

~/RubyCocoa-1.0.0$ ruby install.rb config --build-universal=yes
install.rb: entering config phase...
create ext/rubycocoa/extconf.rb
create framework/GeneratedConfig.xcconfig
create framework/src/objc/Version.h
create tests/Makefile
---> framework
create /Users/nv/Downloads/RubyCocoa-1.0.0/framework/src/objc/osx_ruby.h ...
config failed
hook /Users/nv/Downloads/RubyCocoa-1.0.0/framework/post-config.rb failed:
No such file or directory - /Users/nv/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/x86_64-darwin10.6.0/ruby.h
try 'ruby install.rb --help' for usage

Is there anyone who successfully installed RubyCocoa on rvm with 1.9.2?

lmartins commented 13 years ago

Im reading loads of stuff about this kind of errors but no success so far.

mattfordham commented 13 years ago

I am having the same problem using RVM and Ruby 1.9.2. Wondering if there is any official word on this. Has anyone had success w/ RVM and 1.9.2?

fwoeck commented 13 years ago

you can do a trick: the system ruby comes with cocoa enabled, so you can

a) install and start the livereload gem there: rvm use system; gem install livereload

or b) do a blend in that you install the gem in your rvm gemset (if any) and call livereload with the explizit system binary like:

/usr/bin/ruby which livereload

Personally, I use the guard-livereload gem with success.

(please allow for minor changes, I typed this from memory) --Frank

bitboxer commented 13 years ago

This is basically a duplicate of #26 ... this problem is long known but it looks like nobody on the core team cares about ruby 1.9.2 :( .

nofxx commented 13 years ago

Should be renamed to "Is compatible with OSX" , it works flawlessly on archlinux/ruby 1.9.2. Thanks for this, sad I didn't find this gem earlier.

bitboxer commented 13 years ago

No, it should be closed and marked as duplicate of #26 :)