Closed rtxu closed 13 years ago
You need to install ruby1.8-dev, but afterwards there is another bug:
vimgolf: command not found
Ack, I'll see if I can avoid the c-ext on json gem.. That should address the ruby-dev.
Just now, I installed ruby-devel. ruby-devel.i586 0:1.8.6.399-1.fc11 Then, gem install vimgolf ERROR: Could not find a valid gem 'vimgolf' (>= 0) in any repository
Problem is still there.
sudo gem install vimgolf -v '0.1.2'
Building native extensions. This could take a while...
Successfully installed json-1.4.6
Successfully installed highline-1.6.1
Successfully installed vimgolf-0.1.2
3 gems installed
/usr/lib/ruby/gems/1.8/gems/rdoc-3.0.1/lib/rdoc/method_attr.rb:147: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/rdoc-3.0.1/lib/rdoc/stats.rb:174: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/rdoc-3.0.1/lib/rdoc/ruby_lex.rb:67: warning: parenthesize argument(s) for future version
ERROR: While executing gem ... (Gem::DocumentError)
ERROR: RDoc documentation generator not installed: no such file to load -- irb/slex
gem list
*** LOCAL GEMS ***
highline (1.6.1)
json (1.4.6)
rdoc (3.0.1)
thor (0.14.6)
vimgolf (0.1.2)
Although there is a problem about generating doc, vimgolf can run successfully. Hope what I provided could help you fix bug(s) or make a more detailed install tutorial.
$ vimgolf
Tasks:
vimgolf help [TASK] # Describe available tasks or one specific task
vimgolf put [ID] # launch Vim session
vimgolf setup # configure your VimGolf credentials
$ vimgolf setup
Please specify your VimGolf API token (register on vimgolf.com to get it):
~!@#$%^&*())~!@#$%^&*()
Saved. Happy golfing!
But, watch out what follows: $ vimgolf put 4d1c1a3cf655cd081000000d Launching VimGolf session for challenge: 4d1c1a3cf655cd081000000d Client version mismatch. Installed: 0.1.2, Required: 0.1.3. gem install vimgolf Uh oh, something wen't wrong! Error: Uh oh, couldn't download or parse challenge, please verify your challenge id & client version. If the error persists, please report it to github.com/igrigorik/vimgolf $ sudo gem install vimgolf ERROR: Could not find a valid gem 'vimgolf' (>= 0) in any repository $ sudo gem install vimgolf -v '0.1.3' ERROR: Could not find a valid gem 'vimgolf' (= 0.1.3) in any repository
If you are on a recent Ubuntu (recent Debian probably also works) you can add http://apt.singpolyma.net as a repo (instructions on that page) and then apt-get install vimgolf should work
I'm on Fedora 11. Thanks.
Any particular error?
I like the idea of this site (http://vimgolf.com/).
But I'm not a ruby user. So I think your install tutorial is too short and I can't install vimgolf as a normal no-background-knowledge user. After some google search about gem, I found the rubygems project. Until then, I just understood what gem meant. But after some tries, I was tired and gave up all hopes.
I installed ruby. ruby -v ruby 1.8.6 (2010-02-05 patchlevel 399) [i386-linux]
I installed rubygems. gem -v 1.3.7
Finally, I run 'sudo gem install vimgolf' ERROR: Could not find a valid gem 'vimgolf' (>= 0) in any repository Then, I found your github, check out the source code for the version (0.1.2) sudo gem install vimgolf -v '0.1.2'
Finally, I'm crazy and really could do nothing but to complain here.