title: Raspberry Pi 2 GPSD Not Running
body: <p>I am following <a href="https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi?view=all" rel="nofollow">this</a> tutorial to hook up Adafruit's Ultimate GPS Breakout to my Raspberry Pi 2. I have carefully read each step.</p>
  
  <p>When I run <code>gpsmon /dev/ttyUSB0</code>, it displays expected output with my location, speed, etc. When I run <code>cgps -s</code>, however, I get this message <code>cgps: no gpsd running or network error: -4, can't create socket</code>.</p>
  
  <p>The really weird thing is that the GPSD seems to be failing. Here is me trying to start it:</p>
  
  <pre><code>pi@raspberrypi:~$ sudo service gpsd status
  [FAIL] gpsd is not running ... failed!
  pi@raspberrypi:~$ sudo service gpsd restart
  [ ok ] Restarting GPS (Global Positioning System) daemon: gpsd.
  pi@raspberrypi:~$ sudo service gpsd status
  [FAIL] gpsd is not running ... failed!
  pi@raspberrypi:~$ sudo service gpsd start
  pi@raspberrypi:~$ sudo service gpsd status
  [FAIL] gpsd is not running ... failed!
  </code></pre>
  
  <p>So, it is apparent that <code>cgps</code> is failing because GPSD is not starter. Any suggestions to get GPSD working?</p>
  
  <p><strong>EDIT</strong>
  When I run <code>sudo gpsd -N -D3 -F /var/run/gpsd.sock</code>, I get this output:</p>
  
  <pre><code>gpsd:INFO: launching (Version 3.6)
  gpsd:ERROR: can't bind to IPv4 port gpsd, Cannot assign requested address
  gpsd:ERROR: can't create IPv6 socket
  gpsd:DATA: command sockets creation failed, netlib errors -1, -1
  </code></pre>