chendo / lifx-http

A HTTP API for controlling LIFX devices.
MIT License
91 stars 13 forks source link

Runing on RaspberryPi #6

Closed entropin closed 10 years ago

entropin commented 10 years ago

This is problebly more of a Ruby problem (First time trying it out) But am trying to get lifx-http working on my RaspberryPi: But am getting this error: uninitialized constant Socket::SO_REUSEPORT, any clows? Whould be so nice to have a privet lifx cloud on my pi:)

$sudo lifx-http /home/pi/.rvm/gems/ruby-2.1.1@global/gems/mdns-0.2.0/lib/mdns.rb:15:in start': uninitialized constant Socket::SO_REUSEPORT (NameError) from /home/pi/.rvm/gems/ruby-2.1.1@global/gems/lifx-http-0.2.3/bin/lifx-http:46:in<top (required)>' from /home/pi/.rvm/rubies/ruby-2.1.1/bin/lifx-http:23:in load' from /home/pi/.rvm/rubies/ruby-2.1.1/bin/lifx-http:23:in

' from /home/pi/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in eval' from /home/pi/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in
'

ngreatorex commented 10 years ago

I have lifx-http running on my Raspberry Pi with no problems. I think this error suggests that you must have an older version of the lifx gem installed. The use of SO_REUSEPORT was made optional in v0.4.4 of the lifx gem. You could try running "gem update lifx"?

entropin commented 10 years ago

"gem update mdns" did the trick ;) Thanks!

ngreatorex commented 10 years ago

Ah yes I missed that line when I read it earlier!

chendo commented 10 years ago

Closing as it's been solved :)