[Libwebsockets] [libwebsockets] #74: ERROR opening socket on raspberry pi

Trac trac at libwebsockets.org
Wed Jun 25 22:39:00 CEST 2014


#74: ERROR opening socket on raspberry pi
------------------------------------+-----------------
 Reporter:  DonWasabi               |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:                          |
------------------------------------+-----------------
 hi :),
 the libwebsockets-test-server keeps telling me this

 pi at raspberrypi ~/libwebsockets/build/bin $ ./libwebsockets-test-server
 lwsts[3235]: libwebsockets test server - (C) Copyright 2010-2013 Andy
 Green <andy at warmcat.com> - licensed under LGPL2.1
 lwsts[3235]: Initial logging level 7
 lwsts[3235]: Library version: 1.3 dfca3ab
 lwsts[3235]: IPV6 compiled in and enabled
 lwsts[3235]: libev support not compiled in
 lwsts[3235]:  static allocation: 4468 + (12 x 1024 fds) = 16756 bytes
 lwsts[3235]:  canonical_hostname = raspberrypi
 lwsts[3235]:  per-conn mem: 128 + 1554 headers + protocol rx buf
 lwsts[3235]:  Compiled with OpenSSL support
 lwsts[3235]:  Using non-SSL mode
 lwsts[3235]: ERROR opening socket
 lwsts[3235]: libwebsocket_context_destroy
 lwsts[3235]: mirror protocol cleaning up
 lwsts[3235]: libwebsocket init failed

 even after a fresh install with 2014-01-07-wheezy-raspbian.

 Here is the list of comands i did directly after the install:

 sudo apt-get update
 sudo apt-get upgrade
 sudo reboot
 sudo apt-get install cmake git libssl-dev
 sudo git clone git://git.warmcat.com/libwebsockets
 cd libwebsockets
 mkdir build
 cd build
 sudo cmake ..
 sudo make
 sudo make install

 sudo ln -s /usr/local/lib/libwebsockets.so /usr/lib/libwebsockets.so
 sudo ln -s /usr/local/lib/libwebsockets.so.4.0.0
 /usr/lib/libwebsockets.so.4.0.0


 Did i do anything wrong or is it a bug? I would really enjoy using your
 lib but i can't get it working.

 greetings

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/74>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list