Page 1 of 1
Domotiga server on Raspberry PI: command not found
Posted: Sun Oct 28, 2012 2:04 pm
by OWK
I've received my Raspberry PI with 512 MB memory and installed all required software using the WiKi page on Domotiga.nl.
It was a project with a steep learning curve for me as a Windows minded, but learned something.
When at CLI in the ~/domotiga folder, the command DomotiGaServer.gambas is input, an error 'command not found' is output.
I think Gambas is not in the default path. I issued the command while in ~/user/local/bin/ and than finally result: DomotiGaServer.gambas starts, although there is a twitter error
* So what do I have to do to have DomotiGaServer start from any location?
* Also: how can I check for DomotigaServer running?
Thanks!
OWK
Re: Domotiga server on Raspberry PI: command not found
Posted: Sun Oct 28, 2012 9:14 pm
by uAlex73
If you compiled gambas2 yourself, it will be installed in "/usr/local/bin". I checked my own system (Ubuntu 10.04) and by default my default users have "/usr/local/bin" in the PATH environment. Which distro/version are you running?
Re: Domotiga server on Raspberry PI: command not found
Posted: Mon Oct 29, 2012 6:14 pm
by OWK
That is wat I expected uAlex73
But I'm new to Linux, so I better ask.
Since I receive command not found if I try to run DomotiGaServer.gambas from the folder it is installed in, and it is not reproting an error if I try this from /usr/local/bin, I expect it will be a path problem.
Is there a way to print the current system paths stored to check this?
btw: I'm on 2012-09-18-wheezy-raspbian (based on the Raspbian optimised version of Debian) distribution on a Raspbery PI
Re: Domotiga server on Raspberry PI: command not found
Posted: Mon Oct 29, 2012 7:08 pm
by Willem4ever
echo $PATH
Re: Domotiga server on Raspberry PI: command not found
Posted: Mon Oct 29, 2012 7:40 pm
by OWK
Thanks Willem4ever
My path is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
So I would expect not to have a problem...
Any thoughts?
OWK
Re: Domotiga server on Raspberry PI: command not found
Posted: Mon Oct 29, 2012 8:37 pm
by RDNZL
If you installed gambas correctly (compiled from svn code)
You should be able to run DomotiGa.gambas or DomotiGaServer.gambas without having it in path
Simply by doing this:
Code: Select all
cd ~/DomotiGa
./DomotiGaServer.gam[code]
bas
or ./DomotiGa.gambas
[/code]
If it doesn't: check if you can run the gbr2 command from anywhere.
When run without a project specified you should get:
If this is ok, maybe there is something wrong with the environment variables.
When you open DomotiGaServer.gambas in an editor (vi for example)
You will see it starts with this line:
What do you get when you run this:
You should get the same as just gbr2.
Re: Domotiga server on Raspberry PI: command not found
Posted: Wed Oct 31, 2012 10:09 pm
by OWK
Thanks Ron
The answers to your tips are:
From the CLI: gbr2 will result in: gbr2: no archive file.
In DomotiGaServer.gambas it shows indeed #! /usr/bin/env gbr2. If I input that on the CLi I get the same result as with gbr2, gbr2: no archive file.
Your tip on starting the server with below command I have to check later because I have to stop/start Domoltiga for that.
What you write is not what I have done, I left the ./ out.
cd ~/DomotiGa
./DomotiGaServer.gambas
I will come back to this later!
Regards
OWK
Re: Domotiga server on Raspberry PI: command not found
Posted: Sun Nov 04, 2012 4:58 pm
by OWK
OK, confirmed
./DomotiGaServer.gambas from the ~/domotiga/ folder works.
I will look into startup to start Domotiga automatically at system boot
Regards,
OWK