igrigorik / vimgolf

Real Vim ninjas count every keystroke - do you?
http://www.vimgolf.com/
MIT License
679 stars 65 forks source link

Can't install vimgolf #13

Closed rtxu closed 13 years ago

rtxu commented 13 years ago

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'

    Building native extensions.  This could take a while...
    ERROR:  Error installing vimgolf:
            ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
    can't find header files for ruby.

    Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.4.6 for inspection.
    Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.4.6/ext/json/ext/generator/gem_make.out

Finally, I'm crazy and really could do nothing but to complain here.

JackLeo commented 13 years ago

You need to install ruby1.8-dev, but afterwards there is another bug:

vimgolf: command not found

igrigorik commented 13 years ago

Ack, I'll see if I can avoid the c-ext on json gem.. That should address the ruby-dev.

rtxu commented 13 years ago

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.

rtxu commented 13 years ago
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
rtxu commented 13 years ago
gem list

*** LOCAL GEMS ***

highline (1.6.1)
json (1.4.6)
rdoc (3.0.1)
thor (0.14.6)
vimgolf (0.1.2)
rtxu commented 13 years ago

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

singpolyma commented 13 years ago

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

rtxu commented 13 years ago

I'm on Fedora 11. Thanks.

igrigorik commented 13 years ago

Any particular error?