Mac::Glue script
Hi, I've been thinking about installing Mac::Glue to do the following: The script will open Internet Connect, dial a number (given by the script). When a connection is established, a sound file will be played 5 X (or what ever number of repetitions). After the connection is lost (phone is hung up after listening to the sound file), the connection is closed, Internet Connect quits and the script ends. Is Mac::Glue the right tool for this job? Is there a script already in existence that does the above? Is what I am wanting to do even possible? Thanks for your input, Mark
Re: Mac::Glue script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: > The script will open Internet Connect, dial a number (given by the > script). I don't know if you can do that with Internet Connect. This sorta works: my $ic = new Mac::Glue 'Internet Connect'; my $conn = $ic->prop('BlueTooth configuration')->get; my $status = $conn->prop('status'); my $state = $status->prop('state'); my $number = '*99#'; $conn->connect(to_telephone_number => $number) if $state->get == 0; while (1) { last if $state->get == 8; sleep 1; } (That works for my Bluetooth modem, you can try it with 'PPP configuration' too, I'm sure it should work the same.) But in my test, it dials the main configuration no matter what the value of $number. And I cannot select multiple configurations. (These are apparent limitations in Internet Config itself, not Mac::Glue.) > When a connection is established, a sound file will be played > 5 X (or what ever number of repetitions). You can do this to some degree with Mac::Sound. I think you can't do it with any old sound, that you need to have it in a resource file. The Sound.t file shows an example. Another option is to use SysBeep(30) or somesuch, to just get the system beep. > After the connection is lost > (phone is hung up after listening to the sound file), the connection is > closed, Internet Connect quits and the script ends. Just keep checking $state->get until it is false, apparently. I didn't look too hard to get an accurate and complete list of $state values. It's 0 when not connected, 8 when connected, and 1-7 while in different connection phases (dialing, authentication, etc.). -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
Hi Chris, Thanks for the input. I'll start working on it and see what I can come up with. One question: Is Mac::Sound a module? I've not heard of it. Thanks, Mark On Apr 26, 2005, at 8:24 AM, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: The script will open Internet Connect, dial a number (given by the script). I don't know if you can do that with Internet Connect. This sorta works: my $ic = new Mac::Glue 'Internet Connect'; my $conn = $ic->prop('BlueTooth configuration')->get; my $status = $conn->prop('status'); my $state = $status->prop('state'); my $number = '*99#'; $conn->connect(to_telephone_number => $number) if $state->get == 0; while (1) { last if $state->get == 8; sleep 1; } (That works for my Bluetooth modem, you can try it with 'PPP configuration' too, I'm sure it should work the same.) But in my test, it dials the main configuration no matter what the value of $number. And I cannot select multiple configurations. (These are apparent limitations in Internet Config itself, not Mac::Glue.) When a connection is established, a sound file will be played 5 X (or what ever number of repetitions). You can do this to some degree with Mac::Sound. I think you can't do it with any old sound, that you need to have it in a resource file. The Sound.t file shows an example. Another option is to use SysBeep(30) or somesuch, to just get the system beep. After the connection is lost (phone is hung up after listening to the sound file), the connection is closed, Internet Connect quits and the script ends. Just keep checking $state->get until it is false, apparently. I didn't look too hard to get an accurate and complete list of $state values. It's 0 when not connected, 8 when connected, and 1-7 while in different connection phases (dialing, authentication, etc.). -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: > Thanks for the input. I'll start working on it and see what I can come > up with. One question: Is Mac::Sound a module? I've not heard of it. It's included with Mac-Carbon, which is a prereq for Mac::Glue. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
Hi Chris, I tried to install Mac::Glue and received an error. Here is the command I used: cpan Mac::Glue It looks like the cpan module initialiezed: /Users/markwhee/.cpan/CPAN/MyConfig.pm initialized. and then gave me the option for manual or auto configuration. I chose auto, as I am not familiar with this process. I've never installed a module using cpan before and thought I'd give it a try. After automatically entering in info, it tried to download and install Mac::Glue. Here is the terminal output of that. --- Running install for module Mac::Glue Running make for C/CN/CNANDOR/Mac-Glue-1.23.tar.gz LWP not available Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/id/C/CN/CNANDOR/Mac-Glue -1.23.tar.gz CPAN: Digest::MD5 loaded ok LWP not available Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/id/C/CN/CNANDOR/CHECKSUMS Checksum for /Users/markwhee/.cpan/sources/authors/id/C/CN/CNANDOR/Mac-Glue -1.23.tar.gz ok Scanning cache /Users/markwhee/.cpan/build for sizes Mac-Glue-1.23/ Mac-Glue-1.23/Changes Mac-Glue-1.23/ex/ Mac-Glue-1.23/ex/00_README Mac-Glue-1.23/ex/address_book Mac-Glue-1.23/ex/appleworks_stuff Mac-Glue-1.23/ex/bettertelnet_login Mac-Glue-1.23/ex/dialog_director_more_lists Mac-Glue-1.23/ex/dialog_director_stuff Mac-Glue-1.23/ex/eudora_make_hidden Mac-Glue-1.23/ex/eudora_send_email Mac-Glue-1.23/ex/filemaker_extract_data Mac-Glue-1.23/ex/finder_clean_up Mac-Glue-1.23/ex/finder_get_system_folder_files Mac-Glue-1.23/ex/finder_label Mac-Glue-1.23/ex/finder_label_and_beep Mac-Glue-1.23/ex/finder_label_and_beep_cool_version Mac-Glue-1.23/ex/finder_volume_names Mac-Glue-1.23/ex/handle_errors Mac-Glue-1.23/ex/interarchy_stuff Mac-Glue-1.23/ex/itunes Mac-Glue-1.23/ex/netscape_open_window Mac-Glue-1.23/ex/progress_bar_stuff Mac-Glue-1.23/ex/sherlock_search_drive Mac-Glue-1.23/ex/sherlock_search_internet Mac-Glue-1.23/ex/simple_text_and_prefab_player Mac-Glue-1.23/ex/url_access Mac-Glue-1.23/Glue.pm Mac-Glue-1.23/lib/ Mac-Glue-1.23/lib/Mac/ Mac-Glue-1.23/lib/Mac/AETE/ Mac-Glue-1.23/lib/Mac/AETE/App.pm Mac-Glue-1.23/lib/Mac/AETE/Dialect.pm Mac-Glue-1.23/lib/Mac/AETE/Format/ Mac-Glue-1.23/lib/Mac/AETE/Format/Converter.pm Mac-Glue-1.23/lib/Mac/AETE/Format/Dictionary.pm Mac-Glue-1.23/lib/Mac/AETE/Format/Glue.pm Mac-Glue-1.23/lib/Mac/AETE/Parser.pm Mac-Glue-1.23/lib/Mac/Glue/ Mac-Glue-1.23/lib/Mac/Glue/Common.pm Mac-Glue-1.23/make_glues Mac-Glue-1.23/Makefile.PL Mac-Glue-1.23/MANIFEST Mac-Glue-1.23/MANIFEST.SKIP Mac-Glue-1.23/README Mac-Glue-1.23/scripts/ Mac-Glue-1.23/scripts/gluedialect.PL Mac-Glue-1.23/scripts/gluedoc.PL Mac-Glue-1.23/scripts/glueedit.PL Mac-Glue-1.23/scripts/gluemac.PL Mac-Glue-1.23/scripts/gluescriptadds.PL Mac-Glue-1.23/scripts/show_glue_pods Mac-Glue-1.23/t/ Mac-Glue-1.23/t/glue.t Mac-Glue-1.23/t/pod.t CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite MLDBM 0 not found. Warning: prerequisite Mac::AppleEvents 1.3 not found. Warning: prerequisite Mac::AppleEvents::Simple 1.14 not found. Warning: prerequisite Mac::Apps::Launch 1.9 not found. Warning: prerequisite Mac::Errors 0.91 not found. Warning: prerequisite Mac::Files 1.09 not found. Warning: prerequisite Mac::Processes 1.04 not found. Warning: prerequisite Time::Epoch 0.02 not found. Error: Unable to locate installed Perl libraries or Perl source code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem. (You get this message, because MakeMaker could not find "/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h") # Looks like your test died before it could output anything. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install - What am I missing? Do I need to install the Developer Tools? Any help would be appreciated. Thanks very much, Mark On Apr 26, 2005, at 8:24 AM, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: The script will open Internet Connect, dial a number (given by the script). I don't know if you can do that with Internet Connect. This sorta works: my $ic = new Mac::Glue 'Internet Connect'; my $conn = $ic->prop('BlueTooth configuration')->get; my $status = $conn->prop('status'); my $state = $status->prop('state'); my $number = '*99#'; $conn->connect(to_telephone_number => $number) if $state->get == 0; while (1) { last if $state->get == 8; sleep 1; } (That works for my Blu
Re: Mac::Glue script
On Apr 27, 2005, at 12:22 PM, Mark Wheeler wrote: Error: Unable to locate installed Perl libraries or Perl source code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem. (You get this message, because MakeMaker could not find "/System/ Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h") # Looks like your test died before it could output anything. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install -- --- What am I missing? Do I need to install the Developer Tools? Any help would be appreciated. You appear to be running Panther, so what you want to install is Xcode. That's what used to be called "Developer Tools" on Jaguar and older - Apple renamed it. And to make matters even more confusing, Xcode is also the name of the IDE app that's included with the Xcode package... sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
Re: Mac::Glue script
On Apr 27, 2005, at 9:35 AM, Sherm Pendley wrote: You appear to be running Panther, so what you want to install is Xcode. That's what used to be called "Developer Tools" on Jaguar and older - Apple renamed it. And to make matters even more confusing, Xcode is also the name of the IDE app that's included with the Xcode package... sherm-- -- So I need to install Xcode and then: cpan Mac::Glue again in the terminal. Is that right? I'm assuming the Xcode installation will include those missing modules, and the then Mac::Glue will install/build correctly. Thanks, Mark
Re: Mac::Glue script
On Apr 27, 2005, at 12:50 PM, Mark Wheeler wrote: So I need to install Xcode and then: cpan Mac::Glue again in the terminal. Is that right? Basically. However you install this or other modules, you'll need to install Xcode first. I'm assuming the Xcode installation will include those missing modules No, Xcode doesn't install any Perl modules at all. All it does is install the tools and header files that will allow the CPAN shell to compile modules. The CPAN shell should also resolve any dependencies, and install the prerequisite modules too. sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
Re: Mac::Glue script
Got it. Thanks. I'll give it a go. Mark On Apr 27, 2005, at 12:50 PM, Mark Wheeler wrote: So I need to install Xcode and then: cpan Mac::Glue again in the terminal. Is that right? Basically. However you install this or other modules, you'll need to install Xcode first. I'm assuming the Xcode installation will include those missing modules No, Xcode doesn't install any Perl modules at all. All it does is install the tools and header files that will allow the CPAN shell to compile modules. The CPAN shell should also resolve any dependencies, and install the prerequisite modules too. sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
Re: Mac::Glue script
Hi all, OK, I installed Xcode - 1.1 then upgraded to 1.5, and ran the cpan Mac::Glue again and still had problems. Here are snipits of the the output: Removing previously used /Users/markwhee/.cpan/build/Mac-Glue-1.23 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite MLDBM 0 not found. Warning: prerequisite Mac::AppleEvents 1.3 not found. Warning: prerequisite Mac::AppleEvents::Simple 1.14 not found. Warning: prerequisite Mac::Apps::Launch 1.9 not found. Warning: prerequisite Mac::Errors 0.91 not found. Warning: prerequisite Mac::Files 1.09 not found. Warning: prerequisite Mac::Processes 1.04 not found. Warning: prerequisite Time::Epoch 0.02 not found. Writing Makefile for Mac::Glue Unsatisfied dependencies detected during [C/CN/CNANDOR/Mac-Glue-1.23.tar.gz] - Mac::AppleEvents Time::Epoch Mac::Processes Mac::Errors Mac::Apps::Launch Mac::Files MLDBM Mac::AppleEvents::Simple Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] yes Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module Mac::AppleEvents Running make for C/CN/CNANDOR/Mac-Carbon-0.72.tar.gz Checksum for /Users/markwhee/.cpan/sources/authors/id/C/CN/CNANDOR/Mac-Carbon -0.72.tar.gz ok . . (lists contents of Mac-Carbon) . . --- It continues on for a while installing modules (presumably) and then gives this final output: --- Running make for C/CN/CNANDOR/Mac-Glue-1.23.tar.gz Is already unwrapped into directory /Users/markwhee/.cpan/build/Mac-Glue-1.23 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible --- There seems to be a lot of: Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible throughout the whole process. I must be missing something. Does anyone have any ideas? Thanks, Mark
Re: Mac::Glue script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: > OK, I installed Xcode - 1.1 then upgraded to 1.5, and ran the cpan > Mac::Glue again and still had problems. Here are snipits of the the > output: You didn't include any actual error output. > It continues on for a while installing modules (presumably) and then > gives this final output: > > --- > > Running make for C/CN/CNANDOR/Mac-Glue-1.23.tar.gz >Is already unwrapped into directory > /Users/markwhee/.cpan/build/Mac-Glue-1.23 > >CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz > > -- NOT OK > Running make test >Can't test without successful make > Running make install >make had returned bad status, install seems impossible Somewhere in the snipped output, there would be the make output, showing an error. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
Forgive the long reply, but I'm not sure exactly what to look for, so here is the complete output: --- Mark-Wheelers-Computer:~ markwhee$ cpan Mac::Glue CPAN: Storable loaded ok Going to read /Users/markwhee/.cpan/Metadata Database was generated on Tue, 26 Apr 2005 23:56:03 GMT Running install for module Mac::Glue Running make for C/CN/CNANDOR/Mac-Glue-1.23.tar.gz CPAN: Digest::MD5 loaded ok Checksum for /Users/markwhee/.cpan/sources/authors/id/C/CN/CNANDOR/Mac-Glue -1.23.tar.gz ok Scanning cache /Users/markwhee/.cpan/build for sizes Mac-Glue-1.23/ Mac-Glue-1.23/Changes Mac-Glue-1.23/ex/ Mac-Glue-1.23/ex/00_README Mac-Glue-1.23/ex/address_book Mac-Glue-1.23/ex/appleworks_stuff Mac-Glue-1.23/ex/bettertelnet_login Mac-Glue-1.23/ex/dialog_director_more_lists Mac-Glue-1.23/ex/dialog_director_stuff Mac-Glue-1.23/ex/eudora_make_hidden Mac-Glue-1.23/ex/eudora_send_email Mac-Glue-1.23/ex/filemaker_extract_data Mac-Glue-1.23/ex/finder_clean_up Mac-Glue-1.23/ex/finder_get_system_folder_files Mac-Glue-1.23/ex/finder_label Mac-Glue-1.23/ex/finder_label_and_beep Mac-Glue-1.23/ex/finder_label_and_beep_cool_version Mac-Glue-1.23/ex/finder_volume_names Mac-Glue-1.23/ex/handle_errors Mac-Glue-1.23/ex/interarchy_stuff Mac-Glue-1.23/ex/itunes Mac-Glue-1.23/ex/netscape_open_window Mac-Glue-1.23/ex/progress_bar_stuff Mac-Glue-1.23/ex/sherlock_search_drive Mac-Glue-1.23/ex/sherlock_search_internet Mac-Glue-1.23/ex/simple_text_and_prefab_player Mac-Glue-1.23/ex/url_access Mac-Glue-1.23/Glue.pm Mac-Glue-1.23/lib/ Mac-Glue-1.23/lib/Mac/ Mac-Glue-1.23/lib/Mac/AETE/ Mac-Glue-1.23/lib/Mac/AETE/App.pm Mac-Glue-1.23/lib/Mac/AETE/Dialect.pm Mac-Glue-1.23/lib/Mac/AETE/Format/ Mac-Glue-1.23/lib/Mac/AETE/Format/Converter.pm Mac-Glue-1.23/lib/Mac/AETE/Format/Dictionary.pm Mac-Glue-1.23/lib/Mac/AETE/Format/Glue.pm Mac-Glue-1.23/lib/Mac/AETE/Parser.pm Mac-Glue-1.23/lib/Mac/Glue/ Mac-Glue-1.23/lib/Mac/Glue/Common.pm Mac-Glue-1.23/make_glues Mac-Glue-1.23/Makefile.PL Mac-Glue-1.23/MANIFEST Mac-Glue-1.23/MANIFEST.SKIP Mac-Glue-1.23/README Mac-Glue-1.23/scripts/ Mac-Glue-1.23/scripts/gluedialect.PL Mac-Glue-1.23/scripts/gluedoc.PL Mac-Glue-1.23/scripts/glueedit.PL Mac-Glue-1.23/scripts/gluemac.PL Mac-Glue-1.23/scripts/gluescriptadds.PL Mac-Glue-1.23/scripts/show_glue_pods Mac-Glue-1.23/t/ Mac-Glue-1.23/t/glue.t Mac-Glue-1.23/t/pod.t Removing previously used /Users/markwhee/.cpan/build/Mac-Glue-1.23 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite MLDBM 0 not found. Warning: prerequisite Mac::AppleEvents 1.3 not found. Warning: prerequisite Mac::AppleEvents::Simple 1.14 not found. Warning: prerequisite Mac::Apps::Launch 1.9 not found. Warning: prerequisite Mac::Errors 0.91 not found. Warning: prerequisite Mac::Files 1.09 not found. Warning: prerequisite Mac::Processes 1.04 not found. Warning: prerequisite Time::Epoch 0.02 not found. Writing Makefile for Mac::Glue Unsatisfied dependencies detected during [C/CN/CNANDOR/Mac-Glue-1.23.tar.gz] - Mac::AppleEvents Time::Epoch Mac::Processes Mac::Errors Mac::Apps::Launch Mac::Files MLDBM Mac::AppleEvents::Simple Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] yes Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module Mac::AppleEvents Running make for C/CN/CNANDOR/Mac-Carbon-0.72.tar.gz Checksum for /Users/markwhee/.cpan/sources/authors/id/C/CN/CNANDOR/Mac-Carbon -0.72.tar.gz ok Mac-Carbon-0.72/ Mac-Carbon-0.72/AppleEvents/ Mac-Carbon-0.72/AppleEvents/AppleEvents.pm Mac-Carbon-0.72/AppleEvents/AppleEvents.xs Mac-Carbon-0.72/AppleEvents/CarbonAE.h Mac-Carbon-0.72/AppleEvents/eg/ Mac-Carbon-0.72/AppleEvents/eg/AEReceiver.eg Mac-Carbon-0.72/AppleEvents/eg/AEReceiver2.eg Mac-Carbon-0.72/AppleEvents/eg/AESender.eg Mac-Carbon-0.72/AppleEvents/eg/AESender2.eg Mac-Carbon-0.72/AppleEvents/Makefile.PL Mac-Carbon-0.72/AppleEvents/PerlAEUtils.cp Mac-Carbon-0.72/AppleEvents/PerlAEUtils.h Mac-Carbon-0.72/Carbon.h Mac-Carbon-0.72/Carbon.pm Mac-Carbon-0.72/Changes Mac-Carbon-0.72/common.pl Mac-Carbon-0.72/Components/ Mac-Carbon-0.72/Components/Components.pm Mac-Carbon-0.72/Components/Components.xs Mac-Carbon-0.72/Components/eg/ Mac-Carbon-0.72/Components/eg/ListComponents.plx Mac-Carbon-0.72/Components/Makefile.PL Mac-Carbon-0.72/Components/t/ Mac-Carbon-0.72/Components/t/Components.t Mac-Carbon-0.72/Components/typemap Mac-Carbon-0.72/Files/ Mac-Carbon-0.72/Files/Files.pm Mac-Carbon-0.72/Files/Files.xs Mac-Carbon-0.72/Files/Makefile.PL Mac-Carbon-0.72/Files/t/ Mac-Carbon-0.72/Files/t/Alias.t Mac-Carbon-0.72/Files/t/Constants.t Mac-Carbon-0.72/Files/t/Files.t Mac-Carbon-0.72/Files/t/Info.t Mac-Carbon-0.72/Files/typemap Mac-Carbon-0.72/Gestalt/ Mac-Carbon-0.72/Gestalt/Gestalt.pm Mac-Carbon-0.72/Gestalt/Gestalt.xs Mac-Carbon-0.72/Gestalt/Makefi
RE: Mac::Glue script
Someone might have a better solution. What I did was go to each downloaded module folders and Do "sudo make install" and it will install. I have another Mac which doesn't have this problem at all. It sounds like a permission problem. Ted zeng Adobe system. Writing Makefile for Mac::AppleEvents Writing Makefile for Mac::Components Writing Makefile for Mac::Files Writing Makefile for Mac::Gestalt Writing Makefile for Mac::InternetConfig Writing Makefile for MacPerl Writing Makefile for Mac::Memory Writing Makefile for Mac::MoreFiles Writing Makefile for Mac::Notification Writing Makefile for Mac::OSA Writing Makefile for Mac::Processes Writing Makefile for Mac::Resources Writing Makefile for Mac::Sound Writing Makefile for Mac::Speech Writing Makefile for Mac::Types Writing Makefile for Mac::Carbon -- NOT OK
Re: Mac::Glue script
On Apr 28, 2005, at 1:15 PM, Ted Zeng wrote: Someone might have a better solution. What I did was go to each downloaded module folders and Do "sudo make install" and it will install. I have another Mac which doesn't have this problem at all. It sounds like a permission problem. Ted zeng Adobe system. Writing Makefile for Mac::AppleEvents Writing Makefile for Mac::Components Writing Makefile for Mac::Files Writing Makefile for Mac::Gestalt Writing Makefile for Mac::InternetConfig Writing Makefile for MacPerl Writing Makefile for Mac::Memory Writing Makefile for Mac::MoreFiles Writing Makefile for Mac::Notification Writing Makefile for Mac::OSA Writing Makefile for Mac::Processes Writing Makefile for Mac::Resources Writing Makefile for Mac::Sound Writing Makefile for Mac::Speech Writing Makefile for Mac::Types Writing Makefile for Mac::Carbon -- NOT OK -- Then would it be OK to do subo cpan Mac::Glue? Would it have the same effect as installing each module with sudo? Thanks, Mark
Re: Mac::Glue script
I thought you should use sudo cpan . My problem is even I used sudo MCPAN ... the problem still existed. ted -- Then would it be OK to do subo cpan Mac::Glue? Would it have the same effect as installing each module with sudo? Thanks, Mark
Re: Mac::Glue script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: > Forgive the long reply, but I'm not sure exactly what to look for, so > here is the complete output: Here is the first error: > Writing Makefile for Mac::AppleEvents > Writing Makefile for Mac::Components > Writing Makefile for Mac::Files > Writing Makefile for Mac::Gestalt > Writing Makefile for Mac::InternetConfig > Writing Makefile for MacPerl > Writing Makefile for Mac::Memory > Writing Makefile for Mac::MoreFiles > Writing Makefile for Mac::Notification > Writing Makefile for Mac::OSA > Writing Makefile for Mac::Processes > Writing Makefile for Mac::Resources > Writing Makefile for Mac::Sound > Writing Makefile for Mac::Speech > Writing Makefile for Mac::Types > Writing Makefile for Mac::Carbon > -- NOT OK > Running make test >Can't test without successful make > Running make install >make had returned bad status, install seems impossible And here's another: > Writing Makefile for Time::Epoch > -- NOT OK > Running make test >Can't test without successful make > Running make install >make had returned bad status, install seems impossible Note the pattern. The make is failing for everything, without even any make actually happening. My guess is you didn't install all the parts of the Developer Tools or whatever. Another possibility is that your CPAN config can't find make, since it wasn't there when you first configured CPAN. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
It is possible that it could not write out the makefile. Then everything will fail after that. ted On Apr 28, 2005, at 3:12 PM, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: Forgive the long reply, but I'm not sure exactly what to look for, so here is the complete output: Here is the first error: Writing Makefile for Mac::AppleEvents Writing Makefile for Mac::Components Writing Makefile for Mac::Files Writing Makefile for Mac::Gestalt Writing Makefile for Mac::InternetConfig Writing Makefile for MacPerl Writing Makefile for Mac::Memory Writing Makefile for Mac::MoreFiles Writing Makefile for Mac::Notification Writing Makefile for Mac::OSA Writing Makefile for Mac::Processes Writing Makefile for Mac::Resources Writing Makefile for Mac::Sound Writing Makefile for Mac::Speech Writing Makefile for Mac::Types Writing Makefile for Mac::Carbon -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible And here's another: Writing Makefile for Time::Epoch -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Note the pattern. The make is failing for everything, without even any make actually happening. My guess is you didn't install all the parts of the Developer Tools or whatever. Another possibility is that your CPAN config can't find make, since it wasn't there when you first configured CPAN. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
It is possible that it could not write out the makefile. Then everything will fail after that. ted On Apr 28, 2005, at 3:12 PM, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark Wheeler) wrote: Forgive the long reply, but I'm not sure exactly what to look for, so here is the complete output: Here is the first error: Writing Makefile for Mac::AppleEvents Writing Makefile for Mac::Components Writing Makefile for Mac::Files Writing Makefile for Mac::Gestalt Writing Makefile for Mac::InternetConfig Writing Makefile for MacPerl Writing Makefile for Mac::Memory Writing Makefile for Mac::MoreFiles Writing Makefile for Mac::Notification Writing Makefile for Mac::OSA Writing Makefile for Mac::Processes Writing Makefile for Mac::Resources Writing Makefile for Mac::Sound Writing Makefile for Mac::Speech Writing Makefile for Mac::Types Writing Makefile for Mac::Carbon -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible And here's another: Writing Makefile for Time::Epoch -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Note the pattern. The make is failing for everything, without even any make actually happening. My guess is you didn't install all the parts of the Developer Tools or whatever. Another possibility is that your CPAN config can't find make, since it wasn't there when you first configured CPAN. I installed Xcode 1.1, then updated it 1.5. I did the standard install. But that was done after CPAN was configured. So would the next order of process be to RE-configure CPAN then try again to install Mac::Glue? And if so, how do I reconfigure CPAN? Thanks, Mark
Re: Mac::Glue script
Beautiful. I'll give it a try. Thanks, Mark At 4:19 PM -0700 4/28/05, Mark Wheeler wrote: And if so, how do I reconfigure CPAN? cpan o conf init -Jeff Lowrey
Re: Mac::Glue script
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ted Zeng) wrote: > It is possible that it could not write out the > makefile. Then everything will fail after that. That seems unlikely ... it created that directory, and wrote files to it already during the untar process. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Glue script
On Apr 28, 2005, at 4:46 PM, Mark Wheeler wrote: At 4:19 PM -0700 4/28/05, Mark Wheeler wrote: And if so, how do I reconfigure CPAN? cpan o conf init --- Ok... I tried that, and got the following: Mark-Wheelers-Computer:~ markwhee$ cpan o conf init CPAN: Storable loaded ok Going to read /Users/markwhee/.cpan/Metadata Database was generated on Tue, 26 Apr 2005 23:56:03 GMT LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Going to read /Users/markwhee/.cpan/sources/authors/01mailrc.txt.gz LWP not available Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz Going to read /Users/markwhee/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Thu, 28 Apr 2005 21:56:07 GMT HTTP::Date not available LWP not available Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Going to read /Users/markwhee/.cpan/sources/modules/03modlist.data.gz Going to write /Users/markwhee/.cpan/Metadata Warning: Cannot install o, don't know what it is. Try the command i /o/ to find objects with matching identifiers. Warning: Cannot install conf, don't know what it is. Try the command i /conf/ to find objects with matching identifiers. Warning: Cannot install init, don't know what it is. Try the command i /init/ to find objects with matching identifiers. Mark-Wheelers-Computer:~ markwhee$ --- This is getting frustrating. I'll look at your other suggestions, too. Mark
Re: Mac::Glue script
Ok.. I think I got it. I needed to be in the CPAN shell first then do "o conf init": cpan> o conf init I let it do the auto config then got out of the shell. and sudo cpan to get back in. Then in the cpan shell, did: cpan> install Mac::Glue That seemed to do the trick. It took much longer, as it was installing all the prerequs then finally I go this output at the end of it all: Running make for C/CN/CNANDOR/Mac-Glue-1.23.tar.gz Is already unwrapped into directory /Users/markwhee/.cpan/build/Mac-Glue-1.23 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Glue-1.23.tar.gz cp lib/Mac/AETE/Parser.pm blib/lib/Mac/AETE/Parser.pm cp lib/Mac/AETE/Format/Converter.pm blib/lib/Mac/AETE/Format/Converter.pm cp lib/Mac/AETE/Format/Glue.pm blib/lib/Mac/AETE/Format/Glue.pm cp lib/Mac/Glue/Common.pm blib/lib/Mac/Glue/Common.pm cp Glue.pm blib/lib/Mac/Glue.pm cp lib/Mac/AETE/Format/Dictionary.pm blib/lib/Mac/AETE/Format/Dictionary.pm cp lib/Mac/AETE/Dialect.pm blib/lib/Mac/AETE/Dialect.pm cp lib/Mac/AETE/App.pm blib/lib/Mac/AETE/App.pm /usr/bin/perl "-Iblib/arch" "-Iblib/lib" scripts/gluemac.PL scripts/gluemac Extracting gluemac (with variable substitutions) cp scripts/gluemac blib/script/gluemac /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/gluemac /usr/bin/perl "-Iblib/arch" "-Iblib/lib" scripts/gluedialect.PL scripts/gluedialect Extracting gluedialect (with variable substitutions) cp scripts/gluedialect blib/script/gluedialect /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/gluedialect /usr/bin/perl "-Iblib/arch" "-Iblib/lib" scripts/glueedit.PL scripts/glueedit Extracting glueedit (with variable substitutions) cp scripts/glueedit blib/script/glueedit /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/glueedit /usr/bin/perl "-Iblib/arch" "-Iblib/lib" scripts/gluedoc.PL scripts/gluedoc Extracting gluedoc (with variable substitutions) cp scripts/gluedoc blib/script/gluedoc /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/gluedoc /usr/bin/perl "-Iblib/arch" "-Iblib/lib" scripts/gluescriptadds.PL scripts/gluescriptadds Extracting gluescriptadds (with variable substitutions) cp scripts/gluescriptadds blib/script/gluescriptadds /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/gluescriptadds Manifying blib/man3/Mac::AETE::App.3pm Manifying blib/man3/Mac::Glue.3pm Manifying blib/man3/Mac::AETE::Dialect.3pm Manifying blib/man3/Mac::AETE::Format::Glue.3pm Manifying blib/man3/Mac::AETE::Parser.3pm Created and installed Dialect glue for AppleScript.rsrc (AppleScript) Created and installed Addition glue for StandardAdditions.osax (StandardAdditions) Created and installed Addition glue for Digital Hub Scripting.osax (Digital_Hub_Scripting) Created and installed App glue for Finder.app, v10.3.2 (Finder) Created and installed App glue for System Events.app, v1.2.1 (System_Events) Created and installed App glue for Keychain Scripting.app (Keychain_Scripting) Created and installed App glue for FontSyncScripting.app, v2.0d1 (FontSyncScripting) Created and installed App glue for Image Events.app, v1.0 (Image_Events) Created and installed App glue for ColorSyncScripting.app (ColorSyncScripting) Created and installed App glue for URL Access Scripting.app (URL_Access_Scripting) Created and installed App glue for Image Capture Scripting.app (Image_Capture_Scripting) /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/glueok t/pod.skipped all skipped: Test::Pod v0.95 required for testing POD All tests successful, 1 test skipped. Files=2, Tests=3, 3 wallclock secs ( 2.22 cusr + 0.42 csys = 2.64 CPU) /usr/bin/make test -- OK Running make install Installing /Library/Perl/5.8.1/Mac/Glue.pm Installing /Library/Perl/5.8.1/Mac/AETE/App.pm Installing /Library/Perl/5.8.1/Mac/AETE/Dialect.pm Installing /Library/Perl/5.8.1/Mac/AETE/Parser.pm Installing /Library/Perl/5.8.1/Mac/AETE/Format/Converter.pm Installing /Library/Perl/5.8.1/Mac/AETE/Format/Dictionary.pm Installing /Library/Perl/5.8.1/Mac/AETE/Format/Glue.pm Installing /Library/Perl/5.8.1/Mac/Glue/Common.pm Installing /Library/Perl/5.8.1/Mac/Glue/glues/ColorSyncScripting Installing /Library/Perl/5.8.1/Mac/Glue/glues/ColorSyncScripting.pod Installing /Library/Perl/5.8.1/Mac/Glue/glues/Finder Installing /Library/Perl/5.8.1/Mac/Glue/glues/Finder.pod Installing /Library/Perl/5.8.1/Mac/Glue/glues/FontSyncScripting Installing /Library/Perl/5.8.1/Mac/Glue/glues/FontSyncScripting.pod Installing /Library/Perl/5.8.1/Mac/Glue/glues/Image_Capture_Scripting Installing /Library/Perl/5.8.1/Mac/Glue/glues/Image_Capture_Scripting.pod Installing /Library/Perl/5.8.1/Mac/Glue/glues/Image_Events Installing /Library/Perl/5.8.1/Mac/Glue/glues/Image_Events.pod Installing /Library/Perl/5.8.1/Mac/Glue/glues/Keychain_Scripting Installing /
Re: Mac::Glue script
So I think things are good. Two questions: 1. How would I test Mac::Glue (simply) to make sure everything is as it should be? It already went through tests in the above install. Otherwise, begin writing your program. 2. Now that Xcode is installed and the cpan module seems to be working correctly, what is the best way to install modules? cpan> install That's it. Make sure cpan is running under sudo. Thanks again for all your help. I really appreciate it. I've been programming with the basics of perl for a few years, now and never installed a module through cpan before. Thanks, Mark
Re: Mac::Glue script
Duh... of course... that's what all those tests are for. Sorry... I'm a little (a lot) new at the install process. I installed MIME::Lite using the process below and it worked like a charm. Many thanks again to all who helped. Now... to wright the program... I'm sure I'll be back. :) Thanks again, Mark On Apr 29, 2005, at 10:02 AM, Joseph Alotta wrote: So I think things are good. Two questions: 1. How would I test Mac::Glue (simply) to make sure everything is as it should be? It already went through tests in the above install. Otherwise, begin writing your program. 2. Now that Xcode is installed and the cpan module seems to be working correctly, what is the best way to install modules? cpan> install That's it. Make sure cpan is running under sudo. Thanks again for all your help. I really appreciate it. I've been programming with the basics of perl for a few years, now and never installed a module through cpan before. Thanks, Mark
Re: Mac::Glue script
At 4:19 PM -0700 4/28/05, Mark Wheeler wrote: And if so, how do I reconfigure CPAN? cpan o conf init -Jeff Lowrey