Jump to content

nyuman

Member
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

354 profile views

nyuman's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. I got it working! Thank you so much. The bash script ended up being this: source "/Users/Trevor/.bashrc" ruby ./myscript.rb "{query}"
  2. Thank you so much for the answer. I get an error when I try to build the gem: sudo gem install sonos-0.3.4.gem Building native extensions. This could take a while... ERROR: Error installing sonos-0.3.4.gem: ERROR: Failed to build gem native extension. /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.2/ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-apple-darwin13.0.2/ports/libxml2/2.8.0/compile.log' to see what happened. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/bin/ruby /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:265:in `block in execute': Failed to complete compile task (RuntimeError) from /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in `chdir' from /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in `execute' from /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:69:in `compile' from /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:109:in `cook' from extconf.rb:101:in `block in <main>' from extconf.rb:119:in `call' from extconf.rb:119:in `block in <main>' from extconf.rb:109:in `tap' from extconf.rb:109:in `<main>' Gem files will remain installed in /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.1 for inspection. Results logged to /Users/Trevor/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out Is this an easy fix, or is there another way to include gems? Thanks again in advance!
  3. I have spent almost 8 hours on this and I know it's an easy fix. I want to use this fork of the Sonos Ruby gem. The problem: I don't know how to require/include the gem, neither locally as a cloned copy or as a regular "require gem_name". The script runs fine in IRB, but when I try to run it in a workflow the sound doesn't pause. I thought it might be because my system Ruby is old, but I use Mavericks so that shouldn't be a problem. You can download the Workflow here from my Dropbox. And here's a SO question with more info, too. Any help is really appreciated. I am ready to tear my hair out on this.
×
×
  • Create New...