configure: error: TORQUE needs pthreads in order to build

Scenario:

While installing Torque, you run ./configure and get the following error

configure: error: TORQUE needs pthreads in order to build

Solution:

Searching google seems to indicate that you need the windows library pthreads, or that there is a problem with the ./configure file, however both of these are mistaken.

The real solution is to install a g++ compiler

wpid-Red-Hat-2012-01-10-14-24.jpg

yum install gcc-g++

wpid-Ubuntu-2012-01-10-14-24.png

apt-get install g++

Cause:

The reason why is that Torque 4.x has moved from C to C++ and needs the C++ compiler.

checking whether to disable strict gcc warnings… no
checking for stat64… no
checking for stat64… no
checking for open64… no
checking for lseek64… no
checking for struct stat64.st_mode… no
checking for struct stat64.st_mode… no
checking if largefile compiles (looking at you, OSX)… checking for pthread_create in -lpthread… no
configure: error: TORQUE needs pthreads in order to build
make: *** No rule to make target `clean’.  Stop.

 

Update:

The default behavior of torque has been changed to avoid this problem in the future.
Advertisements

About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: