Run Lazarus program on headless PC lazarus / 16-Databases ---------------------------------------------------------------------- KarenT · 2017-11-14 15:52 Ubuntu 16.04, Lazarus 1.8 RC-4 Hi, I need to run a few programs I have written on the headless PC. I have copied the Lazarus Folders for the program to a USB and then on to the headless PC and all but one program runs fine. That errant-one needs SQLite3 and I get the "libsqlite3.so" missing library error. I checked the path (/usr/lib/..." and sure enough, no SQLite files anywhere. The headless does not have Internet access so I can't simply install SQLite3 with "apt-get." How do I get and then install SQLite so the program can run? Thank you. ---------------------------------------------------------------------- ahiggins · 2017-11-14 16:10 is it not just a case of having the libsqlite3.so file in the same directory as the application? ---------------------------------------------------------------------- soerensen3 · 2017-11-14 16:37 Do you have another computer with Ubuntu? You can just download with apt -d install ... it will download the deb file. It can be installed on the headless pc with dpkg -i ... Replace the dots with the correct package/filename. Make sure to run both commands as root or with sudo. You could also statically link the .so when compiling in Lazarus; http://forum.lazarus.freepascal.org/index.php?topic=19357.0 ---------------------------------------------------------------------- Leledumbo · 2017-11-14 18:13 Quote from: KarenT on November 14, 2017, 04:52:50 pmHow do I get and then install SQLite so the program can run? Download the package using another machine, copy to the headless one, and install using dpkg -iCompile from source, moving the resulting .so somewhere LD_LIBRARY_PATH recognizes (surely /usr/lib included by default)Statically link the libraryQuote from: ahiggins on November 14, 2017, 05:10:58 pmis it not just a case of having the libsqlite3.so file in the same directory as the application? No, that's not how things work in Linux ---------------------------------------------------------------------- KarenT · 2017-11-14 18:52 Thanks everyone, I think I will just install Lazarus on the headless one and that should take care if it all as I assume Lazarus installs it. That will allow me to make changes to a program if needed, at the risk of interleaved updates on sneaker-net with between the PCs of course.