Hi,

Gambas Runtime

Here are my experiences with copying a Gambas program developed on one
computer to a second computer. The first computer is running Ubuntu 8.04 and
Gambas 2.8. The second computer is running Ubuntu 8.10 without installed
Gambas. 

Making an installation program from the development version of Gambas
requires two programs on the development machine which were not available in
8.04. The first task is to install these programs.

Applications, Accessories, Terminal
from the prompt: "sudo apt-get install debhelper" and enter. Give your
password and respond as required.
Follow this with "sudo apt-get install fakeroot".

Start the development version of Gambas and load the application.
Click on the button 'Make Installation Package' (next to the meshed gears).
Click next from page 1. Package Information and from 2. Changelog.

If the debhelper installed correctly then the Debian and Ubuntu entries
should be selectable. There will be a warning that rpmbuild and tar-1.13 are
not installed which is ok for this tutorial. Click on the Ubuntu entry and
then on next.

Choose a package group (I chose 'Office') and click next.

Choose a menu entry (I chose 'apps' and 'database') and select 'office'
under category (again?).

choose a destination directory for the installation package (I created a
sub-directory under Home - doesn't matter what it is called).

Finally click ok on create package.

if all goes well you will get a message that the installation has been
successful. Close the installation process and exit from Gambas itself.

Copy the directory across to the new computer. In my case the directory
contained five files including the all important .deb file.

Places, Home Folder. Go to the directory and double-click the .deb file.
Close the package installer once it has completed. You might get a warning
message (as I did) that a later version exists in the repository. This just
means that your masterpiece has the same name as an existing piece of
software. Ignore the warning for the moment but consider changing the name
of your program or your will continually be badgered to upgrade to the
latest (but incorrect) version.

You should now find your program in the menu you specified (in my case under
applications, office) When I first tried to run the program, it warned that
it could not find the sqlite driver so I went system, administration,
synaptic. gambas in the quicksearch window to display all the gambas related
packages. Find the entry gambas2-gb-db-sqlite and click the box next to it.
Click 'mark for installation' and then 'apply' and 'apply' again. Close
Synaptic package manager. Obviously this would be not be needed if you are
using MySQL or PostgreSQL.

When I ran my program again, it complained that it could not find the
required database. Not surprising really because it isn't there. More
importantly, the error message tells you that Gambas runtime expects to find
the sqlite file in /usr/bin. Initially it refused to allow me to copy the
file into /usr/bin because I did not have permission. Applicatiion,
Accessories, Terminal and then opened Nautilus (the file browser) with 'sudo
nautilus' and give the su password. I can then copy the sqlite database into
/usr/bin. Exit from nautilus (file browser) and close the terminal window.
My program now works.

I must say it does not look as pretty on the runtime computer as it did on
the development machine. I don't know if that is something to do with Gambas
or the video card in the runtime computer.

I also made the fatal mistake at one stage of installing the runtime version
of the software on the development machine. This rendered the development
version of Gambas inoperative. I had to go into synaptic and un-install
gambas-runtime to fix this.

-- 
View this message in context: 
http://www.nabble.com/How-to-run-gambas-execute-file-tp20853085p20880313.html
Sent from the gambas-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to