Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

XDATA and Linux

 Post Reply Post Reply
Author
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Topic: XDATA and Linux
    Posted: 16 Mar 2020 at 12:10pm
Hi,

Is it possible run/write xdata web services on Linux?
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 17 Mar 2020 at 11:57am
Sure, if you use RAD Studio/Delphi Enterprise, which provides the Linux compiler.
For Linux side you can use Apache-based server or Indy-based server:

Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 12:15pm
Thank you for the info ... but I have next question:
When I create module for apache when target is win32 all is ok but when I change target to Linux64 the program can't find Sparkle units.
[DCC Fatal Error] WebModuleVMachine.pas(24): F2613 Unit 'Sparkle.WebBroker.Server' not found.

Should I set something to solve this?
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 12:41pm
Have you installed TMS Sparkle for Linux64 platform? It should work ok. Check Delphi library path for Linux64 platform and see if you have Sparkle-related directories there.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 1:03pm
The problem is that for the moment I don't see XDATA instalation on subscription manager and in my products via tms web.
Could you check what is wrong ?
I have ALL-ACCESS product subscribed to 31.07.2020 ... yesterday all was ok with subscription.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 1:32pm
TMS Business Core does not exist either in my products
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 1:59pm
Can you please retry? It should be fixed now. Sorry for the inconvenience.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 2:15pm
Thank you ... now is better :)

I recompile:
TMS Business Core Linux64 is ok
TMS XDATA Linux 64 is ok

but when I compile TMS Sparkle to Linux64 (Delphi Enterprise 10.3.3) I got an error (marked in red color):


C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\dcclinux64.exe -$O- --no-config -B -Q -Z -TX.so -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults -DDEBUG -E.\Linux64\Debug -I"C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\debug";"C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Busines Core Library\packages\drio\.\Linux64\Debug";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Busines Core Library\packages\drio\..\bpl\Linux64";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\.\Linux64\Debug";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\..\bpl\Linux64" -LE..\bpl\Linux64 -LN.\Linux64\Debug -NU.\Linux64\Debug -NSSystem;Xml;Data;Datasnap;Web;Soap; -O"c:\program files (x86)\embarcadero\studio\20.0\lib\Linux64\release";C:\Users\deweloper_1\Documents\Embarcadero\Studio\20.0\Imports;"C:\Program Files (x86)\Embarcadero\Studio\20.0\Imports";C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp\Linux64;"C:\Program Files (x86)\Embarcadero\Studio\20.0\include";"C:\Program Files (x86)\Embarcadero\Studio\20.0\redist\Linux64";C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl\Linux64 -R"c:\program files (x86)\embarcadero\studio\20.0\lib\Linux64\release\EN";"c:\program files (x86)\embarcadero\studio\20.0\lib\Linux64\release";C:\Users\deweloper_1\Documents\Embarcadero\Studio\20.0\Imports;"C:\Program Files (x86)\Embarcadero\Studio\20.0\Imports";C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp\Linux64;"C:\Program Files (x86)\Embarcadero\Studio\20.0\include";"C:\Program Files (x86)\Embarcadero\Studio\20.0\redist\Linux64";C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl\Linux64 -U"C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\debug";"C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Busines Core Library\packages\drio\.\Linux64\Debug";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Busines Core Library\packages\drio\..\bpl\Linux64";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\.\Linux64\Debug";"C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\..\bpl\Linux64" --syslibroot:C:\Users\deweloper_1\Documents\Embarcadero\Studio\SDKs\ubuntu18.04.sdk --libpath:C:\Users\deweloper_1\Documents\Embarcadero\Studio\SDKs\ubuntu18.04.sdk\usr\lib\gcc\x86_64-linux-gnu\7;C:\Users\deweloper_1\Documents\Embarcadero\Studio\SDKs\ubuntu18.04.sdk\usr\lib\x86_64-linux-gnu;C:\Users\deweloper_1\Documents\Embarcadero\Studio\SDKs\ubuntu18.04.sdk\lib\x86_64-linux-gnu -V -VN --description:"TMS Sparkle - Core Package" -NH.\Linux64\Debug -NO.\Linux64\Debug  sparkle.dpk  
                  Embarcadero Delphi for Linux 64 bit compiler version 33.0
                  Copyright (c) 1983,2018 Embarcadero Technologies, Inc.
                  Linker command line: "C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe" -o ..\\bpl\\Linux64\\bplsparkle260.so -e _ZN7Sparkle14initializationEv --gc-sections --version-script ..\\bpl\\Linux64\\sparkle.vsr -shared --no-undefined --export-dynamic -z noexecstack -z relro --build-id --eh-frame-hdr -m elf_x86_64 --dynamic-linker /lib64/ld-linux-x86-64.so.2 --sysroot C:\\Users\\deweloper_1\\Documents\\Embarcadero\\Studio\\SDKs\\ubuntu18.04.sdk -L "C:\\Users\\deweloper_1\\Documents\\tmssoftware\\TMS Busines Core Library\\packages\\drio\\..\\bpl\\Linux64" -L "c:\\program files (x86)\\embarcadero\\studio\\20.0\\lib\\Linux64\\release" -L C:\\Users\\deweloper_1\\Documents\\Embarcadero\\Studio\\20.0\\Imports -L "C:\\Program Files (x86)\\Embarcadero\\Studio\\20.0\\Imports" -L C:\\Users\\Public\\Documents\\Embarcadero\\Studio\\20.0\\Dcp\\Linux64 -L "C:\\Program Files (x86)\\Embarcadero\\Studio\\20.0\\include" -L "C:\\Program Files (x86)\\Embarcadero\\Studio\\20.0\\redist\\Linux64" -L C:\\Users\\Public\\Documents\\Embarcadero\\Studio\\20.0\\Bpl\\Linux64 -L C:\\Users\\deweloper_1\\Documents\\Embarcadero\\Studio\\SDKs\\ubuntu18.04.sdk\\usr\\lib\\gcc\\x86_64-linux-gnu\\7 -L C:\\Users\\deweloper_1\\Documents\\Embarcadero\\Studio\\SDKs\\ubuntu18.04.sdk\\usr\\lib\\x86_64-linux-gnu -L C:\\Users\\deweloper_1\\Documents\\Embarcadero\\Studio\\SDKs\\ubuntu18.04.sdk\\lib\\x86_64-linux-gnu @..\\bpl\\Linux64\\sparkle.lnk -lgcc_s -lrtlhelper_PIC -lc -ldl -lpthread -lz -lcurl -l:bplrtl260.so -l:bpltmsbcl260.so -l:bpldbrtl260.so -l:bplIndyCore260.so -l:bplIndyProtocols260.so -l:bplIndySystem260.so -rpath $ORIGIN
                C:\Program Files (x86)\Embarcadero\Studio\20.0\Bin\CodeGear.Delphi.Targets(402,5): error E2597: C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lz [C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\sparkle.dproj]
                   C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lcurl
                   C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::deflate(System::Zlib::z_stream&, int): error: undefined reference to 'deflate'
                   C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::deflateEnd(System::Zlib::z_stream&): error: undefined reference to 'deflateEnd'
                   C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::inflate(System::Zlib::z_stream&, int): error: undefined reference to 'inflate'
                   C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::inflateEnd(System::Zlib::z_stream&): error: undefined reference to 'inflateEnd'
                C:\Program Files (x86)\Embarcadero\Studio\20.0\Bin\CodeGear.Delphi.Targets(402,5): error F2588: Linker error code: 1 ($00000001) [C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\sparkle.dproj]
                Done Building Project "C:\Users\deweloper_1\Documents\tmssoftware\TMS Sparkle\packages\drio\sparkle.dproj" (Build target(s)) -- FAILED.

Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 5:50pm
You could try to install libcurl in Linux machine:

