Lazarus

Installation => Linux => Topic started by: JanRoza on May 02, 2019, 11:49:17 pm

Title: [SOLVED] Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 02, 2019, 11:49:17 pm
Being new on Linux I managed to install Lazarus 2.0.2 and FPC 3.0.4 and all the components I need, but trying to run one of my existing (windows) projects in Lazarus on Ubuntu I get an error the moment the database connection should be opened.
The message says: "/build/glibc-KRRWSm/glibc-2.29/elf/dl-error-skeleton.c was not found" (see sreenshot).

I already have installed sqlite3 and sqlite3-dev but apparently I missed something, can anyone tell me what more needs to be installed?
Title: Re: Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 04, 2019, 12:35:26 am
Anyone?
Title: Re: Using SQLite on Ubuntu 19.04
Post by: john horst on May 04, 2019, 07:09:30 am
https://www.atozed.com/forums/printthread.php?tid=767 that should help you.
Title: Re: Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 04, 2019, 05:36:49 pm
That message is about openssl.
Does opening a connection to a sqlite database file use openssl?
It is a non-encrypted unprotected sqlite database.
I don't want to install unnecessary programs or libraries, so that's why I ask.
Title: Re: Using SQLite on Ubuntu 19.04
Post by: lucamar on May 04, 2019, 05:49:52 pm
That message is about openssl.

That message is about the same problem you have, only in that case it happened while using OpenSSL, just as a previous one involved MySQL. It's a debugger problem, if I understood the post correctly.

Does opening a connection to a sqlite database file use openssl?

No: SQLite is a strictly local, embedded, self-contained DBMS.
Title: Re: Using SQLite on Ubuntu 19.04
Post by: john horst on May 04, 2019, 07:03:56 pm
@lucamar correct.

@JanRoza that is GDB (the debugger itself) letting you know it can't find "dl-error-skeleton.c: No such file or directory". It's not your program itself, if that makes sense. Basically man, GDB needs to be told where to find dl-error-skeleton.c.
Title: Re: Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 04, 2019, 09:52:05 pm
I will try to locate it on my linux system and tell dbg where to find it. Didn't realize it was a debugger problem.
Does that mean that if I compile a release version without debugger that it should work? I will experiment some more this weekend.
Thanks John and Kucamar!
Title: Re: Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 06, 2019, 08:03:43 am
Thanks guys!
Running without debugger really works, so I can go on with my discovery of Lazarus in Linux.
Would be nice though is this debugger problem gets solved in the near future, until then I'll do the debugging on Windows.
Title: Re: [SOLVED] Using SQLite on Ubuntu 19.04
Post by: Zvoni on May 07, 2019, 11:16:56 am
I know. Marked solved, but since i had the same thing....
Let me guess: you single-stepped through your code, and that message popped up at the Codeline, where you connect to the DB (MyConnection.Open or MyConnection.Connected:=True).
I just put a Breakpoint at the NEXT codeline (after opening the Connection), and in the codeline prior to it, i hit RUN....
Voila! Can still debug and what not
Title: Re: [SOLVED] Using SQLite on Ubuntu 19.04
Post by: JanRoza on May 08, 2019, 12:25:34 pm
Quote
Let me guess: you single-stepped through your code, and that message popped up at the Codeline, where you connect to the DB (MyConnection.Open or MyConnection.Connected:=True).
Correct.

Since Windows is still my main system, for me it is not a big problem. I debug in Windows and when all is working I compile in Linux.
TinyPortal © 2005-2018