Recent

Author Topic: usr/bin/ld cannot find -lpthread  (Read 17759 times)

ledster

  • Newbie
  • Posts: 6
usr/bin/ld cannot find -lpthread
« on: February 01, 2007, 09:19:08 pm »
New installation in SUSE 10.2 of Lazarus 0.9.20.

Compiling gives the error: usr/bin/ld cannot find -lpthread.

I have done a search in the forums for lpthread and had a zero result.
Can anyone help?

Ches

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: usr/bin/ld cannot find -lpthread
« Reply #1 on: February 01, 2007, 09:42:42 pm »
You probably need to install a package called libpthread-devel or similar name

scazon

  • Newbie
  • Posts: 2
RE: usr/bin/ld cannot find -lpthread
« Reply #2 on: February 15, 2007, 12:03:25 pm »
Did this problem get solved? I've got the same thing, and I can't find the package.

ledster

  • Newbie
  • Posts: 6
usr/bin/ld cannot find -lpthread
« Reply #3 on: February 15, 2007, 04:29:08 pm »
Yes!
Browsing the forum I found someone who had to change the widget set to GTK2 before Laz would compile. So I tried that. It was not a total solution, but the warnings changed to something I could sort out. As I recall, I had to add the gtk2-devel package (from the SUSE dvd) and it all worked.
Incidentally, the l in lpthread just means library. In other words it wants library pthread (I think!) which must be available in gtk2/gtk2-devel.

Good luck!

Ches

ps menu:- Project/Compiler Options - LCL widgetset

crawdad

  • Newbie
  • Posts: 1
usr/bin/ld cannot find -lpthread
« Reply #4 on: May 19, 2007, 04:19:39 pm »
This is a note to say that i had the same problem with Opensuse, and that installing the gtk2-devel package cleared it right up.

Kamau

  • Jr. Member
  • **
  • Posts: 67
  • Old Delphi programmer
Re: usr/bin/ld cannot find -lpthread
« Reply #5 on: January 03, 2013, 10:30:42 pm »
New installation in SUSE 10.2 of Lazarus 0.9.20.

Compiling gives the error: usr/bin/ld cannot find -lpthread.

I have done a search in the forums for lpthread and had a zero result.
Can anyone help?

Ches

I know it is very late :-) but actually I got this problem on a Fedora installation.

As it turned out there was a missing package.

After installing glibc-devel everything was okay.

Maybe that can be of user for somebody, who searches the internet for an answer.

/Kamau

 

TinyPortal © 2005-2018