$ brew install perl -v
==> Downloading http://www.cpan.org/src/5.0/perl-5.20.1.tar.bz2
Already downloaded: /home/rcf-40/skchoudh/.cache/Homebrew/perl-5.20.1.tar.bz2
==> Verifying perl-5.20.1.tar.bz2 checksum
tar xf /home/rcf-40/skchoudh/.cache/Homebrew/perl-5.20.1.tar.bz2
==> ./Configure -des -Dprefix=/auto/cmb-06/as/skchoudh/linuxbrew/Cellar/perl/5.20.1 -Dman1dir=/auto/cmb-06/as/skchoudh/linuxbrew/Cellar/perl/5.20.1/share/man/man1 -Dman3dir=/auto/cmb-06/as/skchoudh/linuxbrew/Cellar/perl/5.20.1/share/man/man3 -Duseshrplib -Duselargefiles -Dusethreads
First let's make sure your kit is complete. Checking...
Locating common programs...
Checking compatibility between /auto/cmb-06/as/skchoudh/linuxbrew/bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
aix_3 dynixptx irix_6_0 nonstopux sunos_4_0
aix_4 dynix irix_6_1 openbsd sunos_4_1
aix epix irix_6 opus super-ux
altos486 esix4 isc_2 os2 svr4
amigaos fps isc os390 svr5
atheos freebsd linux-android os400 ti1500
aux_3 freemint linux posix-bc ultrix_4
bitrig genix lynxos powerux umips
bsdos gnukfreebsd midnightbsd qnx unicosmk
catamount gnuknetbsd mips riscos unicos
convexos gnu mirbsd sco_2_3_0 unisysdynix
cxux greenhills mpc sco_2_3_1 utekv
cygwin haiku ncr_tower sco_2_3_2 uwin
darwin hpux netbsd sco_2_3_3 vos
dcosx i386 newsos4 sco_2_3_4
dec_osf interix next_3_0 sco
dos_djgpp irix_4 next_3 solaris_2
dragonfly irix_5 next_4 stellar
Which of these apply, if any? [linux]
You appear to have ELF support. I'll try to use it for dynamic loading.
If dynamic loading doesn't work, read hints/linux.sh for further information.
/auto/cmb-06/as/skchoudh/linuxbrew/bin/nm: /usr/lib64/libdb.so: no symbols
Operating system name? [linux]
Operating system version? [2.6.32-431.29.2.el6.x86_64]
Installation prefix to use? (~name ok)
[/auto/cmb-06/as/skchoudh/linuxbrew/Cellar/perl/5.20.1]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/auto/cmb-06/as/skchoudh/linuxbrew/Cellar/perl/5.20.1]
Getting the current patchlevel...
Build a threading Perl? [y]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/usr/local/lib /auto/cmb-06/as/skchoudh/linuxbrew/Cellar/gcc/4.9.2/lib /auto/cmb-06/as/skchoudh/linuxbrew/Cellar/gcc/4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include-fixed /auto/cmb-06/as/skchoudh/linuxbrew/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64]
What is the file extension used for shared libraries? [so]
Make shared library basenames unique? [n]
Build Perl for SOCKS? [n]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use?
[-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc]
What optimizer/debugger flag should be used? [-O2]
Any additional cc flags?
[-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[ -fstack-protector -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:
#include <stdio.h>
int main() { printf("Ok\n"); return(0); }
I used the command:
cc -o try -O2 -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
./try
and I got the following output:
/auto/cmb-06/as/skchoudh/linuxbrew/bin/ld: cannot find -ldb
collect2: error: ld returned 1 exit status
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.