HatBashBR / HatCloud

discontinued

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syntax error

BlueNoob opened this issue · comments

# ruby --version
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]

# ruby hatcloud.rb -h
hatcloud.rb:7: syntax error, unexpected '<'
<!DOCTYPE html>
 ^
hatcloud.rb:8: syntax error, unexpected '<'
<html lang="en">
 ^
hatcloud.rb:9: syntax error, unexpected '<'
  <head>
   ^
hatcloud.rb:11: syntax error, unexpected '<'
  <link rel="dns-prefetch" href="https://assets-cdn.github.com">
   ^
hatcloud.rb:11: syntax error, unexpected tIDENTIFIER, expecting end-of-input
  <link rel="dns-prefetch" href="https://assets-cdn.github.com">

What is target ? Send me please..

no matter what target ,
I just run the command "ruby hatcloud.rb -h" after installed .

I have updated my first comment , you can see it more clear

Following shown up ... On CentOS 6.9 & ruby 1.8.7
[root@server HatCloud]# ruby hatcloud.rb -h
hatcloud.rb:64: warning: don't put space before argument parentheses
hatcloud.rb:81: warning: don't put space before argument parentheses
hatcloud.rb:5:in `require': no such file to load -- json (LoadError)
from hatcloud.rb:5