# Compiling source code issue

**URL:** <https://community.unix.com/t/compiling-source-code-issue/352657>\
**Category:** Shell Programming and Scripting\
**Created:** [May 13, 2015, 1:03pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657 "2015-05-13T13:03:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajayram\_arya](https://community.unix.com/letter_avatar/ajayram_arya/32/6_22734026db12803ebb3e059622ac3534.png) [@ajayram\_arya](https://community.unix.com/u/ajayram_arya)\
**Post date:** [May 13, 2015, 1:03pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657/1 "2015-05-13T13:03:53Z")

</div>

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

```nohighlight
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 .

---

<div class="post-metadata">

**Author:** ![vbe](https://community.unix.com/user_avatar/community.unix.com/vbe/32/266_2.png) [@vbe](https://community.unix.com/u/vbe)\
**Post date:** [May 13, 2015, 1:16pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657/2 "2015-05-13T13:16:43Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![ajayram\_arya](https://community.unix.com/letter_avatar/ajayram_arya/32/6_22734026db12803ebb3e059622ac3534.png) [@ajayram\_arya](https://community.unix.com/u/ajayram_arya)\
**Post date:** [May 13, 2015, 1:32pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657/3 "2015-05-13T13:32:46Z")

</div>

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

```nohighlight
### 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

```

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/6_22734026db12803ebb3e059622ac3534.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [May 13, 2015, 1:37pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657/4 "2015-05-13T13:37:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vbe](https://community.unix.com/user_avatar/community.unix.com/vbe/32/266_2.png) [@vbe](https://community.unix.com/u/vbe)\
**Post date:** [May 13, 2015, 5:44pm UTC](https://community.unix.com/t/compiling-source-code-issue/352657/5 "2015-05-13T17:44:04Z")

</div>

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