title: Unable to load mod_cdr_pg_csv module in Freeswitch
body: <p>New Freeswitch installation Debian Jessie 8 in AWS:</p>
  
  <pre><code>No LSB modules are available.
  Distributor ID: Debian
  Description:    Debian GNU/Linux 8.0 (jessie)
  Release:    8.0
  Codename:   jessie
  </code></pre>
  
  <p>Using Installation instructions from <a href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie" rel="nofollow noreferrer">here</a>.</p>
  
  <pre><code>wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
  
  echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" &gt; /etc/apt/sources.list.d/freeswitch.list
  
  # you may want to populate /etc/freeswitch at this point.
  # if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
  apt-get update &amp;&amp; apt-get install -y freeswitch-meta-all
  </code></pre>
  
  <p>Following instructions for <code>mod_cdr_pg_csv</code> <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_cdr_pg_csv" rel="nofollow noreferrer">here</a> I have installed:</p>
  
  <pre><code>apt-get install libpq-dev libpq5
  apt-get install postgresql-client
  </code></pre>
  
  <p>But still unable to load module or find it.</p>
  
  <pre><code>&gt;module_exists mod_cdr_pg_csv
  false
  
  
  &gt;load mod_cdr_pg_csv
  +OK Reloading XML
  -ERR [module load file routine returned an error]
  
  2018-02-10 08:59:30.427543 [INFO] mod_enum.c:879 ENUM Reloaded
  2018-02-10 08:59:30.427543 [INFO] switch_time.c:1423 Timezone reloaded 1750 definitions
  2018-02-10 08:59:30.427543 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/lib/freeswitch/mod/mod_cdr_pg_csv.so
  **/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so: cannot open shared object file: No such file or directory**
  </code></pre>
  
  <p>Debug freeswitch.log</p>
  
  <pre><code>2018-02-10 07:47:01.012683 [CRIT] switch_loadable_module.c:1522 Error Loading module /usr/lib/freeswitch/mod/mod_cdr_pg_csv.so
  **/usr/lib/freeswitch/mod/mod_cdr_pg_csv.so: cannot open shared object file: No such file or directory**
  </code></pre>
  
  <p><code>modules.conf.xml</code> has been configured.</p>
  
  <p>When I run <code>find / -name "mod_cdr_pg_csv.so"</code> I don't get any result.</p>
  
  <p>Still unable to load module. 
  Another module like mod_python successfully loads.</p>