sudo apt-get install libcurl-dev
sudo apt-get install zlib1g-dev

or 

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install zlib1g-dev

Be aware that after installing missing packages like above, you need to reload the Linux SDK in the IDE. To be sure, you can simply delete the linux SDK from IDE, the folder, and then add it again so Delphi will reimport the most updated files.
Alternatively, if you donít use Linux platform, you can simply uncheck it from the installer.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 7:06pm
I already have curl on my linux.
root@devappmaster:~# type curl
curl is /usr/bin/curl

I don't understand, this error I get when I install TMS Sparkle on my delphi on windows machine via subscription manager.
I have to mark linux64 during TMS Sparkle because at the moment I'm writing XDATA/apache module in Delphi on windows via PAServer to Ubuntu/Linux64.
The problem Is that at the moment I can't install TMS Sparkle due to error from previous post.

Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 8:46pm
Have you tried the procedure I provided to you?
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 8:49pm

Ok I installed these two packages: 

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install zlib1g-dev

and add extra package
sudo apt install g++


Delete SDK and add SDK again ... and ... all is working ... thank you for your help :)

Regards,
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2020 at 9:27pm
Great, thank you. libcurl4-gnutls-dev is different from simply curl. The latter is the command-line itself, the former are extra files for developers (which are then included in SDK which allows property Sparkle compilation).
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 12:30pm
Is it possible to deploy XDATA on Linux with ARM processor?
PAS Server works only on x86 processors.
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 12:50pm
XData currently depends on Delphi. Whatever platform Delphi supports, XData can support. I don't think Linux ARM is supported in Delphi for now.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 30 Mar 2020 at 12:10pm
Hi,
How can I install TMS Logging on Linux 64 platform?
When I run TMS Logging installation I can't possibility mark linux64 paltform ... I can't mark any platform because installation run immediately.
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 30 Mar 2020 at 2:13pm
TMS Logging doesn't support Linux platform yet. We're working on that.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 30 Mar 2020 at 3:46pm
When do you plan release logging on Linux platform?
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2020 at 1:03pm
Is it possible at present, to use some mechanizm from the standard TMS solutions to logging from inside xdata web service on linux64 which is thread safe of course?
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2020 at 4:52pm
Currently from Linux you would have to use a Sparkle middleware to grab information about the requests and log them yourself to some place, like a file. 
We don't have an exact timeframe but it's high in our priority list.
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2020 at 8:36pm
Ok ... thanks for the info ... could you let me know if something change with TMS Logging on Linux64?

Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 02 Apr 2020 at 2:20pm
Hi Tomasz, I didn't understand your question?
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 02 Apr 2020 at 4:12pm
Hi,
You said "We don't have an exact timeframe but it's high in our priority list."

Could you let me know if something change/new news/timeframe concerning TMS Logging on linux64 target?

For me it is important information because now I'm working on linux64 target project where I need some logging stuff (like TMS Logging product).
Back to Top
Wagner R. Landgraf View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2889
Post Options Post Options   Quote Wagner R. Landgraf Quote  Post ReplyReply Direct Link To This Post Posted: 02 Apr 2020 at 11:15pm
Ah ok. Are you subscribed to our newsletters, and/or following any of our social media channels?
Back to Top
Czech Tomasz View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 Mar 2017
Posts: 183
Post Options Post Options   Quote Czech Tomasz Quote  Post ReplyReply Direct Link To This Post Posted: 03 Apr 2020 at 9:35am
Now yes ...I am waiting for good news :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down