From zak.zebrowski at gmail.com Thu Jul 19 10:36:26 2012 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Thu, 19 Jul 2012 13:36:26 -0400 Subject: [Hardware-pm] pi Message-ID: Hi all, For the raspberry pi, what OS are you using? I'm using the debian os (not the recent one that just came out), and I'm having trouble installing DBI, starting with: CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build T/TI/TIMB/DBI-1.622.tar.gz Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] TIMB/DBI-1.622.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Is one of the other OS's a better alternative for building perl modules? (Or have someone had a similar experience with DBI & have a solution)? At least the base install of perl works though, not sure what's up with DBI... (My intent is to start playing with pi hardware soonish...) :) Zak From robert at robertblackwell.com Thu Jul 19 10:52:45 2012 From: robert at robertblackwell.com (Robert Blackwell) Date: Thu, 19 Jul 2012 13:52:45 -0400 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: <9AEFFEFA-B557-40A5-B0FC-97A31ADF9B65@robertblackwell.com> I recently got my Raspberry Pi but have not had time to place with. Very glad you are trailblazing for us. Robert On Jul 19, 2012, at 1:36 PM, Zachary Zebrowski wrote: > Hi all, > > For the raspberry pi, what OS are you using? I'm using the debian os > (not the recent one that just came out), and I'm having trouble > installing DBI, starting with: > > CPAN: File::Temp loaded ok (v0.22) > CPAN.pm: Going to build T/TI/TIMB/DBI-1.622.tar.gz > Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] > TIMB/DBI-1.622.tar.gz > /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK > Running make test > Make had some problems, won't test > Running make install > Make had some problems, won't install > > Is one of the other OS's a better alternative for building perl > modules? (Or have someone had a similar experience with DBI & have a > solution)? > > At least the base install of perl works though, not sure what's up with DBI... > > (My intent is to start playing with pi hardware soonish...) :) > > Zak > _______________________________________________ > Hardware-pm mailing list > Hardware-pm at pm.org > http://mail.pm.org/mailman/listinfo/hardware-pm From afbach at gmail.com Thu Jul 19 11:38:44 2012 From: afbach at gmail.com (Andy Bach) Date: Thu, 19 Jul 2012 13:38:44 -0500 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: On Thu, Jul 19, 2012 at 12:36 PM, Zachary Zebrowski wrote: > Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] Hmm, odd. Can you unzip/untar the file and try that command by hand? Normally that's a pretty simple process, creating a makefile for the rest of the process. -- a Andy Bach, afbach at gmail.com 608 658-1890 cell 608 261-5738 wk From bohica at ntlworld.com Thu Jul 19 12:29:30 2012 From: bohica at ntlworld.com (Martin J. Evans) Date: Thu, 19 Jul 2012 20:29:30 +0100 Subject: [Hardware-pm] Fwd: Re: pi In-Reply-To: <50085FD6.407@ntlworld.com> References: <50085FD6.407@ntlworld.com> Message-ID: <5008601A.3050009@ntlworld.com> Apologies, I missed out hardware-pm from my reply. -------- Original Message -------- Subject: Re: [Hardware-pm] pi Date: Thu, 19 Jul 2012 20:28:22 +0100 From: Martin J. Evans Organization: Easysoft Limited To: Zachary Zebrowski On 19/07/2012 18:36, Zachary Zebrowski wrote: > Hi all, > > For the raspberry pi, what OS are you using? I'm using the debian os > (not the recent one that just came out), and I'm having trouble > installing DBI, starting with: > > CPAN: File::Temp loaded ok (v0.22) > CPAN.pm: Going to build T/TI/TIMB/DBI-1.622.tar.gz > Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] > TIMB/DBI-1.622.tar.gz > /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK > Running make test > Make had some problems, won't test > Running make install > Make had some problems, won't install > > Is one of the other OS's a better alternative for building perl > modules? (Or have someone had a similar experience with DBI& have a > solution)? > > At least the base install of perl works though, not sure what's up with DBI... > > (My intent is to start playing with pi hardware soonish...) :) > > Zak I used debian wheezy. I wrote it up at "Raspberry Pi - will it get our children programming and if so why not in Perl?" (http://www.martin-evans.me.uk/node/142) and "Perl DBD::ODBC on the Raspberry Pi" (http://www.martin-evans.me.uk/node/144). I installed DBI ok via cpanm but running the tests took an hour. Then we built our ODBC drivers which took almost a day and I installed DBD::ODBC. There is nothing special about the RP really, it is just another cheap computer but it really lacks memory and cpanplus and cpan shell kill it. I didn't post these links before here as I thought hardware-pm was lower level than the RP but since you asked. I'm trying to add a ADC to my RP to replace the arduinos we use for temperature monitoring - see "monitoring our machine room temperature with nagios, perl and arduino" (http://www.martin-evans.me.uk/node/140). Martin -- Martin J. Evans Wetherby, UK From zak.zebrowski at gmail.com Thu Jul 19 12:48:31 2012 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Thu, 19 Jul 2012 15:48:31 -0400 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: ++ Thanks for reminding me to try that... running perl Makefile.PL results in no errors... Checking if your kit is complete... Looks good make'd ok... make test: All tests successful. Files=182, Tests=8393, 1730 wallclock secs (35.21 usr 3.24 sys + 1558.13 cusr 49.43 csys = 1646.01 CPU) && Installed. :-) Zak On Thu, Jul 19, 2012 at 2:38 PM, Andy Bach wrote: > On Thu, Jul 19, 2012 at 12:36 PM, Zachary Zebrowski > wrote: >> Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] > > Hmm, odd. Can you unzip/untar the file and try that command by hand? > Normally that's a pretty simple process, creating a makefile for the > rest of the process. > > -- > > a > > Andy Bach, > afbach at gmail.com > 608 658-1890 cell > 608 261-5738 wk From afbach at gmail.com Thu Jul 19 12:54:27 2012 From: afbach at gmail.com (Andy Bach) Date: Thu, 19 Jul 2012 14:54:27 -0500 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: On Thu, Jul 19, 2012 at 2:48 PM, Zachary Zebrowski wrote: > running perl Makefile.PL results in no errors... So, sort of sounds like cpan has some setup issue? -- a Andy Bach, afbach at gmail.com 608 658-1890 cell 608 261-5738 wk From zak.zebrowski at gmail.com Thu Jul 19 12:56:19 2012 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Thu, 19 Jul 2012 15:56:19 -0400 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: Yup, something won't work... Apparently cpanm might work, but I think I will stick with downloading the perl module directly and installing it that way for now... :) Zak On Thu, Jul 19, 2012 at 3:54 PM, Andy Bach wrote: > On Thu, Jul 19, 2012 at 2:48 PM, Zachary Zebrowski > wrote: >> running perl Makefile.PL results in no errors... > > So, sort of sounds like cpan has some setup issue? > > -- > > a > > Andy Bach, > afbach at gmail.com > 608 658-1890 cell > 608 261-5738 wk From zak.zebrowski at gmail.com Thu Jul 19 12:57:35 2012 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Thu, 19 Jul 2012 15:57:35 -0400 Subject: [Hardware-pm] Fwd: Re: pi In-Reply-To: <5008601A.3050009@ntlworld.com> References: <50085FD6.407@ntlworld.com> <5008601A.3050009@ntlworld.com> Message-ID: Hi Martin, ++ Very cool, good articles. I didn't realize the cpan shell issue, but very cool and thanks for the info. (I also got boa ( a simple web server) and a few other debian utilities to just work as well...) I'm also thinking of doing some home environmental monitoring with the pi as well... (Using sqlite as my backend, via dbd-sqlite.) Won't start that till the weekend though... Zak > I used debian wheezy. > > I wrote it up at "Raspberry Pi - will it get our children programming > and if so why not in Perl?" (http://www.martin-evans.me.uk/node/142) and > "Perl DBD::ODBC on the Raspberry Pi" > (http://www.martin-evans.me.uk/node/144). > > I installed DBI ok via cpanm but running the tests took an hour. Then we > built our ODBC drivers which took almost a day and I installed > DBD::ODBC. There is nothing special about the RP really, it is just > another cheap computer but it really lacks memory and cpanplus and cpan > shell kill it. > > I didn't post these links before here as I thought hardware-pm was lower > level than the RP but since you asked. > > I'm trying to add a ADC to my RP to replace the arduinos we use for > temperature monitoring - see "monitoring our machine room temperature > with nagios, perl and arduino" (http://www.martin-evans.me.uk/node/140). > > Martin > -- > Martin J. Evans > Wetherby, UK > > _______________________________________________ > Hardware-pm mailing list > Hardware-pm at pm.org > http://mail.pm.org/mailman/listinfo/hardware-pm From bohica at ntlworld.com Thu Jul 19 13:07:24 2012 From: bohica at ntlworld.com (Martin J. Evans) Date: Thu, 19 Jul 2012 21:07:24 +0100 Subject: [Hardware-pm] pi In-Reply-To: References: Message-ID: <500868FC.1020302@ntlworld.com> On 19/07/2012 20:54, Andy Bach wrote: > On Thu, Jul 19, 2012 at 2:48 PM, Zachary Zebrowski > wrote: >> running perl Makefile.PL results in no errors... > > So, sort of sounds like cpan has some setup issue? > cpan shell and cpanplus need just too much memory. After running them for a while the process gets killed (too much memory). That is why I changed to cpanminus or building from scratch. Someone (can't remember who - perhaps ilmari) suggested setting sqlite in cpan shell but I didn't try it. Having said that I had no problems building a massive amount of C source for our ODBC drivers but it took all day to compile. Martin -- Martin J. Evans Wetherby, UK