Sign in Join

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

Mailing lists / lazarus / 2003-11

TMPack link error.

26 messages · 8 people ·

Reply by email Subscribe to this list Your subscription

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

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Tony Maro wrote 9 lines
Well I'm happy to report it is completely unrelated to TMPack. You can grep the tmpack directory and "mysql" doesn't appear anywhere in it. Have you previously or recently installed the MySQL components? -Tony Maro

I wondered about that. I did try with no success. The mysql component shows up as 'to be installed on next startup' just like TMPack. How would I remove/uninstall or abort the install or whatever. I see no such option.

Thanks for the reply.
Lazarus still runs, but without those packages.

Also, when I open another project does the already open project close? I seem to be able to mix project files with unpredictable results.

Ken

Reply by email

Mattias Gaertner
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Show quoted text 29 lines
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.

I'm for it. Can you give some hints, how such things should look like? That means, how a user should define such checks. Under win32/linux/xxxbsd and how to define it platform independently. I plan to add conditional compiler options and I think, these things should work hand in hand. Some examples would be nice, so I can see, what tasks need to be supported.

Mattias

Reply by email

BoBo BoBo

I had the same problem with Lazarus recompiling after attempted to install the Mysql component. It took me a few minutes but under one of the menu points withing the components menu you can right click on the mysql package in the list end select uninstall. I don't have my Linux up right now so I cannot give you more specifics, but it can be done.

Good luck :)

Show quoted text 62 lines
From: Ken Moffat Reply-To: To: Subject: Re: [lazarus] TMPack link error. Date: Wed, 12 Nov 2003 22:06:11 -0800 MIME-Version: 1.0 Received: from harding.miraclec.com ([216.37.230.2]) by mc2-f8 with Microsoft SMTPSVC(5.0.2195.6713); Wed, 12 Nov 2003 23:04:26 -0800 Received: (from )by harding.miraclec.com (8.11.6/8.11.6) id hAD6nBC20771;Thu, 13 Nov 2003 01:49:11 -0500 X-Message-Info: vAu4ZEtdRig8bDaqOzAI842rjNF1MIUP Resent-Date: Thu, 13 Nov 2003 01:49:11 -0500 X-Authentication-Warning: harding.miraclec.com: mail set sender to using -f Message-ID: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2 X-Accept-Language: en References: In-Reply-To: Resent-Message-ID: Resent-From: X-Mailing-List: archive/latest/14260 X-Loop: Precedence: list Resent-Sender: Return-Path: X-OriginalArrivalTime: 13 Nov 2003 07:04:26.0406 (UTC) FILETIME=[5FDD6C60:01C3A9B4] Tony Maro wrote: > >Well I'm happy to report it is completely unrelated to TMPack. > >You can grep the tmpack directory and "mysql" doesn't appear anywhere in >it. > >Have you previously or recently installed the MySQL components? > >-Tony Maro I wondered about that. I did try with no success. The mysql component shows up as 'to be installed on next startup' just like TMPack. How would I remove/uninstall or abort the install or whatever. I see no such option. Thanks for the reply. Lazarus still runs, but without those packages. Also, when I open another project does the already open project close? I seem to be able to mix project files with unpredictable results. -- Ken _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

Reply by email

Marc Weustink
to Vasily I. Volchenko: Seems like lazarus' codetools still can't parse fpc-1.9.1 sources. To reproduce that, just

+ -----Original Message-----
+ From: Vasily I. Volchenko
+ Sent: donderdag 13 november 2003 15:10
+ To:
+ Subject: [lazarus] fpc 1.9.1 and Lazarus
+
+
+ Seems like lazarus' codetools still can't parse fpc-1.9.1 sources.
+ To reproduce that, just
+ 1. Place a button on a form.
+ 2. Double-click it (or just create an event).
+ Error will , that will be "Can't find unit
+ custapp" or so on.
+ If this error will be fixed by supplying the source in
+ codetools options, next errors will be showed. The only thing
+ (in linux) to fix it is creating complete directory with all
+ unit sources.
+ Lazarus has been downloaded from cvs at about 11 PM MSK yeserday.

It is not a problem of the codetools. Custapp.pp should be part of the FCL sources.

if not, you need the FCL sources.
if so, probably something with your FCL source path isn't ok.

Marc

Reply by email

Ken Moffat

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.

Anyone have any advice? The ide runs but the TMPack did not install. It shows status: install on next restart in the package graph, as does mysqlaz.

Ken

Reply by email

Mattias Gaertner
to Ken Moffat
Show quoted text 24 lines
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. Anyone have any advice? The ide runs but the TMPack did not install. It shows status: install on next restart in the package graph, as does mysqlaz.

Uninstall mysqlaz.

Mattias

Reply by email

Stoian Ivanov
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Error will , that will be "Can't find unit custapp" or so

on.

If this error will be fixed by supplying the source in codetools options,

next errors will be showed. The only thing (in linux) to fix it is creating complete directory with all unit sources.

I'm interested - how do you crate that direcotory - just copy all content of lcl rtl fcl in a single directory?

Reply by email

