Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle

Ben Rubinstein benr_mc at cogapp.com
Thu Mar 10 10:50:15 EST 2022


Thanks Panos.

I'd just got part of the way there from your comment on this 
https://quality.livecode.com/show_bug.cgi?id=23163 report.

(I'm a complete Linux noob.)

So now I know about 'ldd' I was able to execute:
> # ldd CB304 
> 	linux-vdso.so.1 (0x00007ffed1b36000)
> 	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e7fa49000)
> 	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e7f82a000)
> 	libexpat.so.1 => not found
> 	libfreetype.so.6 => not found
> 	libfontconfig.so.1 => not found
> 	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e7f4a1000)
> 	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e7f103000)
> 	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e7eeeb000)
> 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e7eafa000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007f2e7fc4d000)

I was able to use apt to install "expat" and "fontconfig", but it couldn't 
find "freetype".

Nonetheless I thought I'd try my app again, hoping at least that the error 
have moved on. But alas:

> # ./CB304 -ui
> ./CB304: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory


Also - can you confirm whether LC standalones (built from 9.6.6) should be 
able to run on Ubuntu 18? Or is Ubuntu 16 the limit?

Many thanks,

Ben

On 10/03/2022 15:32, panagiotis m via use-livecode wrote:
> Hello all,
> 
> I think libexpat.so.1 is a system lib required by LC apps, so it might be
> worth installing it.
> 
> I have not done any research, but I would expect that it would be enough to
> do something like:
> 
> sudo apt-get install expat
> 
> or
> 
> sudo apt-get install libexpat
> 
> Kind regards,
> Panos
> 
> 
> On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Hi Stephen,
>>
>> Built on Mac. I didn't zip it because I've got a folder shared with the
>> Docker
>> container, so I just dragged it in.
>>
>> But sensing something behind your question... I just zipped up the
>> original
>> build folder, dragged that in, and then in the shell unzipped it, invoked
>> that
>> binary... same result.
>>
>> Thanks anyway!
>>
>> Ben
>>
>> On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote:
>>> Hi Ben,
>>> Did you make the standalone on mac or win and  zip the file before
>>> uploading ?
>>> --
>>> Stephen Barncard - Sebastopol Ca. USA -
>>> mixstream.org
>>>
>>>
>>> On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>>
>>>>
>>>> I'm trying to develop an app which will run headless on Linux (actually
>> in
>>>> a
>>>> docker container). I've done this before... so long ago that I can't
>>>> remember... with an earlier version of this app. Normally I run this on
>>>> Mac
>>>> and Windows.
>>>>
>>>> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the
>>>> Standalone builder, built the app, transported the folder with the
>> binary
>>>> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker
>> container,
>>>> and
>>>> tried to launch it:
>>>>
>>>>> # ./MyApp -ui
>>>>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot
>>>> open shared object file: No such file or directory
>>>>
>>>> Can anyone point me in the right direction here? Does this mean that I
>>>> need to
>>>> do something different in how I build the app, or install something
>>>> different
>>>> in the environment?
>>>>
>>>> (The container is running Ubuntu 18.04.2 LTS).
>>>>
>>>> TIA,
>>>>
>>>> Ben
>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list