Recent

Author Topic: <NEARLY SOLVED> NEWBIE: Postgres problem  (Read 4635 times)

JasonLugg

  • Jr. Member
  • **
  • Posts: 67
<NEARLY SOLVED> NEWBIE: Postgres problem
« on: October 04, 2011, 07:03:00 pm »
Hi All

Windows Home Premium 32bit.

I have a WAPP stack set up with postgres installed in it:

C:\Program Files\BitNami WAPPStack\postgresql

When I add a zConnection and input the <localhost> and then switch it to connected I get 'None of the Dynamic Libraries Can Be Found'.

Do I need to install postgres outside of the WAPP server as well?

Also, when this does work can I force my app to compile and include the DLL as this could be an issue for my end users?

Many thanks in advance...Just ordered the Lazarus book, but too impatient!
« Last Edit: October 04, 2011, 09:02:54 pm by JasonLugg »

JasonLugg

  • Jr. Member
  • **
  • Posts: 67
Re: <NEARLY SOLVED> NEWBIE: Postgres problem
« Reply #1 on: October 04, 2011, 09:04:24 pm »
Copies the Dlls into Lazarus Folder and I now do not get the missing DLL error.

However, still cannot get a connection of a postgre DB on local host?

Any pointers much appreciated!

kodok_buncit

  • New Member
  • *
  • Posts: 33
    • fajardelphiscript
Re: <NEARLY SOLVED> NEWBIE: Postgres problem
« Reply #2 on: October 04, 2011, 10:12:48 pm »
copy dll to your system path eg:system32\ or your project folder
Peace and blessings be upon you all

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: <NEARLY SOLVED> NEWBIE: Postgres problem
« Reply #3 on: October 05, 2011, 08:42:45 am »
Personnally, I'd stay away from copying over dlls to my system folder, unless it's done by an installer.

You mentioned you had copied your dlls into the Lazarus folder - you might also need to copy the dll to the project output folder (the folder where your application executable is located), so you can run the application.

You mention you can't get a connection - what errors do you get? A timeout? Have you set the host, username, password properties for the Postgres connector?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018