we are using dot net core 3.1.28 on 2152 , and it works perfectly.
While migrating to 3152 platform, we have tried to execute it and both dotnet installation on linux-x64 or standalone c# executable can not be launched. Shell produces a „-sh: /opt/plcnext//dotnet/dotnet: No such file or directory“ error. We are using AXC_F_3152_FW2022.0.5 on harware type 2 firmware. On the 2152 the firmware was 2021.0.3
we don’t know if the issue comes from the firware release or achitecture change. Everything seems to be ok in dependencies, as ldd provides for dotnet executable:
Does the interpreter exist on the device?
./dotnet/dotnet: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1 , BuildID[sha1]=b94a2343ba839a7534fc8600f49001a2077aeafb, strippedIf not, then a quick-fix might be to create that file as a symbolic link, pointing to the ld-linux-x86-64.so.2 interpreter.
the information we sent was on the dotnet linux-x64 alpine.
on the linux x-64 dotnet core version, the trace is
admin@axcf3152:/opt/plcnext/dotnetrt$ file dotnet dotnet: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/__ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=91a0d1a14c8dae419ae365bb7e4575123c562ba5, stripped
and this lib seems to be correctly mapped :
and the behavior is the same : admin@axcf3152:/opt/plcnext/dotnetrt$ ls -ltotal 116-rw-r–r-- 1 admin plcnext 1116 Aug 18 2022 LICENSE.txt-rw-r–r-- 1 admin plcnext 31330 Aug 18 2022 ThirdPartyNotices.txt-rwxr-xr-x 1 admin plcnext 72160 Aug 18 2022 dotnetdrwxrwxr-x 3 admin plcnext 4096 Aug 18 2022 hostdrwxrwxr-x 3 admin plcnext 4096 Aug 18 2022 shared
admin@axcf3152:/opt/plcnext/dotnetrt$ ./dotnet-sh: ./dotnet: No such file or directory
it works ! Thx you very much!
after su: mkdir -p /usr/lib64ln -s /usr/lib/ld-linux-x86-64.so.2 /usr/lib64/ld-linux-x86-64.so.2
maybe it will be a good trick to update dotnetcore deployment informations in the site with this trick
Thx again!