Bus error with mod_perl
I realize not a lot of you do mod_perl stuff, but I¹m trying to create a database preloader using a typical startup.pl file. I¹m using the mod_perl example out of the mod_perl O¹Reilly book in Chapter 4. I have it compiling and seemingly functioning properly (I can¹t test it just yet)...but as soon I run my startup.pl, all my web hosting errors out with bus errors. Here¹s what I¹ve done: My httpd.conf file has this line at the bottom: PerlRequire /System/Library/Perl/5.8.6/Test/startup.pl My startup.pl script is very basic: package Test::Startup; use strict; use Apache::Registry (); use LWP::UserAgent (); use Apache::DBI (); use DBI; use Carp (); $SIG{__WARN__} = \Carp::cluck; use CGI (); CGI-compile(':all'); use Test::Config(); #-- sub init() { my $paths = Test::Config::getPaths(); my $connectString = Test::Config::getConnectString(); my %dbConnections = login($connectString,$paths-{root}.$paths-{goDB}); } #-- sub login { my ($dsh,$user,$pass) = @_; my $dbh = ; $dbh = Apache::DBI-connect_on_init ($dsh,$user,$pass, { PrintError = 1, # warn() on errors RaiseError = 0, # don't die on error AutoCommit = 1, # commit executes immediately } ); return $dbh; } init(); 1; What might I be violating? I¹m not using any Local %ENV references, and my system isn¹t configured for any VirtualHost settings. I¹m running the latest version of Tiger. Mark
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