http://qs1969.pair.com?node_id=1022331

sachss has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install a Perl module locally, on a machine I don't have admin rights too. Unfortunately, when I try "cpanm <Module>" I run into the error

/usr/pkg/include/pthread.h:285: error: conflicting types for 'pthread_ +t' /usr/include/pthread_types.h:71: error: previous declaration of 'pthre +ad_t' was here /usr/pkg/include/pthread.h:286: error: conflicting types for 'pthread_ +attr_t' /usr/include/pthread_types.h:72: error: previous declaration of 'pthre +ad_attr_t'' was here ... *** Error Code 1 Stop.

So how do I tell cpanm (or anything else) to use either /usr/include or /usr/pkg/include but not both?

Replies are listed 'Best First'.
Re: installing module but both /usr/include and /usr/pkg/include used
by Anonymous Monk on Mar 08, 2013 at 02:42 UTC