It appears to be installed: root@raspberrypi:/home/pi# sudo apt-get install gcc Reading package lists... Done Building dependency tree Reading state information... Done gcc is already the newest version. gcc set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@raspberrypi:/home/pi
On Oct 28, 2012, at 8:36 AM, "Martin J. Evans" <martin.ev...@easysoft.com> wrote: > On 28/10/2012 13:34, Steven Haun wrote: >> I am using 'sudo cpanm -i DBI' . I found the details in the log (forgot to >> open it as sudo, so it looked blank). After the cp commands I found this >> (but don't know what 'gcc-4.7' is): >> >> /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi >> /usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap >> /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc >> && mv Perl.xsc Per$ >> gcc-4.7 -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector >> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS$ >> /bin/sh: 1: gcc-4.7: not found >> make: *** [Perl.o] Error 127 >> -> FAIL Installing DBI failed. See /root/.cpanm/build.log for details. > gcc is a C compiler - you need it to compile the C code in DBI. > > You need to install the gcc package. As your using debian it is probably > something like > > sudo apt-get install gcc > > Martin > >> On Oct 28, 2012, at 8:27 AM, "Martin J. Evans" <martin.ev...@easysoft.com> >> wrote: >> >>> On 28/10/2012 13:18, Steven Haun wrote: >>>> I have tried cpan and cpanm installs and get very non description errors >>>> (other than failed). Any help would be appreciated. Thanks. >>> I installed DBI on a raspberry Pi ages ago. See bottom of >>> http://www.martin-evans.me.uk/node/142 and >>> http://www.martin-evans.me.uk/node/144 >>> >>> I had some problems running out of memory (from the above post): >>> >>> BTW, I tried to install Perl DBI (which does not have many dependencies) >>> with cpanp and after 13 minutes it died with the signal 'Killed' - hmm. >>> I've not investigated further yet - but I had plenty of disk space left on >>> a 4gb card. >>> *UPDATE:* It appears I had some problems with my sd card - switched to >>> another one and the machine seems faster but cpanp still bombs out as >>> before - trying cpanminus. >>> *UPDATE2:* ilmari suggested cpanp might be a big memory user so I installed >>> cpanm and managed to install DBI - although the test suite took over 60 >>> minutes to run. >>> >>> Doesn't cpanm have a verbose mode. >>> >>> Martin >