Page 1 of 1
Linux Database Drivers Missing
Posted: Sat Mar 07, 2015 7:50 am
by ghettocottage
Hello all. I am a beginner, so bear with me.
I have an application I am working on that connects to a mysql database. Things are working fine on the IDE, but when I export it as a standalone, I get an error message that the Drivers were not found for Linux.
Are those located somewhere that I need to make a path to?
Also, in the IDE I reference a couple of bash scripts using a complete path /home/me/livecode/database_project/bashscript
In the export as standalone settings, I have told it to save those file...which it does. But the standalone does not seem to be referencing them properly. I tried chaning the path to just bashscript but that does not seem to work.
Any advice or clues?
Re: Linux Database Drivers Missing
Posted: Mon Mar 09, 2015 3:43 am
by ghettocottage
OK. I found where the database files are (~/.runrev/components/livecodecommunity-7.0.0 (x86)/Externals/Database Drivers) but still not able to make my standalone application with the drivers.
Is there a setting somewhere to tell livecode where those drivers should be?
I have managed to figure out why my bash scripts were not working in my standalone: when saving for linux 64, it puts it into a folder calle "linux x64"
That space in between linux and x64 was throwing things off quite a bit. Not sure why it would save anything for linux into a folder with a space in the name, but once I figured that out, I renamed the folder and then my standalone was able to access external files properly.
Now if I can just figure out what is happening with the drivers..
Re: Linux Database Drivers Missing
Posted: Mon Mar 09, 2015 1:52 pm
by Klaus
Hi ghettocottage,
LC should add the externals automatically when builidng a standalone!
You DID check "Database Support" etc. in the standalone builder setting, right?
Best
Klaus
Re: Linux Database Drivers Missing
Posted: Mon Mar 09, 2015 3:10 pm
by ghettocottage
Hi Klaus,
Thank you for responding.
Yes, I did check "Database Support". Underneath that checkbox is a little window that gives me a tool-tip that says "Choose one more more database drives to include"
However, that window is empty. I am not seeing a way to add anything to it. So far I have tried:
just including the database drivers as non-stack files
including the database drivers in the same folder as the stack I am building
including the database drivers in the Externals folder
burning one white chicken in honour of the Livecode Gods
none of those seems to have helped.
Re: Linux Database Drivers Missing
Posted: Mon Mar 09, 2015 3:18 pm
by Klaus
Hm, sound like an incomplete installation?
We are currently at LC 7.03, could you please install and test again with that version?
http://downloads.livecode.com/livecode/
Re: Linux Database Drivers Missing
Posted: Mon Mar 09, 2015 8:41 pm
by ghettocottage
Alrighty...I uninstalled the Community Version (I think it was 7.01) and installed the 7.03 version. I was still having issues with the stack I had built, but on a whim I created a new blank stack and looked at the standalone application settings, and lo there were the db drivers nicely listed where you would expect.
Saving the new stack as a standlone finishes without any errors.
Fortunately I just have a few scripts on my previously built stack, so it should not be a problem to move everything over to a new stack...although I wish I could just jiggle something to get it to work correctly.
Thanks Klaus, for pointing me in the direction of reinstalling the newer version.