[lazarus] TMPack link error.

Florian Klaempfl Florian.Klaempfl at gmx.de
Thu Nov 13 06:39:34 EST 2003


Ken Moffat wrote:
> I have attempted to add TMPack to my Lazarus install. Untarred in to a 
> directory under my home, opened lazarus as root, opened the file 
> tmpack.lpk, and tried install. This gave the message about having to 
> recompile lazarus, so I clicked Okay to recompile, and this is how the 
> procedure ended:
> 
> TOutputFilter: "Free Pascal Compiler version 1.0.11 [2003/10/22] for i386"
> TOutputFilter: "Copyright (c) 1993-2003 by Florian Klaempfl"
> TOutputFilter: "Target OS: Linux for i386"
> TOutputFilter: "Compiling lazarus.pp"
> TOutputFilter: "Assembling lazarus"
> TOutputFilter: "Linking ./lazarus"
> TOutputFilter: "/usr/bin/ld: cannot find -lmysqlclient"
> TOutputFilter: "lazarus.pp(352) Error: Error while linking"
> TOutputFilter: "Closing script ./ppas.sh"
> TOutputFilter: "make[1]: *** [lazarus] Error 1"
> TExternalToolList.Run make[1]: *** [lazarus] Error 1
> 
> I had previously attempted to add mysqlaz to the ide without success.
> (/usr/share/lazarus/components/mysql/) I don't know if this had an effect.

The component isn't enough, you need also the appropriate mysql 
developement library for your system. It's called libmyqlclient-dev or 
similiar.

To lazarus developers: maybe there should be an option for the packages 
so that they check the library requirements of an installed package.







More information about the Lazarus mailing list