Tony Maro
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Ken Moffat wrote 5 lines
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:

<snip>

TOutputFilter: "Linking ./lazarus" TOutputFilter: "/usr/bin/ld: cannot find -lmysqlclient" TOutputFilter: "lazarus.pp(352) Error: Error while linking"

Well I'm happy to report it is completely unrelated to TMPack.

You can grep the tmpack directory and "mysql" doesn't appear anywhere in it.

Have you previously or recently installed the MySQL components?

-Tony Maro

Reply by email

Vasily I. Volchenko
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…

Seems like lazarus' codetools still can't parse fpc-1.9.1 sources. To reproduce that, just
1. Place a button on a form.
2. Double-click it (or just create an event).
Error will , that will be "Can't find unit custapp" or so on. If this error will be fixed by supplying the source in codetools options, next errors will be showed. The only thing (in linux) to fix it is creating complete directory with all unit sources. Lazarus has been downloaded from cvs at about 11 PM MSK yeserday.

Reply by email

Florian Klaempfl
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Ken Moffat wrote 20 lines
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.

Reply by email

Tony Maro
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Tony Maro wrote 25 lines
Ken Moffat wrote: > Tony Maro wrote: > >> That's odd. Did the components for TMPack show up in the palette? >> >> -Tony >> > > no, they don't show. I just uninstalled and reinstalled; same result. > I'm building as root, lazarus is under /usr/share/lazarus, the > component source is under ~/Projects/Lazarus/tmpack, and I'm loading > tmpack.lpk, which shows all the components in the installer window. > When I click compile it apparently works, and when I click install it > also seems to work, but they show up as 'to be installed' in the > package graph. Nothing in the ide. > > I'm a newbie so it's probably something I'm unaware of. I'm running > debian (libranet 2.8.1) with kernel 2.4.22 and xfce4 and gnome2.4 > (depending on my mood. same results either way) > Well, it sounds like you did everything right. Mattias, any ideas? The only other thing I might suggest is in the package click "More" + "Recompile Clean". Then Install.

Oh, and you do know you must close and reopen lazarus after installing a package of course...

-Tony

Reply by email

Mattias Gaertner
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Show quoted text 22 lines
Tony Maro wrote: > > Well I'm happy to report it is completely unrelated to TMPack. > > You can grep the tmpack directory and "mysql" doesn't appear anywhere > in it. > > Have you previously or recently installed the MySQL components? > > -Tony Maro I wondered about that. I did try with no success. The mysql component shows up as 'to be installed on next startup' just like TMPack. How would I remove/uninstall or abort the install or whatever. I see no such option. Thanks for the reply. Lazarus still runs, but without those packages. Also, when I open another project does the already open project close?

Yes.
At any time, there is always only one project open.

I seem to be able to mix project files with unpredictable results.

Can you give more details/an example?

Mattias

Reply by email

Mattias Gaertner
to BoBo BoBo: I had the same problem with Lazarus recompiling after attempted to install the Mysql…
Show quoted text 6 lines
I had the same problem with Lazarus recompiling after attempted to install the Mysql component. It took me a few minutes but under one of the menu points withing the components menu you can right click on the mysql package in the list end select uninstall. I don't have my Linux up right now so I cannot give you more specifics, but it can be done.

Open the package, More -> uninstall

Mattias

Show quoted text 78 lines
Good luck :) >From: Ken Moffat >Reply-To: >To: >Subject: Re: [lazarus] TMPack link error. >Date: Wed, 12 Nov 2003 22:06:11 -0800 >MIME-Version: 1.0 >Received: from harding.miraclec.com ([216.37.230.2]) by mc2-f8 with >Microsoft SMTPSVC(5.0.2195.6713); Wed, 12 Nov 2003 23:04:26 -0800 >Received: (from )by harding.miraclec.com (8.11.6/8.11.6) id > >hAD6nBC20771;Thu, 13 Nov 2003 01:49:11 -0500 >X-Message-Info: vAu4ZEtdRig8bDaqOzAI842rjNF1MIUP >Resent-Date: Thu, 13 Nov 2003 01:49:11 -0500 >X-Authentication-Warning: harding.miraclec.com: mail set sender to > using -f >Message-ID: >User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) >Gecko/20030714 Debian/1.4-2 >X-Accept-Language: en >References: >In-Reply-To: >Resent-Message-ID: >Resent-From: >X-Mailing-List: archive/latest/14260 >X-Loop: >Precedence: list >Resent-Sender: >Return-Path: >X-OriginalArrivalTime: 13 Nov 2003 07:04:26.0406 (UTC) >FILETIME=[5FDD6C60:01C3A9B4] > >Tony Maro wrote: > >> >>Well I'm happy to report it is completely unrelated to TMPack. >> >>You can grep the tmpack directory and "mysql" doesn't appear anywhere in > >>it. >> >>Have you previously or recently installed the MySQL components? >> >>-Tony Maro > > >I wondered about that. I did try with no success. The mysql component >shows up as 'to be installed on next startup' just like TMPack. How would >I remove/uninstall or abort the install or whatever. I see no such >option. > >Thanks for the reply. >Lazarus still runs, but without those packages. > >Also, when I open another project does the already open project close? I >seem to be able to mix project files with unpredictable results. > >-- >Ken > > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Tony Maro wrote 10 lines
Ken Moffat wrote: > Ok, found the 'uninstall option' and got rid of 'MySQL', and the > error, but when I build Lazarus the 'TMPack' still shows as 'install > on next start' in the Package Graph. (yes, I did restart lazarus ;-) ) > That's odd. Did the components for TMPack show up in the palette? -Tony

