LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RHEL 6 -lpthread not found (https://www.linuxquestions.org/questions/linux-software-2/rhel-6-lpthread-not-found-4175462785/)

brownwrap 05-20-2013 09:34 PM

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.

chrism01 05-21-2013 12:08 AM

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.

brownwrap 05-21-2013 05:57 PM

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.


All times are GMT -5. The time now is 04:18 PM.