title: Unable to run "gearman" command line tool with gearman 1.1.6
body: <p>I am trying to run the example on "<a href="http://gearman.org/getting_started" rel="nofollow noreferrer">http://gearman.org/getting_started</a>" on Ubuntu in VirtualBox environment.</p>
  
  <p>At first I tried to download an old version <code>0.16</code> by using <code>apt-get install gearman-job-server</code>, <code>apt-get install gearman-tools</code> and everything worked well. The server ran in the background, I was able to create 2 workers and verify that I can call them by creating a client.</p>
  
  <p>I decided to download and compile the latest version, <code>1.1.6</code>. Now, I am trying to do the same thing with the new version and I am having errors. </p>
  
  <p>I run the server as admin:</p>
  
  <pre><code>  sudo gearmand
  </code></pre>
  
  <p>The statement</p>
  
  <pre><code>  gearadmin --getpid
  </code></pre>
  
  <p>seems to work - it returns me the process ID of the server. Thus, the server is running, and <a href="https://stackoverflow.com/questions/6995202/problem-with-gearman-gearman-could-not-connect">this answer</a> is not relevant. </p>
  
  <hr>
  
  <p>Now, I am adding a worker:</p>
  
  <pre><code> gearman -w -f wc -- wc -l 
  </code></pre>
  
  <p>It seems to run. </p>
  
  <p>Nevertheless, </p>
  
  <pre><code>gearadmin --workers 
  </code></pre>
  
  <p>results in something that probably represents and empty list :</p>
  
  <pre><code>33 127.0.0.1 - :
  .
  </code></pre>
  
  <p>(In version 0.16, I was able to see 2 lines, the second showing the registered function name.)</p>
  
  <hr>
  
  <p>Attempting to run the client</p>
  
  <pre><code> gearman -f wc &lt; /etc/passwd
  </code></pre>
  
  <p>results in </p>
  
  <pre><code> gearman: gearman_client_run_tasks : flush(GEARMAN_COULD_NOT_CONNECT) localhost:0 -&gt; libgearman/connection.cc:671"
  </code></pre>
  
  <p>This might be the very same problem described in <a href="https://stackoverflow.com/questions/14883681/gearman-gives-me-gearman-could-not-connect-it-is-definitely-running">here</a> - the port not specified, but I have no idea how to do it through the command line tool.</p>
  
  <p>Any idea?</p>