Answers.Body: <p><code>cv</code> has a PHP dependency that CiviCRM doesn't - the <code>posix</code> plugin.  It's installed by default on many systems with PHP (e.g. Debian/Ubuntu) but with the Red Hat/CentOS "remi" repository, it isn't.  You can <a href="https://stackoverflow.com/questions/40411083/no-colors-in-php-cli">install the php-process</a> package to resolve this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-26T15:16:28.023Z
Answers.LastActivityDate: 2018-07-26T15:16:28.023Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>When I run <code>cv</code> on a server, I get the following error:</p>
  
  <pre><code>[Symfony\Component\Debug\Exception\FatalThrowableError]                                                                                                                                                         
  Call to undefined function Civi\Cv\Command\posix_getuid()
  </code></pre>
  
  <p>Furthermore, I noticed that usually when I run <code>cv --help</code> the output is in color - on this server the output is in black and white.</p>
  
Tags: <cv>
Title: cv error: "Call to undefined function Civi\Cv\Command\posix_getuid()"
ThreadText: # cv error: "Call to undefined function Civi\Cv\Command\posix_getuid()"
  
  (Asked by: username_0 on 2018-07-26)
  
  When I run cv on a server, I get the following error:
  [Symfony\Component\Debug\Exception\FatalThrowableError]                                                                                                                                                         
  Call to undefined function Civi\Cv\Command\posix_getuid()
  
  Furthermore, I noticed that usually when I run cv --help the output is in color - on this server the output is in black and white.
  
  **Tags:** cv
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-26. Score: 5
  
  `cv` has a PHP dependency that CiviCRM doesn't - the `posix` plugin. It's installed by default on many systems with PHP (e.g. Debian/Ubuntu) but with the Red Hat/CentOS "remi" repository, it isn't. You can [install the php-process](https://stackoverflow.com/questions/40411083/no-colors-in-php-cli) package to resolve this.
  
  
  ---
  
  