How can I install xrefresh monitor on my mac?
I type in command line
sudo gem install xrefresh
and
sudo gem install xrefresh-monitor
and
sudo gem install xrefresh_monitor
Rubygems report:
"could not find gem xrefresh locally or in a repository"
Need I specify some unusual repository to get it?
sudo gem install xrefresh
and
sudo gem install xrefresh-monitor
and
sudo gem install xrefresh_monitor
Rubygems report:
"could not find gem xrefresh locally or in a repository"
Need I specify some unusual repository to get it?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
Follow these instructions: http://xrefresh-server.rubyforge.org/
The company and 1 other person say
this answers the question
Get Satisfaction loves Zappos because they care about customer service.
-
Inappropriate?Follow these instructions: http://xrefresh-server.rubyforge.org/
The company and 1 other person say
this answers the question
-
I'm trying to install xrefresh-server on my Mac (OS X 10.5.4) and am having
trouble. I am able to download and install xrefresh-server using sudo gem
install xrefresh-server, but when I run xrefresh-server, I get an error.
I've installed RubyCocoa from the link you provided using the DMG files.
This is what I see
-------------------------------------------------------------------
island:~ island$ sudo gem install xrefresh-server
Bulk updating Gem source index for: http://gems.rubyforge.org
---
To run monitoring server launch:
xrefresh-server
(when first launched, you will be asked to setup config file)
For more information see http://xrefresh-server.rubyforge.org
---
Successfully installed xrefresh-server-0.1.0
1 gem installed
Installing ri documentation for xrefresh-server-0.1.0...
Installing RDoc documentation for xrefresh-server-0.1.0...
island:~ island$ xrefresh-server
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require': no such file to load -- ../lib/xrefresh-server.rb (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
from /Library/Ruby/Gems/1.8/gems/xrefresh-server-0.1.0/bin/xrefresh-server:17
from /usr/bin/xrefresh-server:19:in `load'
from /usr/bin/xrefresh-server:19
island:~ island$
-------------------------------------------------------
Can you help me? -
Inappropriate?Island, some other guy sent me an email and had exactly the same problem. But he haven't yet respond if he found solution.
I'm not able to reproduce it on my machine. It seems to me like gem wasn't installed properly, because require from line 15 of this file:
http://github.com/woid/xrefresh/tree/...
wasn't succesfull and rescue path is executed which do require on line 17 (which is there only for development).
I have an idea what you may try:
edit the file /Library/Ruby/Gems/1.8/gems/xrefresh-server-0.1.0/bin/xrefresh-server
1. on line 1 from shebang remove "-rubygems"
2. add after line 1 this line:
require 'rubygems'
Please let me know if it worked for you. I would eventually push it into new version. -
Inappropriate?Here is what the top of my new file looks like. I'm sorry if I did it wrong, I do not know exactly how this language works :)
--------------------------------------------
#!/usr/bin/env ruby
# Removed from the end of the first line: -rubygems
# Added to check for gems before running
require 'rubygems'
.
.
.
------------------------------------
I got the same error as before.
I think you are right in that it cannot find "xrefresh-server" on line 15, but what is strange is that when I type in "xrefresh-server" into my terminal, it executes the scripts. Doesn't that mean it's part of my include path? I thought this might help too:
--------------------------------------------------
island:/ island$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
island:/ island$ echo $path
-------------------------------------------------
I hope this helps. Please let me know if you have any other ideas. I'd like to help. Like I said, I don't really know this type of code, but I am a web developer so I do understand code in general. -
Inappropriate?There is xrefresh-server shell script in bin directory which is executable and therefore is on the path. That is right. It was installed there by gem installer.
This shell script runs ruby and tries to require 'xrefresh-server', which is library. Which should be installed by gem installer (into gem's lib directory). But it seems that on your computer it doesn't find this library.
Please try this from commandline:
$irb
irb>require 'rubygems'
irb>require 'xrefresh-server'
Second command in irb should return true -
Inappropriate?island:~ island$ irb
>> require 'rubygems'
=> false
>> require 'xrefresh-server'
LoadError: no such file to load -- json
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/xrefresh-server-0.1.0/lib/client.rb:1
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/xrefresh-server-0.1.0/lib/xrefresh-server.rb:46
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
from (irb):2
>> exit
island:~ island$ -
Inappropriate?Hey so you don't have json gem.
Ah, my mistake, there should be set some dependency for xrefresh-server gem to install also json library if it is not available.
try this:
$sudo gem install json
if it doesn't compile native extension successfuly, try this:
$sudo gem install json_pure
this must help! -
Inappropriate?YES! That was it. It's working great! You have no idea how much I appreciate this! I've tried all kinds of silly things to try to get some functionality like this. This is GREAT! Thank you so much!
One side note. When XRefresh is the active tab in Firebug, and firebug is collapsed, you cannot open up Firebug by clicking on the small icon in the bottom right. It does not work unless you Control-Click and open Firebug in a new window. From there, if you select a different tab, it works as it should.
Thanks again! You are awesome! -
Inappropriate?Great!
Hopefully next version will be more friendly to mac users and with better docs. -
Inappropriate?I think it is already very friendly actually. All that I would add as a Mac user is this:
Installation on Mac
- Make sure RubyCocoa is installed
- Install FireFox Plugin
- Go to terminal
- Terminal -> sudo gem install json
- Terminal -> sudo gem install xrefresh-server
Start Xrefresh-server
- Terminal -> xrefresh-server
- Create the configuration file if it's a first run
- Now that xrefresh-server is running, restart Firefox*
* xrefresh-server must be running in terminal before Firefox starts.
Thanks again!
Loading Profile...


