Project

General

Profile

Raspberry Pi Install Troubles

Added by danward79 over 3 years ago

Hi All,

Finally settled into our new country and have found time to sort out having a play with the latest version of housemon / jeebus.

I have installed go, node and LUA. I then set my GOPATH, go env give the following.

GOARCH=“arm”
GOBIN=“”
GOCHAR=“5”
GOEXE=“”
GOHOSTARCH=“arm”
GOHOSTOS=“linux”
GOOS=“linux”
GOPATH=“/home/pi/go/bin”
GORACE=“”
GOROOT=“/home/pi/go”
GOTOOLDIR=“/home/pi/go/pkg/tool/linux_arm”
CC=“gcc”
GOGCCFLAGS="-fPIC -marm -pthread fmessage-length=0"
CXX=“g++”
CGO_ENABLED=“1”
I then ran the setup script devsetup.js.
Then ran cd jeebus && npm update && node .
At the end of this I get a [node] fatal error: still cannot launch “gin”
is \$GOPATH/bin in your \$PATH?

Could you please help me with getting my install correct? I think I am missing something around the GOPATH? or should I export \$PATH = \$GOPATH/bin?

The install was a fresh raspbian

Cheers

Dan


Replies (12)

RE: Raspberry Pi Install Troubles - Added by doewie over 3 years ago

@dan
No problems on my freshly installed rpi.
Have indeed included \$GOPATH/bin in my path.
And have exported \$GOBIN = \$GOPATH/bin

doewie

RE: Raspberry Pi Install Troubles - Added by jcw over 3 years ago

Sorry, I’m still messing with things, so probably all my fault ATM…

HouseMon 0.9 needs JeeBus 0.3 (yeah, how confusing is that… it’ll all be solved with 0.9.1, honest!)

Easiest way to do this, is to check JB out with Git, and then checkout the “0.3.0” branch i.s.o. “master”.

PS. I’m getting there: Flow and JB are now in pretty good shape. HM hasn’t be adapted yet.
Am currently working on JB to add more features back in the dataflow way, then I’ll tackle HM.
HouseMon 0.9 still depends on Lua, but 0.9.1 will not, using a built-in JavaScript engine instead.
Once everything works together again, I’ll bump all the versions to 0.9.1, and document it.
FWIW, I’m frequently checking that latest code also works on RasPi, BBB, and Odroid.

RE: Raspberry Pi Install Troubles - Added by jcw over 3 years ago

FWIW, I’ll also be dropping the development mode “gin” requirement for 0.9.1 (it can all be done more simply with node.js).
The 0.9.1 release should be ready by the end of next week. Simplify, simplify, simplify!

RE: Raspberry Pi Install Troubles - Added by jcw over 3 years ago

Maybe HM will also work on MIPS one day - https://github.com/GeertJohan/openwrt-go/compare/add-gccgo-and-libgo
Would be nice - thinking about the Carambola2, but also some members of the TL-WR7xx series…

RE: Raspberry Pi Install Troubles - Added by danward79 over 3 years ago

Thanks for the replies.

I am still having issues. Partly due to my Novice Linux skills!

  1. After a reboot my path is not being stored. I guess that is a permissions thing.
  2. Once I set up my GoPath, GoBin etc. I managed to get Jeebus to start, but got the following.

    [gin] listening on port 3000
    [node] watching for file changes in:
    ./app
    /home/pi/go/bin/src/github.com/jcw/jeebus/base
    /home/pi/go/bin/src/github.com/jcw/jeebus/common
    2014/03/19 08:49:12 http: proxy error: dial tcp 127.0.0.1:3001: connection refused
    [gin] ERROR! Build failed.

    _/home/pi/jeebus

    ./main.go:5: main redeclared in this block
    previous declaration at ./main.go:3
    ./main.go:6: undefined: jeebus

So I looked at another thread and tried NPM install then I tried again same issue.

So I then installed Jeebus to Go and did Devsetup etc.

This led somehow to another error

[gin] listening on port 3000
[node] watching for file changes in:
  ./app
  /home/pi/go/bin/src/github.com/jcw/jeebus/base
  /home/pi/go/bin/src/github.com/jcw/jeebus/common
