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?