cannot install cpan modules
Hi there,I saw many emails with the same problem, cannot install cpan modules. But no solution worked for me.I use perl 5.8.8 already installed on Mac OS Leopard 10.5. I tried this:sudo perl -MCPAN -e 'install Bundle::CPAN'Part of the error message is: CPAN.pm: Going to build P/PM/PMQS/Compress-Zlib-2.015.tar.gz -- NOT OKRunning make test Can't test without successful makeRunning make install make had returned bad status, install seems impossibleRunning install for module IO::Uncompress::BaseRunning make for P/PM/PMQS/IO-Compress-Base-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Base-2.015 Has already been processed within this sessionRunning make test Can't test without successful makeRunning make install make had returned bad status, install seems impossibleRunning install for module IO::Compress::BaseRunning make for P/PM/PMQS/IO-Compress-Base-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Base-2.015 Has already been processed within this sessionRunning make test Can't test without successful makeRunning make install make had returned bad status, install seems impossibleRunning install for module Compress::Raw::ZlibRunning make for P/PM/PMQS/Compress-Raw-Zlib-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/Compress-Raw-Zlib-2.015 Has already been processed within this sessionRunning make test Can't test without successful makeRunning make install make had returned bad status, install seems impossibleRunning make for P/PM/PMQS/IO-Compress-Zlib-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Zlib-2.015 Has already been processed within this sessionRunning make test Can't test without successful makeRunning make install make had returned bad status, install seems impossibleI tried to install cpan modules through fink, without success. I tried ActivePerl, but ppm command does not work.I am new to Perl and Mac OS. Is some installation missing? make install command does not work too.I am trying this all day long. Please some help.best regardsBianca Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
Res: cannot install cpan modules
Now, it's working. :-) I had to install Xcode and then, I have downloaded manually each package and then: * unzip it * in the terminal, go to the package directory * execute: perl makefile.pl * make test * sudo make install - Mensagem original De: Bianca Shibuya [EMAIL PROTECTED] Para: macosx@perl.org Enviadas: Quinta-feira, 11 de Setembro de 2008 16:53:58 Assunto: cannot install cpan modules Hi there, I saw many emails with the same problem, cannot install cpan modules. But no solution worked for me. I use perl 5.8.8 already installed on Mac OS Leopard 10.5. I tried this: sudo perl -MCPAN -e 'install Bundle::CPAN' Part of the error message is: CPAN.pm: Going to build P/PM/PMQS/Compress-Zlib-2.015.tar.gz -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module IO::Uncompress::Base Running make for P/PM/PMQS/IO-Compress-Base-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Base-2.015 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module IO::Compress::Base Running make for P/PM/PMQS/IO-Compress-Base-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Base-2.015 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running install for module Compress::Raw::Zlib Running make for P/PM/PMQS/Compress-Raw-Zlib-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/Compress-Raw-Zlib-2.015 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Running make for P/PM/PMQS/IO-Compress-Zlib-2.015.tar.gz Is already unwrapped into directory /Users/bianca/.cpan/build/IO-Compress-Zlib-2.015 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible I tried to install cpan modules through fink, without success. I tried ActivePerl, but ppm command does not work. I am new to Perl and Mac OS. Is some installation missing? make install command does not work too. I am trying this all day long. Please some help. best regards Bianca Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses
Re: CPAN modules on Leopard
Just to post a resolution... I manually downloaded the Class::MethodMaker module from CPAN, and manually installed it. Oddly enough, then everything worked fine. So, I guess the moral of the story is... if the CPAN interface doesn't install things correctly, try doing it manually; that may work. -- Tim Bailey |\/ Of all tyrannies, a tyranny exercised for the [EMAIL PROTECTED]|\/ good of its victims may be the most oppressive. [EMAIL PROTECTED] | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience. -- C.S. Lewis
Re: CPAN modules on Leopard
At 8:34 AM -0800 2/5/08, John Baldwin wrote: That's very strange. I'm running on a Macbook. I just ran the make and test on Class::MethodMaker within cpan and all tests passed (2 subtests skipped). I'd try cleaning out your CPAN directory to see if that helps. I assume that by my CPAN directory, you mean: /Users/timothybailey/.cpan I cleaned it out entirely, and tried doing some installs, but I am still getting errors - the same as before with running my test scripts. -- Tim Bailey |\/ Of all tyrannies, a tyranny exercised for the [EMAIL PROTECTED]|\/ good of its victims may be the most oppressive. [EMAIL PROTECTED] | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience. -- C.S. Lewis
Re: CPAN modules on Leopard
At 10:38 PM -0800 2/3/08, John Baldwin wrote: My guess is a dependency wasn't set up right. Try installing the module it's complaining about: http://search.cpan.org/~schwigon/Class-MethodMaker/lib/Class/MethodMaker.pm And see if Term::ProgressBar installs properly then. I've tried installing that as well, but it complains that it wasn't in the path either. (Seems somewhat recursive...) After forcing the install, I still get the same error (MethodMaker not in path) when running my test program or trying to install ProgressBar. cpan[1] install Class::MethodMaker CPAN: Storable loaded ok (v2.15) Going to read /Users/timothybailey/.cpan/Metadata Database was generated on Mon, 04 Feb 2008 23:30:56 GMT CPAN: YAML loaded ok (v0.66) Going to read /Users/timothybailey/.cpan/build/ DONE Found 2 old builds, restored the state of 2 Running install for module 'Class::MethodMaker' Running Build for S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.10.tar.gz Has already been unwrapped into directory /Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm Has already been made Running Build test Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2237. Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2368. Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2374. Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2237. Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2368. Use of uninitialized value in concatenation (.) or string at /Library/Perl/5.8.8/Module/Build/Base.pm line 2374. t/0-signatureok t/array..ok t/basic..ok t/diffclass..ok t/hash...ok t/newok t/redefine-warnings..ok t/scalar.ok t/v1_abstractok t/v1_boolean.Can't locate Class/MethodMaker.pm in @INC (@INC contains: /Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/blib/lib /Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/blib/arch /Users/timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm/_build/lib /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at t/v1_boolean.t line 7. BEGIN failed--compilation aborted at t/v1_boolean.t line 7. t/v1_boolean. Dubious, test returned 2 (wstat 512, 0x200) No subtests run ... and so on ... -- Tim Bailey |\/ Of all tyrannies, a tyranny exercised for the [EMAIL PROTECTED]|\/ good of its victims may be the most oppressive. [EMAIL PROTECTED] | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience. -- C.S. Lewis
Re: CPAN modules on Leopard
That's very strange. I'm running on a Macbook. I just ran the make and test on Class::MethodMaker within cpan and all tests passed (2 subtests skipped). I'd try cleaning out your CPAN directory to see if that helps. John On Monday Feb 4, 2008 7:06 PM, at 7:06 PM, Timothy Bailey wrote: I've tried installing that as well, but it complains that it wasn't in the path either. (Seems somewhat recursive...) After forcing the install, I still get the same error (MethodMaker not in path) when running my test program or trying to install ProgressBar. cpan[1] install Class ::MethodMaker CPAN : Storable loaded ok (v2.15) Going to read /Users/timothybailey/.cpan/Metadata Database was generated on Mon, 04 Feb 2008 23:30:56 GMT CPAN: YAML loaded ok (v0.66) Going to read /Users/timothybailey/.cpan/build/ DONE Found 2 old builds, restored the state of 2 Running install for module 'Class::MethodMaker' Running Build for S/SC/SCHWIGON/class-methodmaker/Class- MethodMaker-2.10.tar.gz Has already been unwrapped into directory /Users/ timothybailey/.cpan/build/Class-MethodMaker-2.10-eW3hgm Has already been made Running Build test Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2237. Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2368. Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2374. Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2237. Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2368. Use of uninitialized value in concatenation (.) or string at / Library/Perl/5.8.8/Module/Build/Base.pm line 2374. t/0-signatureok t/ array..ok t/basic..ok t/diffclass..okt/ hash...ok t/ newokt/redefine-warnings..ok t/ scalar.ok t/v1_abstractok t/v1_boolean.Can't locate Class/MethodMaker.pm in @INC (@INC contains: /Users/timothybailey/.cpan/build/Class- MethodMaker-2.10-eW3hgm/blib/lib /Users/timothybailey/.cpan/build/ Class-MethodMaker-2.10-eW3hgm/blib/arch /Users/timothybailey/.cpan/ build/Class-MethodMaker-2.10-eW3hgm/_build/lib /System/Library/Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at t/v1_boolean.t line 7. BEGIN failed--compilation aborted at t/v1_boolean.t line 7. t/v1_boolean. Dubious, test returned 2 (wstat 512, 0x200) No subtests run ... and so on ... -- Tim Bailey |\/ Of all tyrannies, a tyranny exercised for the [EMAIL PROTECTED]|\/ good of its victims may be the most oppressive. [EMAIL PROTECTED] | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience. -- C.S. Lewis
CPAN modules on Leopard
I've just bought a new Mac with Leopard preinstalled, and am getting it set up, including my Perl programs. (I've actually skipped Tiger entirely; the old computer is on Panther.) They depend on a number of CPAN modules, and I am having trouble getting the modules installed. I've installed the Developer Tools, updated CPAN, and it sort of installed Term::ProgressBar (the first module one I tried). However, it's giving me some complaints about being unable to find Class/MethodMaker.pm both when I try installs in CPAN and when I try to run my test programs. Below is an excerpt. Does anyone have any guidance? I'm not finding anything useful on the Web. Thanks your your help. cpan[4] force install Term::ProgressBar Running install for module 'Term::ProgressBar' Running Build for F/FL/FLUFFY/Term-ProgressBar-2.09.tar.gz Has already been unwrapped into directory /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH Has already been made Running Build test t/0-signature..ok t/compat...Can't locate Class/MethodMaker.pm in @INC (@INC contains: /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/arch /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib/Term/ProgressBar.pm line 195. BEGIN failed--compilation aborted at /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH/blib/lib/Term/ProgressBar.pm line 195. Compilation failed in require at t/compat.t line 73. BEGIN failed--compilation aborted at t/compat.t line 73. t/compat... Dubious, test returned 2 (wstat 512, 0x200) Failed 5/5 subtests ... and so on ... -- Tim Bailey |\/ Of all tyrannies, a tyranny exercised for the [EMAIL PROTECTED]|\/ good of its victims may be the most oppressive. [EMAIL PROTECTED] | It may be better to live under robber barons http://www.moonrise.org than under omnipotent moral busybodies. --'--,--@ The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their own conscience. -- C.S. Lewis
Re: CPAN modules on Leopard
My guess is a dependency wasn't set up right. Try installing the module it's complaining about: http://search.cpan.org/~schwigon/Class-MethodMaker/lib/Class/MethodMaker.pm And see if Term::ProgressBar installs properly then. John On Sunday Feb 3, 2008 3:41 PM, at 3:41 PM, Timothy Bailey wrote: I've just bought a new Mac with Leopard preinstalled, and am getting it set up, including my Perl programs. (I've actually skipped Tiger entirely; the old computer is on Panther.) They depend on a number of CPAN modules, and I am having trouble getting the modules installed. I've installed the Developer Tools, updated CPAN, and it sort of installed Term::ProgressBar (the first module one I tried). However, it's giving me some complaints about being unable to find Class/MethodMaker.pm both when I try installs in CPAN and when I try to run my test programs. Below is an excerpt. Does anyone have any guidance? I'm not finding anything useful on the Web. Thanks your your help. cpan[4] force install Term::ProgressBar Running install for module 'Term::ProgressBar' Running Build for F/FL/FLUFFY/Term-ProgressBar-2.09.tar.gz Has already been unwrapped into directory /Users/ timothybailey/.cpan/build/Term-ProgressBar-2.09-l4oWzH Has already been made Running Build test t/0-signature..ok t/compat...Can't locate Class/MethodMaker.pm in @INC (@INC contains: /Users/timothybailey/.cpan/build/Term-ProgressBar-2.09- l4oWzH/blib/lib [...] Failed 5/5 subtests
Re: CPAN modules ...
On Dec 31, 2005, at 7:43 PM, John Delacour wrote: At 6:49 pm -0500 31/12/05, Chris Devers wrote: On Sat, 31 Dec 2005, John Delacour wrote: print `/usr/bin/./printenv` ^^ Why the '/./' here? Isn't `/usr/bin/printenv` equivalent, clearer, and simpler? Sure, but I didn't get that far. printenv works in tcsh without the path but not in bash, so I tried that in bash, it worked and voilà. That's because in tcsh it's a built-in shell command, but in bash it invokes /usr/bin/printenv. For some reason you seem not to have /usr/bin in your path or something. -Ken
Re: CPAN modules ...
This has been an interesting discussion but, unfortunately, my first question about getting CPANPLUS to work is nowhere near resolved. I'll have to do a bit more research in that area. As for the second question about setting up my BBEdit environment, Doug McNutt's solution of putting everything I need in $HOME/.MacOSX/environment.plist has worked perfectly. After reading through BPRuntimeConfig.pdf from the Apple developer site I thought I could even be more BBEdit specific and put its environmental stuff in an LSEnvironment dictionary in /Applications/BBEdit.app/Contents/Info.plist -- but that didn't seem to work. Thanks to everyone for all the advice. Regards, Vic On 12/31/05, at 10:17 PM -0600, Ken Williams wrote: On Dec 31, 2005, at 7:43 PM, John Delacour wrote: At 6:49 pm -0500 31/12/05, Chris Devers wrote: On Sat, 31 Dec 2005, John Delacour wrote: print `/usr/bin/./printenv` ^^ Why the '/./' here? Isn't `/usr/bin/printenv` equivalent, clearer, and simpler? Sure, but I didn't get that far. printenv works in tcsh without the path but not in bash, so I tried that in bash, it worked and voilà. That's because in tcsh it's a built-in shell command, but in bash it invokes /usr/bin/printenv. For some reason you seem not to have /usr/bin in your path or something. -Ken
Re: CPAN modules ...
At 3:17 am + 31/12/05, John Delacour wrote: At 5:15 pm -0500 30/12/05, Vic Norton wrote: How can I make BBEdit's %ENV more like the system %ENV? Turn BBEdit into Terminal?... Try this: #!/usr/bin/perl print `/usr/bin/./printenv` JD
Re: CPAN modules ...
On Sat, 31 Dec 2005, John Delacour wrote: Try this: #!/usr/bin/perl print `/usr/bin/./printenv` ^^ ^^ Why the '/./' here? Isn't `/usr/bin/printenv` equivalent, clearer, and simpler? -- Chris Devers DO NOT LEAVE IT IS NOT REAL
Re: CPAN modules ...
At 6:49 pm -0500 31/12/05, Chris Devers wrote: On Sat, 31 Dec 2005, John Delacour wrote: print `/usr/bin/./printenv` ^^ Why the '/./' here? Isn't `/usr/bin/printenv` equivalent, clearer, and simpler? Sure, but I didn't get that far. printenv works in tcsh without the path but not in bash, so I tried that in bash, it worked and voilà. JD
Re: CPAN modules not included with OS X
On Dec 29, 2005, at 8:06 PM, Joel Rees wrote: Maybe it would help to tell you it ain't that simple? To mention openssl again, it can be installed in a variety of places, and it depends in part on where other things you may have installed might have wanted to put the packages they depend on. That's another reason for using a sandbox. (Using the separate perl also helps me avoid building a sandbox for my personal server, where I don't have resources for doing things the ideal way.) Hi Joel, What's a sandbox? Joe.
Re: CPAN modules not included with OS X
On Dec 29, 2005, at 7:03 PM, James Reynolds wrote: Grumble. That is exactly what I wanted to know! Thanks! Does CPAN install C libraries to /usr/local/lib or somewhere else? I could search for all new files right after a CPAN install. Anything that gets installed during 'make install' (or 'Build install' if you're using Module::Build) will be present in the blib/ directory after a 'make' (or a 'Build'). Precisely where the things from blib/ *go* during the install is a matter of how you've configured things, your system layout, etc. -Ken
Re: CPAN modules ...
Hi Chris, I have no 'FTP_PASSIVE' key in %ENV. Should I have $ENV{'FTP_PASSIVE'} = 1? Apparently this can be accomplished by inserting the two lines FTP_PASSIVE=1 export FTP_PASSIVE in my '.bash_profile' file. A second question. When I run for (sort keys %ENV) { printf %25s = %s\n, $_, $ENV{$_}; } from BBEdit, I see a small subset of the %ENV that comes from running the script in Terminal. How can I make BBEdit's %ENV more like the system %ENV? Regards, Vic On Fri, 30 Dec 2005, Joel Rees wrote: [CP_ERROR] [Mon Dec 26 14:07:55 2005] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [...] This hand installation usually works, but it would be very convenient if I could make CPANPLUS ar CPAN work. Any suggestions? Choose a less busy mirror? And/or check that passive-mode FTP is enabled? (Hint: $ENV{FTP_PASSIVE} is the one you need, if I remember right...)
Re: CPAN modules not included with OS X
On 2005.12.31, at 02:01 AM, Joseph Alotta wrote: On Dec 29, 2005, at 8:06 PM, Joel Rees wrote: Maybe it would help to tell you it ain't that simple? To mention openssl again, it can be installed in a variety of places, and it depends in part on where other things you may have installed might have wanted to put the packages they depend on. That's another reason for using a sandbox. (Using the separate perl also helps me avoid building a sandbox for my personal server, where I don't have resources for doing things the ideal way.) Hi Joel, What's a sandbox? A place where you can play with impunity. grin / If you start with the live chicken (to recklessly mix metaphors), you replicate your server machine/cluster on the internal net, where only the dev, test, evaluation, etc., crew can access it. This is the sandbox. You fix bugs and add functionality on the sandbox, then when you've tested the sandbox sufficiently, you take a backup of the sandbox for both archival and to use as the base of the next version, and mirror the sandbox back to the live server/cluster. If you start with the egg, you set up the sandbox before you set up anything live on the external network, and the initial server/cluster is basically built by taking a backup of the sandbox and restoring the backup to the hardware that will be the live system. One of the things that having the sandbox helps with is that you can take a diff of the sandbox and the current base system and use the diff to figure out what doesn't need to be copied when mirroring back to the live system. (The diff also helps with security analysis of the new version.) Using jails, virtual servers, separate installs of perl and other components, careful partitioning and the like, you can often put the sandbox on workstations, but only if you are willing to trust the employees whose workstations you use.
Re: CPAN modules ...
At 17:15 -0500 12/30/05, Vic Norton wrote: A second question. When I run for (sort keys %ENV) { printf %25s = %s\n, $_, $ENV{$_}; } from BBEdit, I see a small subset of the %ENV that comes from running the script in Terminal. How can I make BBEdit's %ENV more like the system %ENV? I'm not so sure there IS a system environment. Login to Aqua and login to BSD are entirely different thingies. The likes of /etc/profile or /etc/cshlogin and similar things which I have probably spelled wrong seem to override whatever the system sets up in the first place. They can be removed or edited. You can set up an environment, that pretty much sticks, by creating a file and directory $HOME/.MacOSX/environment.plist where you can set the environment so that it is the same whether you enter via some Cocoa app - BBEdit - or through Terminal.app. Apple has some info on that and a search in the developer area for environment.plist should show it up. Ask off line if you'd like a copy of mine. But even if you set it there those damnable /etc/* startup files can screw it all up. And. . . You are running that script from a BBEdit worksheet are you not? If you're running it as a filter from the #! menu all bets are off. You are basically starting a brand new non-daughter shell and it probably doesn't get any variables you have changed in BBEdit. -- -- Science is the business of discovering and codifying the rules and methods employed by the Intelligent Designer. Religions provide myths to mollify the anxiety experienced by those who choose not to participate. --
Re: CPAN modules ...
At 5:15 pm -0500 30/12/05, Vic Norton wrote: A second question. When I run for (sort keys %ENV) { printf %25s = %s\n, $_, $ENV{$_}; } from BBEdit, I see a small subset of the %ENV that comes from running the script in Terminal. How can I make BBEdit's %ENV more like the system %ENV? Turn BBEdit into Terminal? A swallow's environment is not the same as a toad's, nor a CGI's the same as BBedit's or Terminal's. You're asking for doors in a lake. Enough metaphors :-) JD
CPAN modules not included with OS X
Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. -- Thanks, James Reynolds University of Utah Student Computing Labs [EMAIL PROTECTED] 801-585-9811
Re: CPAN modules not included with OS X
On Thu, 29 Dec 2005, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. No vendor includes a full CPAN library with the stock Perl. Linux, Solaris, etc, they're all doing the same thing. If you install your own copy of Perl, it too will only have a partial standard core fraction of CPAN. Get used to CPAN. You aren't going to find a vendor that provides a full CPAN install -- new ones appear daily, so keeping up is impossible anyway. There has been talk of including fewer CPAN modules with future versions of Perl, to get people into the habit of installing things when previously they might not have wanted to go beyond the core modules. *shrug* -- Chris Devers DO NOT LEAVE IT IS NOT REAL
Re: CPAN modules not included with OS X
On Thu, 29 Dec 2005, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. No vendor includes a full CPAN library with the stock Perl. Linux, Solaris, etc, they're all doing the same thing. If you install your own copy of Perl, it too will only have a partial standard core fraction of CPAN. Get used to CPAN. You aren't going to find a vendor that provides a full CPAN install -- new ones appear daily, so keeping up is impossible anyway. Hm. I really do not want to install the Dev Tools on my Mac OS X Server boxes. I have been getting around this by installing the files on a client machine and coping them to the servers, but I don't believe this is ideal. Does anyone know what problems I could be causing? James
Re: CPAN modules not included with OS X
On Thu, 29 Dec 2005, James Reynolds wrote: : : Hm. I really do not want to install the Dev Tools on my Mac OS X Server : boxes. I have been getting around this by installing the files on a client : machine and coping them to the servers, but I don't believe this is ideal. : Does anyone know what problems I could be causing? How about running CPAN on a sandbox machine and rsync'ing /Library/Perl with the servers? -- Please Do Not Throw Sausage Pizza Away
RE: CPAN modules not included with OS X
On Thu, 29 Dec 2005, James Reynolds wrote: On Thu, 29 Dec 2005, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. No vendor includes a full CPAN library with the stock Perl. Linux, Solaris, etc, they're all doing the same thing. If you install your own copy of Perl, it too will only have a partial standard core fraction of CPAN. Get used to CPAN. You aren't going to find a vendor that provides a full CPAN install -- new ones appear daily, so keeping up is impossible anyway. Hm. I really do not want to install the Dev Tools on my Mac OS X Server boxes. I have been getting around this by installing the files on a client machine and coping them to the servers, but I don't believe this is ideal. Does anyone know what problems I could be causing? I think this should be working fine, and should also gives you the most control over the exact version you are installing. Another option to avoid building modules yourself is to use ActivePerl. It includes the Perl package manager, which allows you to install pre-compiled modules on your system without having to compile them yourself. However, the PPM repository only includes binaries for modules that compiled and ran their regression tests without problems in an automated manner, so not all modules may be available. You can check the compilation status here: http://ppm.activestate.com/BuildStatus/5.8-A.html It is pretty easy to replicate a PPM module set to a different machine: * Install and run the ppmprofile.pl script: ppm install PPM-Profile ppmprofile save * copy the generated profile.xml file to your target machine and run ppm install PPM-Profile ppmprofile restore This installs all the same modules from the PPM repository that had been installed on the original machine. However, if the module version has been updated on the repository, then you will be installing a later version of that module. Cheers, -Jan
Re: CPAN modules not included with OS X
Get used to CPAN. You aren't going to find a vendor that provides a full CPAN install -- new ones appear daily, so keeping up is impossible anyway. Hm. I really do not want to install the Dev Tools on my Mac OS X Server boxes. Why not? I'm not suggesting you install the dev tools, but if your goal is to reduce the profile available to cracking, you should not be wanting a full CPAN install anyway. A full CPAN install would be in many ways like having Dev Tools installed, and in fact would not be very meaningful without the Dev Tools. I have been getting around this by installing the files on a client machine and coping them to the servers, but I don't believe this is ideal. That actually is the ideal, after a manner of speaking. Or it could be. You need a backup and you need a sandbox to test things you want to change before you change them. The installed server should be a mirror of the sandbox, except for the databases. The sandbox can be kept on a hard disk that is kept off-line during normal operations, freeing the machine that actually runs the sandbox to be used as a normal administrator's dev box. Does anyone know what problems I could be causing? Only your hairdresser knows for sure. ;-)
Re: CPAN modules not included with OS X
Many modules link to C libraries that must be installed as well. Simply copying the Perl directory over won't get everything that is needed. On Thu, 2005-12-29 at 13:05, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. -- Thanks, James Reynolds University of Utah Student Computing Labs [EMAIL PROTECTED] 801-585-9811
Re: CPAN modules not included with OS X
Grumble. That is exactly what I wanted to know! Thanks! Does CPAN install C libraries to /usr/local/lib or somewhere else? I could search for all new files right after a CPAN install. James At 4:58 PM -0800 12/29/05, Danny Hembree wrote: Many modules link to C libraries that must be installed as well. Simply copying the Perl directory over won't get everything that is needed. On Thu, 2005-12-29 at 13:05, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. -- Thanks, James Reynolds University of Utah Student Computing Labs [EMAIL PROTECTED] 801-585-9811
Re: CPAN modules not included with OS X
Grumble. That is exactly what I wanted to know! Thanks! Does CPAN install C libraries to /usr/local/lib or somewhere else? I could search for all new files right after a CPAN install. James Another point to remember is that some CPAN modules that depend upon C libraries already being install may complain if the compiler flags used to build that C library are different from that used to build the C code associated w/the Perl module you are installing (For example, I'm thinking of the module Net::SSLeay which requires openssl ) Ed At 4:58 PM -0800 12/29/05, Danny Hembree wrote: Many modules link to C libraries that must be installed as well. Simply copying the Perl directory over won't get everything that is needed. On Thu, 2005-12-29 at 13:05, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. -- Thanks, James Reynolds University of Utah Student Computing Labs [EMAIL PROTECTED] 801-585-9811 -- E. J. Mansky II Eikonal Research Institute Bend, Oregon
Re: CPAN modules ...
Speaking of CPAN, I've never had much luck using 'cpan' to install Perl modules. Most of my stuff is on an iMac G3. Now I've got a new iMac G5. I've installed CPANPLUS on my G5, but that hasn't worked so far. Perhaps this has something to do with sudo. I do not and will not operate as root. I tried to install LWP with CPANPLUS. These are the kind of messages I got back. [CP_MSG] [Mon Dec 26 14:07:52 2005] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' [CP_ERROR] [Mon Dec 26 14:07:55 2005] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [CP_MSG] [Mon Dec 26 14:07:55 2005] Trying to get 'http://www.cpan.org/authors/id/G/GA/GAAS/CHECKSUMS' [CP_ERROR] [Mon Dec 26 14:07:56 2005] Fetching of 'http://www.cpan.org/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [CP_MSG] [Mon Dec 26 14:07:56 2005] Trying to get 'ftp://ftp.nl.uu.net/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' [CP_ERROR] [Mon Dec 26 14:08:02 2005] Fetching of 'ftp://ftp.nl.uu.net/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [CP_MSG] [Mon Dec 26 14:08:02 2005] Trying to get 'ftp://cpan.valueclick.com/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' [CP_ERROR] [Mon Dec 26 14:10:02 2005] Fetching of 'ftp://cpan.valueclick.com/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [CP_ERROR] [Mon Dec 26 14:10:09 2005] Could not fetch 'CHECKSUMS' file [CP_ERROR] [Mon Dec 26 14:10:09 2005] Checksum error for 'libwww-perl-5.805.tar.gz' -- will not trust package Since then I've installed LWP by hand, with the usual perl Makefile.PL make make test sudo make install This hand installation usually works, but it would be very convenient if I could make CPANPLUS ar CPAN work. Any suggestions? Regards, Vic
Re: CPAN modules ...
[CP_ERROR] [Mon Dec 26 14:07:55 2005] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [...] This hand installation usually works, but it would be very convenient if I could make CPANPLUS ar CPAN work. Any suggestions? Choose a less busy mirror?
Re: CPAN modules not included with OS X
On Thu, 2005-12-29 at 17:03, James Reynolds wrote: Grumble. That is exactly what I wanted to know! Thanks! Does CPAN install C libraries to /usr/local/lib or somewhere else? I could search for all new files right after a CPAN install. James This gets hairy. Due OSX's unique directory layout, it's hard to know where things are. The /sw directory tree is a stab at trying to sort this out. I also use the Darwin ports, yet another directory tree. Then some things, like MySQL, are put in the usual places. You can also have different versions in different trees. I've really found no way around having the developement system on the server. At 4:58 PM -0800 12/29/05, Danny Hembree wrote: Many modules link to C libraries that must be installed as well. Simply copying the Perl directory over won't get everything that is needed. On Thu, 2005-12-29 at 13:05, James Reynolds wrote: Does anyone know why Apple chooses or not chooses to include modules? I really dislike installing them. And more and more I find I need to. So how would I go about pressuring Apple to include more. -- Thanks, James Reynolds University of Utah Student Computing Labs [EMAIL PROTECTED] 801-585-9811
Re: CPAN modules not included with OS X
On 2005.12.30, at 10:03 AM, James Reynolds wrote: Grumble. That is exactly what I wanted to know! Thanks! Does CPAN install C libraries to /usr/local/lib or somewhere else? Maybe it would help to tell you it ain't that simple? To mention openssl again, it can be installed in a variety of places, and it depends in part on where other things you may have installed might have wanted to put the packages they depend on. That's another reason for using a sandbox. It reduces the number of places you have to look for things to copy, and, more importantly, reduces the necessity of trying to determine what not to copy. For what it's worth, I don't use the perl interpreter installed by Apple to do my server stuff with. I probably could if I wanted to learn an awful lot about how it's set up, but I find it easier to leave the system alone and install a separate perl for the server, use the #! line to point to the one to use, and set the environment variables appropriately in the users I do my dev work under so the shell I'm using finds the right perldoc for my login user. (Using the separate perl also helps me avoid building a sandbox for my personal server, where I don't have resources for doing things the ideal way.)
Re: CPAN modules ...
On Fri, 30 Dec 2005, Joel Rees wrote: [CP_ERROR] [Mon Dec 26 14:07:55 2005] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GA/GAAS/CHECKSUMS' failed: Command failed: [...] This hand installation usually works, but it would be very convenient if I could make CPANPLUS ar CPAN work. Any suggestions? Choose a less busy mirror? And/or check that passive-mode FTP is enabled? (Hint: $ENV{FTP_PASSIVE} is the one you need, if I remember right...) -- Chris Devers DO NOT LEAVE IT IS NOT REAL
Re: Non-CPAN modules??
On Wednesday, September 11, 2002, at 07:02 AM, Steven Bach wrote: I grabbed the tarball to take a look at it. The INSTALL file say you have to hand modify the Makefile to get it to point to where you want. Since there are only seven files, there is no compile involved, and it is pretty clear where they all go, you might just consider installing the files by hand. It looks like spamtrack-wrapper need to be edited by hand too. Yes, after a small amount of tinkering I was able to put things where I wanted them, more or less. However, the simple test suggested didn't work. I THINK I know why, and it should just be a matter of a wee bit more tinkering. --B
Non-CPAN modules??
Okay, I'm in stupid question mode, so I'll keep this short. I'm working on ways to track spam (where most people just want to filter it), and looking around noticed a nifty bit of Perl code which appears to do most of what I want, and could easily be coerced into doing the rest as well... http://www.unicom.com/sw/spamtrak/ Alas, I'm so used to just grabbing things from CPAN that I'm not sure where to begin with installing this puppy by hand. I appear to have all the prerequisites as described in the README and INSTALL files, but I know there are some signifigant differences in file structure under Darwin, and obviously don't want to mess things up. So if there's anyone out there willing to give me a breif walk-through, or even just point me at a FAQ, I'd be much obliged. --B
Re: Non-CPAN modules??
On Wednesday, September 11, 2002, at 12:26 , Brian McNett wrote: SNIP Alas, I'm so used to just grabbing things from CPAN that I'm not sure where to begin with installing this puppy by hand. I appear to have all the prerequisites as described in the README and INSTALL files, but I know there are some signifigant differences in file structure under Darwin, and obviously don't want to mess things up. So if there's anyone out there willing to give me a breif walk-through, or even just point me at a FAQ, I'd be much obliged. You mean like: To install the module: perl Makefile.PL make make test make install -- Lou Moran http://ellem.dyn.dhs.org:5281/resume/lmoran2002.html