Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

Free Pascal Update

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Eric March

I run Ubuntu 64 bit kernel 2.6. I need to upgrade from FPC 2.2.0 to 2.2.2 Is there a way that this can be done via Ubuntu update manager?

(Keep everything up to date from now on)
If there are enough Ubuntu users to justify the setup, would update manager address issues such as standard directories. Mine was installed as root and so non root user did not have write access.

Eric March
Adelaide
Australia

Reply by email

Joost van der Sluis
to Eric March

Op maandag 08-12-2008 om 19:38 uur [tijdzone +1030], schreef Eric March:

I run Ubuntu 64 bit kernel 2.6. I need to upgrade from FPC 2.2.0 to 2.2.2 Is there a way that this can be done via Ubuntu update manager?

Maybe you should ask that to those people who can actually do something about it, ie, the Ubuntu-people.

(Keep everything up to date from now on) If there are enough Ubuntu users to justify the setup, would update manager address issues such as standard directories. Mine was installed as root and so non root user did not have write access.

This is an Ubuntu-issue. I oculd offcourse answer that if you install Fedora this will all work fine. ;) But better let the Ubuntu-people fix this problem.

But they are a bit behind on fpc-versions, because they are dog-slow and now it's too late to update the fpc-version in Ubuntu 8.10. But let them know, send in reports to them. If they don't get complaints, they will think it's not an issue.

Joost.

Reply by email

Eric March
to Joost van der Sluis

I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit linux.
I tried running mysql but get an error which needs FPC 2.2.3 or later. I can only find RPM files
for that source and I can't install it. I can download FPC.zip and compile that source but it
turns out to be still FPC 2.2.2, which is what I was running.

I think PostgreSQL database system has better record locking and other functions that make
it superior to MYSQL, so rather than spend time on finding an FPC source 2.2.3 or later that
I can make compile I thought I would try Postgress.

I opened a new project and placed a PQConnection on Form1, set host name as localhost,
username as postgres with no password. When I set Connected to "TRUE" I get the
following error.

Can not load PosgreSQL client. Is it installed? (libpq.so)

I can't find a file called libpq.so anywhere on my system. Did a search of components and
can't find anything under PostgreSQL. I have PostgreSQL running and can access it using
psql.

How do I install PostgreSQL client?

Eric March

Reply by email

Joost van der Sluis
to Eric March

Op dinsdag 23-12-2008 om 02:39 uur [tijdzone +1030], schreef Eric March:

Show quoted text 7 lines
I opened a new project and placed a PQConnection on Form1, set host name as localhost, username as postgres with no password. When I set Connected to "TRUE" I get the following error. Can not load PosgreSQL client. Is it installed? (libpq.so)

I've googled a bit and there seems to be a libpq package for ubuntu: http://packages.ubuntu.com/nl/hardy/i386/libpq5/filelist

It could be that you need the package libpq5-dev also.

Joost.

Reply by email

Andrew Brunner
to Eric March: I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit…
Eric March wrote 7 lines
I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit linux. I tried running mysql but get an error which needs FPC 2.2.3 or later. I can only find RPM files for that source and I can't install it. I can download FPC.zip and compile that source but it turns out to be still FPC 2.2.2, which is what I was running.

You're FPC installs are messed up. You need to link the FPC compiler in the /usr/local to the new version. Use Nautilus to browse your paths and check these links. I'd bet your FPC is pointing to the older version.

You can get the latest form SVN locally and follow the installation instructions on the Wiki to build, install, install source. But when you do the ln (symbolic links) do them under SUDO.

Show quoted text 7 lines
I think PostgreSQL database system has better record locking and other functions that make it superior to MYSQL, so rather than spend time on finding an FPC source 2.2.3 or later that I can make compile I thought I would try Postgress.

I hear that Postgres was more difficult to manage though.

