Ubuntu 16.04

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Len Jones
Posts: 1
Joined: Tue 16 Aug 2016 12:45

Ubuntu 16.04

Post by Len Jones » Tue 16 Aug 2016 12:57

Hi!

I want to use MyDAC in Lazarus 1.6 (FPC 3.0) on Ubuntu 16.04 LTS working with MySQL 5.7
Is this possible?
If so how do I install it?

thanks :)

Len Jones

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Ubuntu 16.04

Post by AlexP » Wed 17 Aug 2016 06:57

Hello,

Lazarus packages are included only to MyDAC Edition with source code.
To install the source version of MyDAC to Lazarus, perform the following steps

1) Open and compile all the Lazarus packages in the following order:
dac10.lpk
dacvcl10.lpk
dcldac10.lpk
mydac10.lpk
mydacvcl10.lpk
2) Open, compile and install the dclmydac10.lpk package

jisraelpo
Posts: 4
Joined: Wed 19 Oct 2016 18:24

Re: Ubuntu 16.04

Post by jisraelpo » Wed 19 Oct 2016 20:24

Component installed

IDE working at 100% but in runtime when I immediately try to connect I get this error:

Error on data writing to the connection: Invalid socket

Ubuntu 16.4, Lazarus 1.6, MyDac10

This in all mysql servers (localhost or web), I have installed a fresh ubuntu so again.
Python libraries working without any problem in the same computer.....

Please help me I am in hurry to resolve this....
I need my windows app can compile in ubuntu and IOS.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Ubuntu 16.04

Post by ViktorV » Fri 21 Oct 2016 09:58

To resolve the problem, in the project file ( with the *.lpr extension) add the following string:

Code: Select all

{$DEFINE UseCThreads}
before

Code: Select all

{$IFDEF UNIX}{$IFDEF UseCThreads}

jisraelpo
Posts: 4
Joined: Wed 19 Oct 2016 18:24

Re: Ubuntu 16.04

Post by jisraelpo » Fri 21 Oct 2016 23:05

Thanks Viktor, this resolved the problem......

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Ubuntu 16.04

Post by ViktorV » Mon 24 Oct 2016 10:33

It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.

Post Reply