Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

I am new to linux and perl. I install DBI module in LINUX. I am getting following error. After reading guide to install module in perlmonks tutorial i run perl Makefile.PL it runs after i run make i am getting following error please help me i have to install DBI module in linux give me any idea please.

gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -f +no-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_O +FFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DV +ERSION=\"1.48\" -DXS_VERSION=\"1.48\" -fPIC "-I/usr/lib/perl5/5.8.0/i +386-linux-thread-multi/CORE" -Wall -Wno-comment Perl.c /bin/sh: line 1: gcc: command not found make: *** [Perl.o] Error 127

Thanks

Replies are listed 'Best First'.
Re: Module in LINUX
by Hena (Friar) on Jul 04, 2005 at 05:59 UTC
    Its complaing that the 'gcc' is not installed on the machine. You need to install 'gcc' (gnu c compiler).
Re: Module in LINUX
by neniro (Priest) on Jul 04, 2005 at 08:46 UTC
    What kind of linux are you talking about? On Debian or derivative you can simply use: apt-get install libdbi-perl

    Other Vendors have different packaging-tools so that its often not necessary to use the cpan-command to install perl-modules.

Re: Module in LINUX
by xorl (Deacon) on Jul 05, 2005 at 16:13 UTC
    You need to find where gcc is installed and put that location in your $PATH before you try to install the module.
    [user@box]$ locate gcc /usr/bin/gcc296 /usr/bin/gcc [user@box]$ export PATH="/usr/bin:$PATH"
    Then do the install. You'll want to also add that last command to /etc/bashrc.

    In the extremely unlikely case that gcc didn't come with your version of Linux, visit http://gcc.gnu.org/ and download it.

A reply falls below the community's threshold of quality. You may see it by logging in.