LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2013, 09:34 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
RHEL 6 -lpthread not found


I am trying to compile some software written in 2009. I'm not a software engineer, just trying to help a user. Let me first say I'm using PGI Portland compilers, but I am not sure that has anything to do with the problem. I am also not sure that I can get in touch with the author of the software, but a lot has changed since she wrote it in 2009. Anyway in trying to compile, I get the error:
Code:
ld: -lpthread not found
As best as I can find, pthread is now part of glibc, please correct me if I am wrong. I found a library in /usr/lib64/libpthread and tried to like to it:

Code:
-L/usr/lib64 -lpthread
but received the same error. I am out of things to try. I am working with a meteorologist, who has had the software sitting around. She does have a collaborator who I spoke to today, that has it running, but he's on CentOS (and in another state). I didn't think to ask what version of CentOS he was running, but I can find out. It has taken me days to get to this point. The software requires NetCDF, compiled by the Portland compilers, as well as HDF5, again compiled by the Portland compilers. I have downgraded the two applications to match the user who has his software working . This may be more info than anyone is looking for, it might be something very simple, but I can't figure it out. Thanks.
 
Old 05-21-2013, 12:08 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
If a collaborator has it on Centos, find out what version, as Centos is a free rebuild of RHEL, so you should be able to match versions and do whatever they did to make it build.
 
Old 05-21-2013, 05:57 PM   #3
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
The problem has been solved. I work in a lab environment, and by lab I mean lots of buildings, with lots of users. Another SA pointed out someone here in another building had worked with NetCDF. When I went to visit him, he had compiled the exact same software I was having the pthread issue with. Right in the middle of our discussion he received a call and I had to leave, but he did say he was using an old version of NetCDF. I compiled that, and then talked to the user. She said someone across the hall from her took a lokk at the software in quest and suggested we removed a "Bstatic" entry in the makefile. We did that and it worked. I can compiled stuff that is thoroughly tested, but in this case I've not been able to reach the author and from what I can see, it hasn't been updated since 2009. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glibcxx_3.4.9 NOT FOUND RHEL mccartjd Linux - Newbie 2 01-24-2012 04:01 AM
`pkg-config --cflags --libs glib-2.0" -lpthread Nagababa Linux - Newbie 4 08-03-2010 07:29 AM
what is the difference between -lpthread, -pthread, -lthread? nithima Linux - Newbie 2 03-31-2010 09:52 PM
what is lpthread? cnivas Linux - Enterprise 1 09-18-2008 08:53 AM
lpthread install on RedHat, THREADS luftwaffe Linux - Newbie 1 07-05-2002 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration