Cannot launch DomotiGa.gambas, import SQL

Added by yanziqiang almost 2 years ago

Pls help...I'm on Ubuntu 10.04...Installed Gambas 2 & MySQL as in Wiki...
Double clicking DomotiGa.gambas, nothing happened...
~Lauched through Terminal :
$ ./domotiga/DomotiGa.gambas
gave error
ERROR: #27: Cannot load component 'gb.db.form': cannot find library file

~Can open projects on Gambas IDE 2.24 though... but clicking run has Bwired.module error... "Line 18: unknown identifier"

Cannot import SQL file, error. Command was mysql -u root -p domotiga <~/domotiga/install/domotiga.sql
ERROR 1049 (42000): Unknown database 'domotiga'
mysql Ver 14.14 Distrib 5.1.62, for debian-linux-gnu (i486) using readline 6.1

Many thanks.*


Replies (3)

RE: Cannot launch DomotiGa.gambas, import SQL - Added by rdnzl almost 2 years ago

The first error about gb.db.form, it seems you miss a part of the gambas installation.
Please try to reinstall it, and make sure every required packages install ok, before compiling it.
http://domotiga.nl/projects/domotiga/wiki/Install#Ubuntu-Maverick-1010-38-Natty-1104

The second command is wrongly documented.
Can you try to create the database first and then import example data?
$ mysqladmin -u root -p create domotiga
$ mysql -u root -p domotiga <~/domotiga/install/domotiga.sql

RE: Cannot launch DomotiGa.gambas, import SQL - Added by yanziqiang almost 2 years ago

Hi Ron, that worked for the mysql & i see u've updated your wiki. :) Many thanks.
Just like to share, managed to install Maverick on top of Win7 using wubi.
One note I hope you'll highlight in the wiki:
~ is that before installing the "pre-requisite packages", one really must invoke the Update Manager and click the "check" button there before the command "sudo apt-get ... " can work.
(for me, I clicked the check button & also updated the "important update")

Alrighty, now that everything is working (double clicking domotiga.gambas worked!, running from Gambas2 too!), time to get some early sleep.
Many thanks.

p/s: Lucid might be better bet as it's supported until Apr 2013. Maverick's support has just expired. Also, I'll help test out the Natty / Precise (12.04), probably just 12.04 since it's LTS, when I have the time. Priority is now exploring this great DomotiGa while waiting for my RFXtrx433 & some remotes + actuators. Onwards!

RE: Cannot launch DomotiGa.gambas, import SQL - Added by rdnzl almost 2 years ago

Ok good luck, and i'm happy to document any notes you have on the wiki.
Using Gambas2 with 12.04 is kind of a challenge, it's not supported anymore, so we must move forward to fully support Gambas3 soon.

(1-3/3)