Welcome, Guest
Username: Password: Remember me
CodeTyphon Linux OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8661

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
How to avoid interfaces unit in CentOS 6 server? I am making an application for CentOS server which is a command line application. This application uses pl_indy package. On my development CentOS I have all the require library but in my production server it does not have any GUI library. On running the application in CentOS 6 server I am getting "error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory" error. Which indicates I need to install all GNOME related library. But it's a server which does not require any GNOME library. How can I compile project with pl_indy which can be run stand alone, does not require any library?

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8662

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir
just go to CT click new and select Console Application







Now add your pl_Indy as Require Pkg or better
add to your CApp uses, only the files of pl_Indy, want to use
in this case add the path of pl_Indy to your CApp paths

Add to your CApp LCLWidgetType:=nogui


Console Application by default, don't use any platform libraries
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8663

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
Please see attachment. I followed your steps.

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8664

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Your "Uses", remove "//" :)
delete only pl_Indy
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Md. Shariful Alam Khan

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8671

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
I build as per your suggestion and it did compile, but in production server which is run through SSH gives following error:
/lib64/libc.so.6: version `GLIBC_2.17' not found (required by ./merchant)
What to do? Please help.

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8672

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
find libc.so.6 and make a dammy link to libc.so
for example
as root or sudo
ln -s /usr/lib64/libc.so.6 /usr/lib64/libc.so
or
try to install glibc lib
as root or sudo
yum install -y glibc

PS: the version of CentOS ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8673

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
Its latest CentOS 6.
I did both way but still the same error message. One interesting thing if application compile with Lazarus and indylaz I am getting Could not load SSL library. If I use Typhon source for Indy in Lazarus I am getting same error message /lib64/libc.so.6: version `GLIBC_2.17' not found. How to solve the issue?

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8674

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir
look which libraries your program need
and install them to you target PC
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8675

  • usbdoo
  • usbdoo's Avatar
  • Visitor
  • Visitor

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8676

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
It's a hosted server. How can I install? I have no permission to install. Any other alternate.

Please Log in or Create an account to join the conversation.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8677

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Try lab pl_Indy pkg

PS:
Give us a simple sample project to test tomorrow in our lab day

We have 3x CentOS-64 ver 6.0 "Dedicate Web Servers"
We have 1 desktop PC with CentOS-64 ver 7.x

I think, we can find/solve the problem
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Avoid Interfaces unit in Console Application CentO 8 years 4 months ago #8678

  • Md. Shariful Alam Khan
  • Md. Shariful Alam Khan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 111
  • Thank you received: 0
With lab pl_indy I have successfully getting response from Merchant . With Lazarus I am getting Could not load SSL library in CentOS 6 64Bit. What I am trying to do is to get/post method to the SOAP using indy as IndySOAP is not available for Linux. That call must be in TLS v1.2. So what I am doing TIdHTTP & TIdSSLIOHandlerSocketOpenSSL and set TIdSSLIOHandlerSocketOpenSSL SSLOptions.Method := sslvTLSv1_2.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1