no, they don't show. I just uninstalled and reinstalled; same result. I'm building as root, lazarus is under /usr/share/lazarus, the component source is under ~/Projects/Lazarus/tmpack, and I'm loading tmpack.lpk, which shows all the components in the installer window. When I click compile it apparently works, and when I click install it also seems to work, but they show up as 'to be installed' in the package graph. Nothing in the ide.

I'm a newbie so it's probably something I'm unaware of. I'm running debian (libranet 2.8.1) with kernel 2.4.22 and xfce4 and gnome2.4 (depending on my mood. same results either way)

Ken

Reply by email

Tony Maro
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Ken Moffat wrote 19 lines
Tony Maro wrote: > That's odd. Did the components for TMPack show up in the palette? > > -Tony > no, they don't show. I just uninstalled and reinstalled; same result. I'm building as root, lazarus is under /usr/share/lazarus, the component source is under ~/Projects/Lazarus/tmpack, and I'm loading tmpack.lpk, which shows all the components in the installer window. When I click compile it apparently works, and when I click install it also seems to work, but they show up as 'to be installed' in the package graph. Nothing in the ide. I'm a newbie so it's probably something I'm unaware of. I'm running debian (libranet 2.8.1) with kernel 2.4.22 and xfce4 and gnome2.4 (depending on my mood. same results either way)

Well, it sounds like you did everything right. Mattias, any ideas? The only other thing I might suggest is in the package click "More" + "Recompile Clean". Then Install.

-Tony

Reply by email

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Tony Maro wrote 9 lines
>> > Well, it sounds like you did everything right. Mattias, any ideas? > The only other thing I might suggest is in the package click "More" + > "Recompile Clean". Then Install. > Oh, and you do know you must close and reopen lazarus after installing a package of course... -Tony

Yes, I closed Lazarus and reopened. I'll try the recompile clean idea. Thank you.

Ken

Reply by email

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Mattias Gaertner wrote 7 lines
That's good. But when you find out, why it didn't work before, please tell us.

Is it possible that the Window manager would make the difference? I opened and compiled using the TMPack components in KDE, but when I switch to gnome the project is fouled up, unable to read the main form, and other errors. I was attempting to use Lazarus/TMPack in gnome2.4 without success, although Lazarus ran fine (no TMPack) but when I switched to KDE TMPack showed up. Now when I try gnome the project is unreadable.

Ken

Reply by email

Mattias Gaertner
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Show quoted text 18 lines
Ken Moffat wrote: > Mattias Gaertner wrote: > >> That's good. >> >> But when you find out, why it didn't work before, please tell us. >> >> >> >> > > Is it possible that the Window manager would make the difference? Very odd. When I open Package Graph in KDE, TMPack shows installed, but in Gnome2.4 it shows to be installed on next start. What?

Strange indeed.

Did you check, that both times the same lazarus binary is executed?

Mattias

Reply by email

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Mattias Gaertner wrote 39 lines
On Sat, 15 Nov 2003 13:32:31 -0800 Ken Moffat wrote: >Ken Moffat wrote: > > > >>Mattias Gaertner wrote: >> >> >> >>>That's good. >>> >>>But when you find out, why it didn't work before, please tell us. >>> >>> >>> >>> >>> >>> >>Is it possible that the Window manager would make the difference? >> >> >Very odd. When I open Package Graph in KDE, TMPack shows installed, but >in Gnome2.4 it shows to be installed on next start. >What? > > Strange indeed. Did you check, that both times the same lazarus binary is executed? Mattias

Wow. Never thought of that! It could be the problem. I found lazarus in /usr/bin/ and /usr/local/bin. I've renamed one and will try several window managers. Perhaps the paths are inconsistent. Thanks. Later.

Ken

Reply by email

Ken Moffat
to Ken Moffat: I have attempted to add TMPack to my Lazarus install. Untarred in to a directory under my…
Mattias Gaertner wrote 21 lines
On Sat, 15 Nov 2003 09:47:12 -0800 Ken Moffat wrote: >Success for some reason. > >I just opened Lazarus and the TMPack components now show on the pallet. >I have no idea what changed or why they now show, but I'm smiling. > > That's good. But when you find out, why it didn't work before, please tell us. Mattias

Yes, I'll be here.

My complements on the work that is being done on Lazarus. I feel this will be a big plus to the linux desktop movement. An ide which allows rapid development of X apps is needed, and althought Kylix is/was promising, the deployment problems were frustrating, due to dependencies. Lazarus' lack of dependency problems during deployment is a huge plus.

Thanks for the efforts.

Ken

Reply by email