[25859] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8094 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu May 19 00:05:24 2005

Date: Wed, 18 May 2005 21:05:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 18 May 2005     Volume: 10 Number: 8094

Today's topics:
        cpan and nmake <alexj@freesurf.ch>
    Re: cpan and nmake <alexj@freesurf.ch>
    Re: cpan and nmake <alexj@freesurf.ch>
        simple CGI web server xhoster@gmail.com
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 19 May 2005 04:22:13 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: cpan and nmake
Message-Id: <428bf858$0$1152$5402220f@news.sunrise.ch>

Hi

On my windows xp env I^'m trying to build and install DBI.

I'm been using indigoperl with perl 5.8.6.

I run cpan install DBI from command line then I receive a message :
won't try without force

I try cpan>nmake install but nmake is not reconized :/

where should I've to configure cpan to run with nmake ??

thanks in advance


------------------------------

Date: Thu, 19 May 2005 04:34:45 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: cpan and nmake
Message-Id: <428bfb47$0$1153$5402220f@news.sunrise.ch>

Alexandre Jaquet a écrit :
> Hi
> 
> On my windows xp env I^'m trying to build and install DBI.
> 
> I'm been using indigoperl with perl 5.8.6.
> 
> I run cpan install DBI from command line then I receive a message :
> won't try without force
> 
> I try cpan>nmake install but nmake is not reconized :/
> 
> where should I've to configure cpan to run with nmake ??
> 
> thanks in advance

when I try to run a test script to connect to the database I got :

[Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] 
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC 
contains: C:/indigoperl/perl/lib C:/indigoperl/perl/site/lib .) at (eval 
7) line 3., referer: http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
[Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] Perhaps the 
DBD::mysql perl module hasn't been fully installed,, referer: 
http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
[Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] or perhaps the 
capitalisation of 'mysql' isn't right., referer: 
http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
[Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] Available drivers: 
DBM, ExampleP, File, Proxy, Sponge, mysqlPP., referer: 
http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
[Thu May 19 04:13:19 2005] [error] [client 127.0.0.1]  at 
C:/indigoperl/apache/cgi-bin/recordz.cgi line 133, referer: 
http://127.0.0.1/cgi-bin/recordz.cgi?lang=en

use DBI;

 ...

$dbh ||= sqlConnect("DBI:mysql:recordz:localhost", "root", "password");
 ...

sub sqlConnect {
	my $dbname = shift || '';
	my $dbusername = shift || '';
	my $dbpassword = shift || '';

	$dbh = DBI->connect($dbname, $dbusername, $dbpassword);
	if (!$dbh) {
	}
	kill 9, $$ unless $dbh;
}



------------------------------

Date: Thu, 19 May 2005 05:11:34 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: cpan and nmake
Message-Id: <428c03e9$0$1153$5402220f@news.sunrise.ch>

Alexandre Jaquet a écrit :
> Alexandre Jaquet a écrit :
> 
>> Hi
>>
>> On my windows xp env I^'m trying to build and install DBI.
>>
>> I'm been using indigoperl with perl 5.8.6.
>>
>> I run cpan install DBI from command line then I receive a message :
>> won't try without force
>>
>> I try cpan>nmake install but nmake is not reconized :/
>>
>> where should I've to configure cpan to run with nmake ??
>>
>> thanks in advance
> 
> 
> when I try to run a test script to connect to the database I got :
> 
> [Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] 
> install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC 
> contains: C:/indigoperl/perl/lib C:/indigoperl/perl/site/lib .) at (eval 
> 7) line 3., referer: http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
> [Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] Perhaps the 
> DBD::mysql perl module hasn't been fully installed,, referer: 
> http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
> [Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] or perhaps the 
> capitalisation of 'mysql' isn't right., referer: 
> http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
> [Thu May 19 04:13:19 2005] [error] [client 127.0.0.1] Available drivers: 
> DBM, ExampleP, File, Proxy, Sponge, mysqlPP., referer: 
> http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
> [Thu May 19 04:13:19 2005] [error] [client 127.0.0.1]  at 
> C:/indigoperl/apache/cgi-bin/recordz.cgi line 133, referer: 
> http://127.0.0.1/cgi-bin/recordz.cgi?lang=en
> 
> use DBI;
> 
> ...
> 
> $dbh ||= sqlConnect("DBI:mysql:recordz:localhost", "root", "password");
> ...
> 
> sub sqlConnect {
>     my $dbname = shift || '';
>     my $dbusername = shift || '';
>     my $dbpassword = shift || '';
> 
>     $dbh = DBI->connect($dbname, $dbusername, $dbpassword);
>     if (!$dbh) {
>     }
>     kill 9, $$ unless $dbh;
> }
> 

finally solved with the indigo package manager


------------------------------

Date: 19 May 2005 03:06:00 GMT
From: xhoster@gmail.com
Subject: simple CGI web server
Message-Id: <20050518230600.413$T2@newsreader.com>

I desire a simple pure-perl httpd server that will serve up CGI
applications. Single-threaded is fine.  I just want it to serve up *.cgi
files that are in the same directory it was started within, and run as the
user who started it.  It should do both POST and GET.

I've looked at http://www.pault.com/pault/phttpd/ but it doesn't do POST
and doesn't properly pass parameters to GET.

It seems like HTTP::Daemon provides the tools necessary to make what I
want, but doing so does not look trivial.  Searching search.cpan.org for
http or httpd gives me hundreds of modules, but as far as I can tell none
of them do what I want, being mostly clients or configuration-tools rather
than servers.

Before I try to roll my own with HTTP::Daemon, can anyone point me to
existing, debugged module/code that does what I want?

Thanks,

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8094
***************************************


home help back first fref pref prev next nref lref last post