Where do I set MTURK_CMD_HOME for the command line tools?

Discussion in 'General' started by aressidi, Sep 5, 2009.

  1. aressidi

    aressidi New Member

    Joined:
    Sep 2, 2009
    Messages:
    4
    Likes Received:
    0
    Hi there,

    I'm sure a seach here in the forum would reveal the answer to this question, unfortunately that's not working for me. I'm trying to get the Mechanical Turk command line tools working on my Mac - the instructions for Unix machines (which I assume should work on my Mac) mention setting two variables:

    • MTURK_CMD_HOME
    • JAVA_HOME

    What file do I add these variables to? I tried adding them to mturk.properties like this but it didn't work:

    MTURK_CMD_HOME=/users/alex/Tools/aws-mturk-clt-1.3.0/
    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/Current

    Thanks for the help.
    -A
     
  2. lightdark

    lightdark User

    Joined:
    Feb 20, 2009
    Messages:
    136
    Likes Received:
    0
    If a Mac is close enough to Linux/Unix:
    -Edit your '/etc/profile' or '~/.bash_profile'(for example if you use bash)
    -Add 'export MTURK_CMD_HOME=/users/alex/Tools/aws-mturk-clt-1.3.0'
    -Add 'export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/Current'
    -And if you want it in your path add 'export PATH=$PATH:/users/alex/Tools/aws-mturk-clt-1.3.0/bin'

    This may be totally wrong for a Mac, I have no idea. It works for Linux.

    Maybe someone that uses a Mac can help you further if this doesn't work.

    BTW, try the Advanced search instead.
     
  3. aressidi

    aressidi New Member

    Joined:
    Sep 2, 2009
    Messages:
    4
    Likes Received:
    0
    lightdark, thanks again! That worked. I noticed that there's a Ruby example for interacting with the Mechanical Turk API, I'm thinking I might go that route instead, but these command line tools now work for me. Thanks again.
     

Share This Page