PostgresSQL and SocketClient components available lazarus / 16-Databases ---------------------------------------------------------------------- Blacktony · 2005-06-01 13:23 Hi folks, I developed two packages. The first one, PSQL, implements two classes (TPSQLDatabase, TDatabase descendant and TPSQLDataset, TDBDataset descendant) for connecting Postgresql database servers. The second one, Sockets, implements one class (TSocketClient, TComponent descendant) for connecting to generic server sockets on  TCP/IP networks. A second class for Sockets package, the TSocketServer class, is coming. Packages can be downloaded on the web pages at the address: http://infoconsult.homelinux.net. I hope that this stuff may be useful to Lazarus community. Any comment is welcome. Bye for now                           Antonio d'Avino ---------------------------------------------------------------------- Anonymous · 2005-06-01 22:48 How to install it? ---------------------------------------------------------------------- Blacktony · 2005-06-02 11:01 Quote from: "Anonymous"How to install it?The tar.gz archive shuold be expanded from / under Linux systems (cd /; tar xzf xxxx.tar.gz) . So, it create a folder psql in standard lazarus components folder (/usr/share/lazarus/components). Then, you have to install the usual way: from lazarus IDE open 'Components' in main menu, then 'Open package file' then select the .lpk file of your package (ie: for psql package, browse directories, go into /usr/share/lazarus/components/psql then select psql_laz.lpk). In the package manager window, press 'Install' button and answer 'Yes' when you are asked about Lazarus rebuilding. That's all.  Under Win systems, same way, just directories are different : useually components are in folder :\lazarus\components. So you have to make the right folder inside components folder then uncompress file into new directory using ie. winzip: int such a case, you have to unselect the 'Use folder names' (or something so). Of course, it's not mandatory to use the lazarus standard component folder for hosting new components; that's just my way for have one place for all lazarus component. Ciao                          Antonio d'Avino ---------------------------------------------------------------------- Vincent Snijders · 2005-06-02 13:27 Blacktony, do you want your component to be hosted on the Lazarus Code and Components Repositry? If so, add a page for it, similar the the TAChart page and I will upload your component to the sourceforge file server. ---------------------------------------------------------------------- Blacktony · 2005-06-03 10:59 Thank you Vincent. Yes,  it's nice for me to add my components on CCR :lol:. I've added articles 'PSQL' and 'Sockets' on  http://lazarus-ccr.sourceforge.net . The PSQL page refers to version 0.4.2 of package that will be available on my pages from 2:30PM of today (local time, GMT +2). I'll wait news from you.  Sorry for my english. Ciao                     Antonio d'Avino ---------------------------------------------------------------------- Blacktony · 2005-06-03 12:48 .... uhm ... article title is "TPSQL" (not "PSQL"). Fat fingers hits again ... Bye                         Antonio d'Avino ---------------------------------------------------------------------- Anonymous · 2005-09-23 15:14 Hi, Antonio! When try to compile the component TPSQL, occours a error: /usr/share/lazarus/components/psql/psqldatabase.pas(1,1) Fatal: Can't find unit LResources As, I don't can install this component. Any suggestion? I am using debian etch, fp 2.0 and lazarus 0.9.8 beta. Thanks! ---------------------------------------------------------------------- Anonymous · 2005-09-23 18:01 [About last post] Excuse-me! My name is Rafael ---------------------------------------------------------------------- glober · 2005-09-25 17:09 Quote from: "Anonymous"When try to compile the component TPSQL, occours a error: /usr/share/lazarus/components/psql/psqldatabase.pas(1,1) Fatal: Can't find unit LResources Did you try cleaning your Lararus directory? ie: [menu]->File->Clean directory ---------------------------------------------------------------------- Anonymous · 2005-09-27 11:40 Quote from: "glober" Did you try cleaning your Lararus directory? ie: [menu]->File->Clean directory No! Clear ALL directory and subdirectories from Lazarus (/usr/share/lazarus)? Thank. Rafael. ---------------------------------------------------------------------- glober · 2005-09-28 02:10 Quote from: "Rafael" No! Clear ALL directory and subdirectories from Lazarus (/usr/share/lazarus)? Yes, All directory and subdirectories, assuming that's where you are compiling Lazarus to and running Lazarus from. You can set where Lazarus compiles to in [menu]->Environment->Environment options->Files->Lazarus directory. ---------------------------------------------------------------------- Anonymous · 2005-09-29 11:26 Quote from: "glober" Yes, All directory and subdirectories, assuming that's where you are compiling Lazarus to and running Lazarus from. You can set where Lazarus compiles to in [menu]->Environment->Environment options->Files->Lazarus directory. I try it now, but the error is occouring. Thanks. Rafael. ---------------------------------------------------------------------- Anonymous · 2005-09-29 12:09 Test 1: When occour the error, I go to the source code and compile (press F9). The log is: --------------------- Free Pascal Compiler version 2.0.0 [2005/05/15] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling psql_laz.pas Compiling psqldatabase.pas Fatal: Can't find unit LResources TExternalToolList.Run Exception: /usr/share/lazarus/components/psql/psqldatabase .pas(1,1) Fatal: Can't find unit LResources --------------------- Test 2: When I press "Compile", walking away the Tutorial, stop. The log is: --------------------- TPkgManager.DoCompilePackage A psql_laz 0.4.6 Flags=[] TMainIDE.DoSaveProject End TPkgManager.DoCompilePackage Compiler="/usr/local/bin/ppc386" TPkgManager.DoCompilePackage Params=" -S2cgi -OG1 -gl -vewnhi -l -Fu../../packager/units/i386/linux/ -Fu. -FElib/ psql_laz.pas" TPkgManager.DoCompilePackage WorkingDir="/usr/share/lazarus/components/psql/" [TExternalToolList.Run] CmdLine="/usr/local/bin/ppc386  -S2cgi -OG1 -gl -vewnhi -l -Fu../../packager/units/i386/linux/ -Fu. -FElib/ psql_laz.pas" WorkDir="/usr/share/lazarus/components/psql/" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.0 [2005/05/15] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling psql_laz.pas Compiling psqldatabase.pas Fatal: Can't find unit LResources TExternalToolList.Run Exception: /usr/share/lazarus/components/psql/psqldatabase.pas(1,1) Fatal: Can't find unit LResources TPascalParserTool.BuildTree B OnlyIntf=True /usr/share/lazarus/components/psql/psqldatabase.pas TMainIDE.DoLoadLFM there is no LFM file for "/usr/share/lazarus/components/psql/psqldatabase.pas" --------------------- Thanks. Rafael ---------------------------------------------------------------------- Anonymous · 2006-01-27 15:36 I've got the same message in a Debian machine and with my XP one too. I've tried with install or Compil, there's nothing to do, Can't find lResources unit. in the same way, the folder where the components are installed in my debian machine is usr/lib/Lazarus/components and not in the /usr/share/lazarus/components, is this matter ? (i've not choosed, the installation does) Alban. ---------------------------------------------------------------------- Anonymous · 2006-02-19 08:48 I have the same problem. I have solve this by adding followed directories to compiler oprions of this package. Remember Lazarus i have installed on path "/usr/lib/lazarus" 1) Other unit files: /usr/lib/lazarus/lcl/;/usr/lib/lazarus/lcl/widgetset/ 2) Other sources: /usr/lib/lazarus/lcl/include/ WARNING !! Unit directory a cleared originally this was bin "unit" ---------------------------------------------------------------------- Anonymous · 2006-02-19 09:47 But the best solution is change unit required from FCL. 1.0 to LCL 1 .0