Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run tugboat after installing #92

Closed
ghost opened this issue Mar 1, 2014 · 5 comments
Closed

Unable to run tugboat after installing #92

ghost opened this issue Mar 1, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 1, 2014

On a Digital Ocean Ubuntu 12.04 x64 droplet, I get a syntax error when running tugboat. Ruby is 1.8.7, gem is 1.8.15, tugboat is 0.2.0.

The error is: syntax error, unexpected ':', expecting kEND (SyntaxError).

More information below.

ar@ocean:~/ansible$ sudo gem install tugboat
Successfully installed tugboat-0.2.0
1 gem installed
Installing ri documentation for tugboat-0.2.0...
Installing RDoc documentation for tugboat-0.2.0...
ar@ocean:~/ansible$ tugboat
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': /var/lib/gems/1.8/gems/tugboat-0.2.0/lib/tugboat/cli.rb:12: syntax error, unexpected ':', expecting kEND (SyntaxError)
class_option :quiet, type: :boolean, aliases: "-q"
                          ^
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/tugboat-0.2.0/lib/tugboat.rb:1
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/tugboat-0.2.0/bin/tugboat:8
from /usr/local/bin/tugboat:19:in `load'
from /usr/local/bin/tugboat:19
ar@ocean:~/ansible$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
ar@ocean:~/ansible$ gem -v
1.8.15
@4n3w
Copy link
Collaborator

4n3w commented Mar 1, 2014

1.8.7 only supports the hashrocket syntax.

Can you upgrade your version of ruby to 1.9+?

@ghost
Copy link
Author

ghost commented Mar 1, 2014

I upgraded to 1.9.1 after removing all the vestiges I could find of 1.8.x. I get a different error message now. My apologies--I am not a Ruby programmer so this is harder for me to troubleshoot.

I have tugboat 0.0.9 running on a different droplet, but I'm not sure how to get that version. When I installed it, I'm pretty sure I just used "gem install tugboat" to that a month or so ago.

ar@ocean:~$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
ar@ocean:~$ gem -v
1.8.11

ar@ocean:~$ sudo gem install tugboat
Fetching: thor-0.18.1.gem (100%)
Fetching: multipart-post-1.2.0.gem (100%)
Fetching: faraday-0.8.9.gem (100%)
Fetching: faraday_middleware-0.9.0.gem (100%)
Fetching: json-1.8.1.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing tugboat:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:1:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out

@blom blom mentioned this issue Mar 1, 2014
@blom
Copy link
Collaborator

blom commented Mar 1, 2014

@DHancock If you only installed the ruby1.9.1 package you will need to install ruby1.9.1-dev too. You can also install the ruby1.9.3 package from the start as it should take care of everything.

@ghost
Copy link
Author

ghost commented Mar 1, 2014

Excellent! I installed Ruby 1.9.3, ran "gem install tugboat" and all is well now. Many thanks!

@ghost ghost closed this as completed Mar 1, 2014
@blom
Copy link
Collaborator

blom commented Mar 1, 2014

Glad it worked out!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants