I am using openport package management tool on a small G5 computational cluster. Recently I tried to add dsh (distributed secure shell) by compiling it from source. It requires a couple of dependencies, namely p5-locale-gettext. This port package failed to compile giving me an error as follows: port install p5-locale-gettext ---> Verifying checksum(s) for expat ---> Extracting expat ---> Configuring expat ---> Building expat with target all ---> Staging expat into destroot ---> Packaging tgz archive for expat 2.0.0_1 ---> Installing expat 2.0.0_1 ---> Activating expat 2.0.0_1 ---> Cleaning expat ---> Fetching gettext ---> Attempting to fetch gettext-0.15.tar.gz from ftp://ftp.gnu.org/gnu/gettext ---> Verifying checksum(s) for gettext ---> Extracting gettext ---> Applying patches to gettext ---> Configuring gettext ---> Building gettext with target all ---> Staging gettext into destroot ---> Packaging tgz archive for gettext 0.15_0 ---> Installing gettext 0.15_0 ---> Activating gettext 0.15_0 ---> Cleaning gettext ---> Fetching p5-locale-gettext ---> Attempting to fetch gettext-1.05.tar.gz from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Locale ---> Verifying checksum(s) for p5-locale-gettext ---> Extracting p5-locale-gettext ---> Configuring p5-locale-gettext Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor" returned error 127 Command output: sh: line 1: /opt/local/bin/perl: No such file or directory I made a soft link from /usr/bin/perl to /opt/local/bin/perl and tried again. dingo:~ root# port install p5-locale-gettext ---> Building p5-locale-gettext with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_perl_p5-locale-gettext/work/gettext-1.05" && make all" returned error 2 Command output: cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" gettext.c gettext.xs:5:21: error: libintl.h: No such file or directory gettext.c: In function 'XS_Locale__gettext_gettext': gettext.c:102: warning: incompatible implicit declaration of built-in function 'gettext' gettext.c: In function 'XS_Locale__gettext_dcgettext': gettext.c:121: warning: incompatible implicit declaration of built-in function 'dcgettext' gettext.c: In function 'XS_Locale__gettext_dgettext': gettext.c:139: warning: incompatible implicit declaration of built-in function 'dgettext' gettext.c: In function 'XS_Locale__gettext_ngettext': gettext.c:158: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_dcngettext': gettext.c:179: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_dngettext': gettext.c:199: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_textdomain': gettext.c:216: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_bindtextdomain': gettext.c:240: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_bind_textdomain_codeset': gettext.c:264: warning: assignment makes pointer from integer without a cast make: *** [gettext.o] Error 1 dingo:~ root# which libintl.h no libintl.h in /bin /sbin /usr/bin /usr/sbin /apps/bin /opt/local/bin /opt/local/sbin /sw/bin /usr/local/bin I was able to find libintl.h on the system =========================================== dingo:~ root# locate libintl.h /opt/local/include/libintl.h /opt/local/var/db/dports/software/gettext/0.15_0/opt/local/include/libintl.h /sw/include/libintl.h Any help will be much appreciated. Ivan.