MacOSX-File-0.71
Installation of MacOSX-File-0.71 on 10.6.6 (Perl 5.10.0) fails with the following errors: Kanga:MacOSX-File-0.71 alanfry$ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for MacOSX::File::Catalog Writing Makefile for MacOSX::File::Copy Writing Makefile for MacOSX::File::Info Writing Makefile for MacOSX::File::Spec Writing Makefile for MacOSX::File Kanga:MacOSX-File-0.71 alanfry$ make cp File.pm blib/lib/MacOSX/File.pm cp File/Constants.pm blib/lib/MacOSX/File/Constants.pm AutoSplitting blib/lib/MacOSX/File/Constants.pm (blib/lib/auto/MacOSX/File/Constants) cp Catalog.pm ../blib/lib/MacOSX/File/Catalog.pm AutoSplitting ../blib/lib/MacOSX/File/Catalog.pm (../blib/lib/auto/MacOSX/File/Catalog) /usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp -typemap /System/Library/Perl/5.10.0/ExtUtils/typemap Catalog.xs Catalog.xsc mv Catalog.xsc Catalog.c gcc-4.2 -c -I../ -I/Developer/Headers/FlatCarbon -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\0.70\ -DXS_VERSION=\0.70\ -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE Catalog.c Catalog.xs: In function ‘xs_getcatalog’: Catalog.xs:70: error: subscripted value is neither array nor pointer Catalog.xs: In function ‘xs_setcatalog’: Catalog.xs:181: error: subscripted value is neither array nor pointer Catalog.xs: In function ‘XS_MacOSX__File__Catalog_xs_setcatalog’: Catalog.xs:263: warning: assignment makes pointer from integer without a cast In file included from Catalog.xs:17: ../common/macdate.c: In function ‘D2UDT’: ../common/macdate.c:30: warning: integer constant is too large for ‘long’ type Catalog.xs: In function ‘xs_setcatalog’: Catalog.xs:155: warning: ‘FSpRstFLock’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:10257) Catalog.xs:231: warning: ‘FSpSetFLock’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:10241) Catalog.xs: In function ‘XS_MacOSX__File__Catalog_xs_setcatalog’: Catalog.xs:263: warning: assignment makes pointer from integer without a cast In file included from Catalog.xs:17: ../common/macdate.c: In function ‘D2UDT’: ../common/macdate.c:30: warning: integer constant is too large for ‘long’ type Catalog.xs: In function ‘xs_setcatalog’: Catalog.xs:155: warning: ‘FSpRstFLock’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:10257) Catalog.xs:231: warning: ‘FSpSetFLock’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:10241) Catalog.xs: In function ‘XS_MacOSX__File__Catalog_xs_setcatalog’: Catalog.xs:263: warning: assignment makes pointer from integer without a cast lipo: can't open input file: /var/folders/N8/N8iepXMZEmGqNnd+KxwGgE+++TI/-Tmp-//ccyaLHkm.out (No such file or directory) Can anyone suggest a fix? Or does anyone know how to contact the author? The module was used in various script on 10.5.8 (Perl 5.8.0). The difficulties seem to have arisen in the system upgrade to Snow Leopard. I would be grateful for any help. Alan Fry
Re: MacOSX-File-0.71
On Sun, Jan 16, 2011 at 05:42, Alan Fry a...@afco.demon.co.uk wrote: snip Can anyone suggest a fix? Or does anyone know how to contact the author? snip Have you tried dankogai+c...@gmail.com ? His CPAN author's page is http://search.cpan.org/~dankogai/ You can find an author's CPAN page on the right under the CPAN logo (the link is the author's name). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.
Re: MacOSX-File-0.71
At 10:42 + 16/01/2011, Alan Fry wrote: Installation of MacOSX-File-0.71 on 10.6.6 (Perl 5.10.0) fails with the following errors: Kanga:MacOSX-File-0.71 alanfry$ perl Makefile.PL... I get a different sort of failure with 5.12.2 on 10.6.6: 14:30:58 User:jd Cwd: ~ ➔ cd /usr/local/bin 14:31:07 User:jd Cwd: /usr/local/bin ➔ sudo ./cpan Writing Makefile for MacOSX::File cp File.pm blib/lib/MacOSX/File.pm cp File/Constants.pm blib/lib/MacOSX/File/Constants.pm AutoSplitting blib/lib/MacOSX/File/Constants.pm (blib/lib/auto/MacOSX/File/Constants) cp Catalog.pm ../blib/lib/MacOSX/File/Catalog.pm AutoSplitting ../blib/lib/MacOSX/File/Catalog.pm (../blib/lib/auto/MacOSX/File/Catalog) /usr/local/bin/perl /usr/local/lib/perl5/5.12.2/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.12.2/ExtUtils/typemap Catalog.xs Catalog.xsc mv Catalog.xsc Catalog.c cc -c -I../ -I/Developer/Headers/FlatCarbon -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -O3 -DVERSION=\0.70\ -DXS_VERSION=\0.70\ -I/usr/local/lib/perl5/5.12.2/darwin-2level/CORE Catalog.c Catalog.xs: In function 'xs_getcatalog': Catalog.xs:70: error: subscripted value is neither array nor pointer Catalog.xs: In function 'xs_setcatalog': Catalog.xs:181: error: subscripted value is neither array nor pointer Catalog.xs: In function 'XS_MacOSX__File__Catalog_xs_setcatalog': Catalog.xs:263: warning: assignment makes pointer from integer without a cast make[1]: *** [Catalog.o] Error 1 make: *** [subdirs] Error 2 DANKOGAI/MacOSX-File-0.71.tar.gz /usr/bin/make -- NOT OK Can anyone suggest a fix? Or does anyone know how to contact the author? dankogai+c...@gmail.com JD
Re: MacOSX-File-0.71
On 2011-01-16 [+0900 JST], at 7:42 PM, Alan Fry wrote: Installation of MacOSX-File-0.71 on 10.6.6 (Perl 5.10.0) fails with the following errors: defaults write com.apple.versioner.perl Version 5.8.9 make Makefile.PL make make test [...] Failed Test Stat Wstat Total Fail List of Failed --- t/catalog.t2 512 7 14 1-7 t/copy.t 2 512 5 10 1-5 t/info.t 2 51210 20 1-10 t/spec.t 2 512 5 10 1-5 Failed 4/5 test scripts. 27/29 subtests failed. Files=5, Tests=29, 1 wallclock secs ( 0.15 cusr + 0.05 csys = 0.20 CPU) You can still install it by 'sudo make install' but... Kino
Need some help on installing modules...
Hi, It has been about 12 years since I have had to think about Perl I have an iPad and I have a Postgresql database on my home server. I have turned on the MacOS(client) VPN on the mac mini that I use as my home server and can access my home network in a secure fashion... I would like to be able to easily access my database running on this server from my iPad. It turns out that once upon a time I wrote a perl cgi that allowed me to access postgresql and display the results of selections in a html table. It appears that I need to install DBI and DBD for Postgresql. Unfortunately I have pretty much forgotten most of my Perl ( Sh*t happens when you get into your seventies...) Could some kind soul give me a quick guide on how to install the necessary modules to enable the cgi? I have a fat libpq installed... The perl script rmtpgsql.cgi is located here: http://homepage.mac.com/levanj/Perl/ If you use Postqresql and have the dbd stuff installed and are bored you might give it a whirl and let me know if it still works. If I can get it working then I could use Safari on the iPad to provide easy viewing of my personal database. Thanks, Jerry
Re: Need some help on installing modules...
At 11:13 -0500 16/01/2011, Levan, Jerry wrote: I have an iPad and I have a Postgresql database on my home server. I have turned on the MacOS(client) VPN on the mac mini that I use as my home server and can access my home network in a secure fashion... It turns out that once upon a time I wrote a perl cgi that allowed me to access postgresql and display the results of selections in a html table. It appears that I need to install DBI and DBD for Postgresql. Unfortunately I have pretty much forgotten most of my Perl ( Sh*t happens when you get into your seventies...) Could some kind soul give me a quick guide on how to install the necessary modules to enable the cgi? Presuming you have the developer tools installed then use CPAN. I've recently installed DBI and DBD::SQLite on my Mac Mini without any complaints. I see that I am excluded from getting DBD:Pg because I can't answer a simple question: Configuring DBD::Pg 2.17.2 Path to pg_config? You tell me! Use of uninitialized value $ENV{POSTGRES_HOME} ... But no doubt as a user of Pg and 4 years my senior you will be able to answer it. 21:41:50 User:jd Cwd: /usr/lib ➔ sudo cpan Password: Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1] install DBI DBD::Pg CPAN: Storable loaded ok (v2.18) JD
Re: Need some help on installing modules...
On Jan 16, 2011, at 4:53 PM, John Delacour wrote: At 11:13 -0500 16/01/2011, Levan, Jerry wrote: I have an iPad and I have a Postgresql database on my home server. I have turned on the MacOS(client) VPN on the mac mini that I use as my home server and can access my home network in a secure fashion... It turns out that once upon a time I wrote a perl cgi that allowed me to access postgresql and display the results of selections in a html table. It appears that I need to install DBI and DBD for Postgresql. Unfortunately I have pretty much forgotten most of my Perl ( Sh*t happens when you get into your seventies...) Could some kind soul give me a quick guide on how to install the necessary modules to enable the cgi? Presuming you have the developer tools installed then use CPAN. I've recently installed DBI and DBD::SQLite on my Mac Mini without any complaints. I see that I am excluded from getting DBD:Pg because I can't answer a simple question: Configuring DBD::Pg 2.17.2 Path to pg_config? You tell me! Use of uninitialized value $ENV{POSTGRES_HOME} ... But no doubt as a user of Pg and 4 years my senior you will be able to answer it. 21:41:50 User:jd Cwd: /usr/lib ➔ sudo cpan Password: Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1] install DBI DBD::Pg CPAN: Storable loaded ok (v2.18) JD I compiled postgresql ( 8.4.4) myself and pg_config is living in /usr/local/bin but I have set /usr/local/bin as the target for all of the 'binarys' for the install. I am not sure how to use cpan properly ( espcially the install part ) I got a cpan shell by perl -MCPAN -e shell and did a 'install Bundle::DBD::Pg After much stuff flew by the install failed because I did not have root access... I did a sudo -s and restarted cpan. I did the install again and did not notice that DBD::Pg was installed ( DBI evidently was ok... I then did a 'install DBD:Pg' and it appeared that some errors were made and the install did not take place. I went ahead and did a force install and much to my surprise, my rempgsql.cgi worked! I have been able to connect to my db via http using the VPN and have done selects and inserts successfully. ( The auxiliary documentation is missing and the describe function does not work for schema qualified names). Safari forces all of the columns to fit on the screen which can make for very small entires ;( but I can zoom the window and read the table ok. The highest version of DBD::Pg I found was was 2.17.2 Is doing a: sudo perl -MCPAN -e shell The standard way of preparing to install modules? Seems like root might only be needed for actual installation... Thanks Jerry
Re: Need some help on installing modules...
At 17:29 -0500 16/01/2011, Levan, Jerry wrote: Is doing a: sudo perl -MCPAN -e shell The standard way of preparing to install modules? Seems like root might only be needed for actual installation... With sudo you are superuser; that's quite good enough. I never do it that way. I just type sudo cpan, as I said. In fact I don't usually do that because I work mainly with my own installation of perl, so I do $ cd /usr/local/bin; sudo ./cpan in order to get the modules installed where I want them and not in the Apple installation. I wouldn't trust Apple to overwrite their own installation. I trust them to take my money and not much else. JD