Recent

Author Topic: PostgresSQL and SocketClient components available  (Read 15804 times)

Blacktony

  • Guest
PostgresSQL and SocketClient components available
« on: June 01, 2005, 03:23:13 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #1 on: June 02, 2005, 12:48:31 am »
How to install it?

Blacktony

  • Newbie
  • Posts: 4
PostgresSQL and SocketClient components available
« Reply #2 on: June 02, 2005, 01:01:22 pm »
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 <some-drive>:\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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
PostgresSQL and SocketClient components available
« Reply #3 on: June 02, 2005, 03:27:39 pm »
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

  • Newbie
  • Posts: 4
PostgresSQL and SocketClient components available
« Reply #4 on: June 03, 2005, 12:59:35 pm »
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

  • Newbie
  • Posts: 4
PostgresSQL and SocketClient components available
« Reply #5 on: June 03, 2005, 02:48:18 pm »
.... uhm ... article title is "TPSQL" (not "PSQL"). Fat fingers hits again ...

Bye
                        Antonio d'Avino

Anonymous

  • Guest
PostgresSQL and SocketClient components available
« Reply #6 on: September 23, 2005, 05:14:51 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #7 on: September 23, 2005, 08:01:15 pm »
[About last post]
Excuse-me! My name is Rafael

glober

  • Full Member
  • ***
  • Posts: 130
PostgresSQL and SocketClient components available
« Reply #8 on: September 25, 2005, 07:09:18 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #9 on: September 27, 2005, 01:40:31 pm »
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

  • Full Member
  • ***
  • Posts: 130
PostgresSQL and SocketClient components available
« Reply #10 on: September 28, 2005, 04:10:05 am »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #11 on: September 29, 2005, 01:26:49 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #12 on: September 29, 2005, 02:09:03 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #13 on: January 27, 2006, 04:36:25 pm »
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

  • Guest
PostgresSQL and SocketClient components available
« Reply #14 on: February 19, 2006, 09:48:43 am »
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"

 

TinyPortal © 2005-2018