Show quoted text 12 lines
I opened a new project and placed a PQConnection on Form1, set host name as localhost, username as postgres with no password. When I set Connected to "TRUE" I get the following error. Can not load PosgreSQL client. Is it installed? (libpq.so) How do I install PostgreSQL client?

I would always try to use the Package Manager.

Reply by email

Leonardo M. Ramé
to Eric March: I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit…

I don't use Ubuntu, but did you try this:

/apt-get install libpq/-dev ?

Leonardo M. Ram?
Griensu S.A. - Medical IT C?rdoba
Tel.: 0351 - 4247979

Eric March escribi?:

Show quoted text 41 lines
I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit linux. I tried running mysql but get an error which needs FPC 2.2.3 or later. I can only find RPM files for that source and I can't install it. I can download FPC.zip and compile that source but it turns out to be still FPC 2.2.2, which is what I was running. I think PostgreSQL database system has better record locking and other functions that make it superior to MYSQL, so rather than spend time on finding an FPC source 2.2.3 or later that I can make compile I thought I would try Postgress. I opened a new project and placed a PQConnection on Form1, set host name as localhost, username as postgres with no password. When I set Connected to "TRUE" I get the following error. Can not load PosgreSQL client. Is it installed? (libpq.so) I can't find a file called libpq.so anywhere on my system. Did a search of components and can't find anything under PostgreSQL. I have PostgreSQL running and can access it using psql. How do I install PostgreSQL client? Eric March _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lord Satan
to Andrew Brunner: You're FPC installs are messed up. You need to link the FPC compiler in the /usr/local…
You can get the latest form SVN locally and follow the installation instructions on the Wiki to build, install, install source. But when you do the ln (symbolic links) do them under SUDO.

The easiest (and IMHO cleanest) way to compile FPC from SVN on Linux is via the $LazarusDir/tools/install/create_fpc*.sh scripts, because you get a package for your distro.

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email

Darmawan Sugiarto
to Eric March: I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk on Ubuntu 64 bit…

Why I can used function my code
SQLQuery1.Locate('kd_pic', Edit1.Text,[loCaseInsensitive,loPartialKey]); am I make a mistake?

=============INTOSOFT============

ALEXIO CHAOS

Yahoo Messager

=================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081224/2ed8e458/attachment.html

Reply by email

Joost van der Sluis
to Darmawan Sugiarto

Op woensdag 24-12-2008 om 10:19 uur [tijdzone -0800], schreef Darmawan Sugiarto:

Why I can used function locate at dataset. this my code SQLQuery1.Locate('kd_pic', Edit1.Text,[loCaseInsensitive,loPartialKey]);

We need some more information to help you. What does happen if you use the code above?

If the result of the Locate function is false, nothing is found. If it's true it is found and the current record should be set to the found record.

Did you check the result of the Locate?

Joost.

Reply by email

Darmawan Sugiarto
to Joost van der Sluis
I already check the result is always FALSE; I used PostGreSQL 8.0 and WinXP Home Edition.
???? ShowMessage(BoolToStr(SQLQuery1.Locate('kd_pic', Edit1.Text,[loCaseInsensitive,loPartialKey]),TRUE));

=============INTOSOFT============

ALEXIO CHAOS

Yahoo Messager

=================================

--- On Sat, 12/27/08, Joost van der Sluis wrote:

Earlier message 32 lines
From: Joost van der Sluis Subject: Re: [Lazarus] Locate Dataset To: , "General mailing list" Date: Saturday, December 27, 2008, 3:33 AM Op woensdag 24-12-2008 om 10:19 uur [tijdzone -0800], schreef Darmawan Sugiarto: > Why I can used function locate at dataset. > this my code > SQLQuery1.Locate('kd_pic', > Edit1.Text,[loCaseInsensitive,loPartialKey]); We need some more information to help you. What does happen if you use the code above? If the result of the Locate function is false, nothing is found. If it's true it is found and the current record should be set to the found record. Did you check the result of the Locate? Joost. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081227/8ee7af45/attachment.html

Reply by email