Compiling source code issue

Need assistance in compile a source code with PERL flags

Compile source code CDFconvert-2.2.3 which requires Fortran 90,Perl interpreter , Perl/TK module , NetCDF library , Gempak

I have all the above required libraries .

Issue is when compiling the source code it looks for local installed perl but i have compile version of perl in a different location

how can i make it to compile using different perl version

checking whether the f77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for xrec... no
checking for plotGEM... no
checking for perl... /usr/bin/perl
checking for perl module Tk... no
configure: WARNING: Oops, no Tcl/Tk module for perl - graphical applications
             will be unavailable.  I'd suggest that you get perl/Tk from
             the GNU archives before continuing this installation.

Perl installed under /local/tools/perl-5.18/bin/perl which has TK modules installed. Need your assistance .

Thats only because you have that Perl in your PATH environment... remove it like any software you may have different version and set the PATH in you profile with the one requested...

I have set this under .cshrc file, but it still reads the older path .

### Perl Lib
setenv PERL5LIB /local/tools/perl-5.18/lib:/local/tools/perl-5.18/lib/site_perl:/local/tools/perl-5.18/lib/site_perl/5.18.1

Try ./configure --help , it probably has an option for perl's path.

the fact is that having perl in /usr/bin will always be an handycap... rename the one there...