2014/03/19 09:25:45 http: proxy error: dial tcp 127.0.0.1:3001: connection refused
[gin] ERROR! Build failed.
# _/home/pi/jeebus
./main.go:3: can't find import: "github.com/jcw/jeebus"

I tried to checkout v0.3.0, using

go get install -tags luaa https://github.com/jcw/jeebus/tree/v0.3.0

That did not work either!

I’ll have another go tomorrow.

One thing that is confusing for me is that the guide appears to be split over two pages.
http://jeelabs.net/projects/jeebus/wiki/Setting\_up\_a\_new\_JeeBus\_application

and

http://jeelabs.net/projects/jeebus/wiki

Cheers

Dan

RE: Raspberry Pi Install Troubles - Added by jcw over 3 years ago

> One thing that is confusing for me is that the guide appears to be split over two pages.

It just got worse: neither of those two pages are valid anymore (but still archived).

I’m moving all documentation into the HouseMon wiki. One area, a few pages, and (hopefully) a good sidebar - soon.

RE: Raspberry Pi Install Troubles - Added by danward79 over 3 years ago

Ok, thanks. I’ll have a look later and start from the top!

Cheers

Dan

RE: Raspberry Pi Install Troubles - Added by danward79 over 3 years ago

Hi,

I managed to get it all running last night.

I think what fixed it was sorting out the Paths/Gopaths, then installing houseman first followed by Jeebus.

Having said that I am not 100% sure the two are talking yet. Any tips on how to test this simply?

Cheers

Dan

RE: Raspberry Pi Install Troubles - Added by jcw about 3 years ago

No complete docs yet, but there is some info on the latest HouseMon setup at http://jeelabs.net/issues/482\#note-3

I wouldn’t replace what you have running now, but it might be worth setting up as separate area, just to see what’s coming. This is using the latest Flow-based Programming design, which makes it all very modular. It now uses “gadgets” as building blocks on the server, using and extending the ones defined in the JeeBus and Flow projects:

$ housemon info
Registered gadgets and circuits:

  AddTag Attach BinaryFill BootData CalcCrc16 Clock CmdLine Concat3 Counter
  Delay Dispatcher EnvVar FanOut FbpParser Forever HTTPServer IntelHexToBin
  JavaScript JeeBoot LevelDB LogReader LogReplayer Logger MQTTPub MQTTServer
  MQTTSub Node-homePower Node-ookDcf Node-ookRelay Node-p1scanner
  Node-radioBlip Node-roomNode Node-smaRelay NodeMap Pipe Printer PutReadings
  ReadFileJSON ReadFileText Readings Repeater RpcHandler SerialPort Sink
  Sketch-RF12demo SketchType SplitReadings TimeStamp Timer Waiter
  WebSocket-default WebSocket-jeebus dbdump dbexport dbget dbimport dbkeys
  dbput demo driverFill help info init jeeboot main mqttpub mqttsub
  nodesJeeLabs replay rf12toDatabase serial tableFill try1

FWIW, I’m working on a new visual circuit editor in JeeBus (and later therefore also HouseMon):

This would greatly enhance the flexibility and configurability of this entire system, but it’s also a major task.
Anyway, HM is still bleeding-edge stuff at the moment, so please don’t expect a plug-and-play setup yet…

RE: Raspberry Pi Install Troubles - Added by danward79 about 3 years ago

Hi,

Thanks for the info, I have been away a while so have been completely distracted.

As far as replacing what I have running, I will be keeping the two separate. Although my original setup would be no loss, it is on a pi. I have a separate pi or my mac for the latest offering.

I’ve been looking this morning you and lightening have been busy.

Cheers

Dan

RE: Raspberry Pi Install Troubles - Added by lightbulb about 3 years ago

@danward79,

Incase you just want to ‘play’ using simple binary builds - first in a series of docs here: http://jeelabs.net/boards/9/topics/4607
No GO or path changes needed for a basic ‘start me up’.

—lightbulb

RE: Raspberry Pi Install Troubles - Added by danward79 about 3 years ago

Thanks, I saw your post. It looks well written. I will stick with compiling from source thou.

I’ll be reading your other tutorials with interest.

Cheers

Dan

    (1-12/12)