[23294] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5514 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 17 03:05:41 2003

Date: Wed, 17 Sep 2003 00:05:09 -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, 17 Sep 2003     Volume: 10 Number: 5514

Today's topics:
        A newBie Query <narendranath.ts@in.bosch.com>
    Re: c.l.p.announce MIA (was:  boston perl classes with  (Randal L. Schwartz)
        dynamically generating graphics (MJL)
    Re: dynamically generating graphics <mgjv@tradingpost.com.au>
    Re: dynamically generating graphics <NOSPAM@bigpond.com>
    Re: kill command in a perl script <krahnj@acm.org>
    Re: Newbie Help with Hashes (James Bonanno)
    Re: Newbie Help with Hashes <uri@stemsystems.com>
    Re: Socket troubles <spam@thecouch.homeip.net>
    Re: Socket troubles <mooseshoes@gmx.net>
    Re: Socket troubles <hvardhan@ee.duke.edu>
    Re: Socket troubles <uri@stemsystems.com>
    Re: Subtracting arrays of floats. <dzluk8fsxsw0001@sneakemail.com>
    Re: Subtracting arrays of floats. <tassilo.parseval@rwth-aachen.de>
        Template::Provider from CPAN <cyde@umd.edu>
        which light dbi to use? ram ldap sqlite xls (Joseph)
    Re:  <bwalton@rochester.rr.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Wed, 17 Sep 2003 12:25:26 +0530
From: "Naren" <narendranath.ts@in.bosch.com>
Subject: A newBie Query
Message-Id: <bk90h4$7mh$1@ns2.fe.internet.bosch.com>

Hello grp,
        I am searching for a perfect match of a string in a line and want to
replace all occurances of the string with a new string and also want a count
of the replacements

What I mean by a perfect match is that it should not be a substring of any
other string,should be independent.

$a is my string to be searched
$cnt = ($line =~ s/$a\w+/$tobereplaceed)

I dont get a correct output.

PLz help

Thaanx in advance
Rgds,
Naren.




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

Date: Wed, 17 Sep 2003 03:16:47 GMT
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: c.l.p.announce MIA (was:  boston perl classes with damian conway)
Message-Id: <adcbd38a01b4db448df4471da6214835@news.teranews.com>

>>>>> "Graham" == Graham Drabble <graham.drabble@lineone.net> writes:

Graham> I might be able to take it on if someone will vounteer to be co-
Graham> moderator. If it happens as I think it will then all you need to be 
Graham> able to do to become a moderator is send and receive e-mail, it isn't 
Graham> hard. If someone can send me the moderators address it will save me 
Graham> looking it up!

No, you need to be able to *post* to a moderated newsgroup with the
right magic to get it out.

I was unaware that my chosen usenet posting host has been blocking all
such attempts, legitimate or not, for a long time.  I'm in search of a
posting host that will let me inject moderated articles.  Once I find
that, I can again resume CLPA postings.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: 16 Sep 2003 22:23:40 -0700
From: mail@affordablemedicalsoftware.com (MJL)
Subject: dynamically generating graphics
Message-Id: <29c5bb08.0309162123.7c2f234@posting.google.com>

Is it difficult to dynamically generate a jpg in PERL?  For example,
create a pie-chart or other graphs?  What about including other
images?

I would like to dynamically create jpg's or gif's for my website and I
heard that it can be done in PERL.

Thanks!

mjl


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

Date: 17 Sep 2003 06:48:19 GMT
From: Martien Verbruggen <mgjv@tradingpost.com.au>
Subject: Re: dynamically generating graphics
Message-Id: <slrnbmg0tm.spl.mgjv@verbruggen.comdyn.com.au>

On 16 Sep 2003 22:23:40 -0700,
	MJL <mail@affordablemedicalsoftware.com> wrote:
> Is it difficult to dynamically generate a jpg in PERL?

I don't know about PERL, but with Perl you can use modules.

You can use Imager, Image::Magick, or GD. Or you can use any other
package that creates some sort of bitmap and convert it to JPEG format
with Image::Magick or some such. 

See your local CPAN mirror, or start at http://search.cpan.org/.

>                                                         For example,
> create a pie-chart or other graphs?  What about including other
> images?

There are already modules available on CPAN. See abovementioned URL.
GD::Graph is one that I know particularly well, but there are several
others.

It'd be better to create PNG files instead of JPEG, though. JPEG's
compression algorithm isn't very good at images with typical charts.

> I would like to dynamically create jpg's or gif's for my website

Most free modules at the moment don't do GIF because of the patenting
issues involved. GIF is inferior to PNG for this sort of thing
(anything, really) anyway. JPEG is not a good file format for charts.

>                                                                  and I
> heard that it can be done in PERL.

Please, stop saying PERL. It hurts.

Martien
-- 
                        | 
Martien Verbruggen      | Unix is user friendly. It's just selective
Trading Post Australia  | about its friends.
                        | 


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

Date: Wed, 17 Sep 2003 17:02:44 +1000
From: "Gregory Toomey" <NOSPAM@bigpond.com>
Subject: Re: dynamically generating graphics
Message-Id: <bk90ur$q85tn$1@ID-202028.news.uni-berlin.de>

"MJL" <mail@affordablemedicalsoftware.com> wrote in message
news:29c5bb08.0309162123.7c2f234@posting.google.com...
> Is it difficult to dynamically generate a jpg in PERL?  For example,
> create a pie-chart or other graphs?  What about including other
> images?

Its easy once you know how. Use the GD module
http://search.cpan.org/author/LDS/GD-2.07/GD.pm

>
> I would like to dynamically create jpg's or gif's for my website and I
> heard that it can be done in PERL.

Gifs are only supported up to Version 1.18 of GD (which is still available
for download); the latest version of GD uses png as the graphics format.

Have at look at the stock market charts at my site www.ipo-australia.com to
give you some basic ideas.

gtoomey




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

Date: Wed, 17 Sep 2003 06:38:23 GMT
From: "John W. Krahn" <krahnj@acm.org>
Subject: Re: kill command in a perl script
Message-Id: <3F680157.65BFBE0C@acm.org>

Ted Zlatanov wrote:
> 
> [lots of awkward ps -ef gymnastics omitted]
> 
> Good god, guys, why are you stubbornly trying to reinvent the wheel?
> I mean, it's fun to do it sometimes, but Hugh (a new Perl programmer)
> should absolutely not be trying to manually parse the output of
> ps -ef, creating a nonportable script with weird bugs (what happens
> if "grep" is in the process name you want, for instance?  what happens
> on systems where ps -ef does not do what you think it does?)
> 
> Please use Proc::ProcessTable from CPAN.  It will save you time and
> lots of headaches.

$ cat Proc-ProcessTable-0.38/README
Proc::ProcessTable, version .38

STATUS
======
This is BETA software; it seems to work, but use at your own risk :) 
[snip]


If that's not enough of a reason the module requires a C compiler to
install and all the C code does (on FreeBSD, IRIX, DecOSF, NetBSD,
Linux, UnixWare and Solaris) is access the /proc file system


A code example from ProcessTable.pm

sub _get_tty_list 
{
  my ($self) = @_;
  undef %Proc::ProcessTable::TTYDEVS;
  find({ wanted => 
       sub{
     $File::Find::prune = 1 if -d $_ && ! -x $_;
     my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
        $atime,$mtime,$ctime,$blksize,$blocks) =
stat($File::Find::name);
     $Proc::ProcessTable::TTYDEVS{$rdev} = $File::Find::name
       if(-c $File::Find::name);
       }, no_chdir => 1},
       "/dev" 
      );
}


Why are they stat()ing the same file FOUR times?


Not that I'm against using modules.  :-)  I just like to know what all
my options are.


John
-- 
use Perl;
program
fulfillment


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

Date: 16 Sep 2003 18:25:38 -0700
From: jamesb7us@yahoo.com (James Bonanno)
Subject: Re: Newbie Help with Hashes
Message-Id: <3869c28a.0309161725.708def44@posting.google.com>

tadmc@augustmail.com (Tad McClellan) wrote in message news:<slrnbmc909.1td.tadmc@magna.augustmail.com>...
> James Bonanno <jamesb7us@yahoo.com> wrote:
> 
> > use File::Find::Rule;
> > use HTML::Template;
> 
> 
> You are missing these:
> 
>    use strict;
>    use warnings;
> 
> 
> > @projects_to_display = &dirscan_root("$root");
> 
> 
> Three different mistakes all folded in to a single line of code.
> 
> Impressive!  :-)
> 
>    my @projects_to_display = dirscan_root($root);
> 
> 
> Declare your variables (use strict will _require_ you to do so).
> 
> Don't use ampersand on function calls (see perlsub.pod for what
> that form of function call does).
> 
>    perldoc -q vars
> 
>        What's wrong with always quoting "$vars"?

Tad;

I recommend to you to seek a Master of Business Administration degree
with a concentration in marketing. In that course of learning, you
will discover more strategic marketing concepts for your consulting
business rather than flaming a rather straightforward question on a
discussion group.
 
James


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

Date: Wed, 17 Sep 2003 01:49:57 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Newbie Help with Hashes
Message-Id: <x73cew18vu.fsf@mail.sysarch.com>

>>>>> "JB" == James Bonanno <jamesb7us@yahoo.com> writes:

  JB> news:<slrnbmc909.1td.tadmc@magna.augustmail.com>...
  >> James Bonanno <jamesb7us@yahoo.com> wrote:
  >> 
  >> > use File::Find::Rule; > use HTML::Template;
  >> You are missing these:
  >> use strict; use warnings;
  >> 
  >> > @projects_to_display = &dirscan_root("$root");
  >> Three different mistakes all folded in to a single line of code.
  >> 
  >> Impressive!  :-)
  >> 
  >> my @projects_to_display = dirscan_root($root);
  >> 
  >> 
  >> Declare your variables (use strict will _require_ you to do so).
  >> 
  >> Don't use ampersand on function calls (see perlsub.pod for what
  >> that form of function call does).
  >> 
  >> perldoc -q vars
  >> 
  >> What's wrong with always quoting "$vars"?

  JB> Tad;

  JB> I recommend to you to seek a Master of Business Administration
  JB> degree with a concentration in marketing. In that course of
  JB> learning, you will discover more strategic marketing concepts for
  JB> your consulting business rather than flaming a rather
  JB> straightforward question on a discussion group.

and you are a fool if you think that was flaming. tad pointed out some
very common newbie bugs and problems with your code. as you are also
under the spell of moronzilla, the local troll. she may have satisfied
your current perl need but wait until you disagree with her or get into
a problem space where she won't tread (which is most of perl itself, she
sticks to simple text stuff and no regexes or refs - baby perl in the
extreme).

so go along your merry perl life and realize that you are backing the
wrong side here. search google for the history of tad's posting and of
moronzilla's. if you can't see the difference, you belong to her and woe
is you.

and this is not a flame even though you will probably take it as such.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
Damian Conway Class in Boston - Sept 2003 -- http://www.stemsystems.com/class


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

Date: Tue, 16 Sep 2003 22:07:01 -0400
From: Mina Naguib <spam@thecouch.homeip.net>
Subject: Re: Socket troubles
Message-Id: <clP9b.51156$LR.637114@wagner.videotron.net>

-----BEGIN xxx SIGNED MESSAGE-----
Hash: SHA1

Harshavardhan wrote:
> Hi,
> 
>         I am trying to create two sender and listener sockets using perl.
> 
> ***************
> Listener.pl
> ***************
> 
> #! /usr/bin/perl
> 
> use IO::Socket;
> $sock = new IO::Socket::INET ( LocalHost => 'localhost',
>                                                  Local Port => 1200,
                                                    ^^^^^^^^^^
This is not syntatically-correct code

>                                                  Proto = 'tcp',
                                                         ^^^
This is an illegal modification of a constant, again not syntatically-correct.

>                                                  Listen = 5,
                                                          ^^^
So is this one.

>                                                  Reuse = 1);
                                                         ^^^
And this one.

Do NOT re-type Perl code when posting to usenet.  Use copy+paste or your newsreader's "import" function.

-----BEGIN xxx SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/Z8HIeS99pGMif6wRAkyeAJ9y5BH/bSkOAmCuVBwdvH5qG/jkygCglxck
wYUhYEqCrcMkrmL/InDLI6o=
=E+CH
-----END PGP SIGNATURE-----



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

Date: Wed, 17 Sep 2003 04:37:31 GMT
From: mooseshoes <mooseshoes@gmx.net>
Subject: Re: Socket troubles
Message-Id: <fyR9b.90$qm2.55@newssvr27.news.prodigy.com>

I hate to sound like everyone else in this newsgroup, but if you're not
using

use strict;
use warnings;


you will be developing in the dark.

Best of luck,

Moose


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

Date: Wed, 17 Sep 2003 01:32:49 -0400
From: "Harshavardhan" <hvardhan@ee.duke.edu>
Subject: Re: Socket troubles
Message-Id: <bk8rhg$chr$1@gargoyle.oit.duke.edu>

Thanks guys.

After I used

use strict;
use warnings;

and after specifying each variable with its package name I found out the
error and now my  program is working. Next time I post I will remember to
cut and paste the code.

Thanks for all your help
harsha


"mooseshoes" <mooseshoes@gmx.net> wrote in message
news:fyR9b.90$qm2.55@newssvr27.news.prodigy.com...
> I hate to sound like everyone else in this newsgroup, but if you're not
> using
>
> use strict;
> use warnings;
>
>
> you will be developing in the dark.
>
> Best of luck,
>
> Moose




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

Date: Wed, 17 Sep 2003 06:11:11 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Socket troubles
Message-Id: <x7he3cymf5.fsf@mail.sysarch.com>

>>>>> "H" == Harshavardhan  <hvardhan@ee.duke.edu> writes:

  H> After I used

  H> use strict;
  H> use warnings;

  H> and after specifying each variable with its package name I found out the
  H> error and now my  program is working. Next time I post I will remember to
  H> cut and paste the code.

first off, don't top post.

secondly, that is the wrong way to work with strict. the correct way is
to use my. what you did is create package globals and that is not good
practice.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
Damian Conway Class in Boston - Sept 2003 -- http://www.stemsystems.com/class


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

Date: Wed, 17 Sep 2003 07:56:56 +0200
From: "Jonas Nilsson" <dzluk8fsxsw0001@sneakemail.com>
Subject: Re: Subtracting arrays of floats.
Message-Id: <bk8t29$fdh$1@news.island.liu.se>


"Tassilo v. Parseval" <tassilo.parseval@rwth-aachen.de> wrote in message
news:bk7f2q$2ug$1@nets3.rz.RWTH-Aachen.DE...
> [ posted and mailed ]
>
> Also sprach Jonas Nilsson:
>
> > When I try to use the Inline C i get from DOS:
> > 'cl' is not recognized as an internal or external command, operable
program
> > or batch file. (and a lot more)
>
> You are lucky. I just incorporated Anno's pack() trick into my module
> and it compiled without any problems under Windows/VisualC (this is
> rather the exception, not the rule). I made a .ppd for it which you can
> now install even if no VisualC is around [ might line-wrap ]:
>

Well, thank you a million times. Sometimes it's hard to believe that there
really are people that would help a complete stranger for free... :)

Could you please post the revised source also, for my inspection. I would
like to try making some modifications. I'll se if I can find any free
compiler. Maybee I'll start learing C.

If I were to get a complier, what would my specifications be. Are they all
the same? I mean, I just need the complier, not a whole bundle of fancy
editors and such.

Thanks again.
/jN




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

Date: 17 Sep 2003 06:47:07 GMT
From: "Tassilo v. Parseval" <tassilo.parseval@rwth-aachen.de>
Subject: Re: Subtracting arrays of floats.
Message-Id: <bk901b$78k$1@nets3.rz.RWTH-Aachen.DE>

Also sprach Jonas Nilsson:

> 
> "Tassilo v. Parseval" <tassilo.parseval@rwth-aachen.de> wrote in message
> news:bk7f2q$2ug$1@nets3.rz.RWTH-Aachen.DE...
>> [ posted and mailed ]
>>
>> Also sprach Jonas Nilsson:
>>
>> > When I try to use the Inline C i get from DOS:
>> > 'cl' is not recognized as an internal or external command, operable
>> > program or batch file. (and a lot more)
>>
>> You are lucky. I just incorporated Anno's pack() trick into my module
>> and it compiled without any problems under Windows/VisualC (this is
>> rather the exception, not the rule). I made a .ppd for it which you can
>> now install even if no VisualC is around [ might line-wrap ]:
>>
> 
> Well, thank you a million times. Sometimes it's hard to believe that there
> really are people that would help a complete stranger for free... :)
> 
> Could you please post the revised source also, for my inspection. I would
> like to try making some modifications. I'll se if I can find any free
> compiler. Maybee I'll start learing C.

Good idea. The (shortened) link to the source is

    <http://xrl.us/th5>

Yet, in order to understand and modify it just knowing C might not be
enough. XS code uses the perlapi with a lot of funny looking macros and
such. This is all documented:

    perlguts.pod
    perlxstut.pod
    perlxs.pod
    perlapi.pod
    perlclib.pod    # describes the perlapi versions of libc functions

I used these symbols from the perlapi (in order of appearance):

    SvPV
    New
    Copy
    sv_newmortal
    sv_setref_pv
    XPUSHs
    XSRETURN
    SvIV
    SvRV
    newSVnv
    GIMME
    G_SCALAR
    sv_2mortal
    G_ARRAY
    EXTEND
    PUSHs
    Safefree

either to be found in perlapi or perlclib (New, Copy, Safefree). So you
can look them up while trying to make sense of the code.

I learned C through XS, actually. You can do it with Inline::C if you
prefer. The above manpages are then still valuable and worth a read.

> If I were to get a complier, what would my specifications be. Are they all
> the same? I mean, I just need the complier, not a whole bundle of fancy
> editors and such.

Usually just a compiler-suit. The compiler itself has other necessary
components, the linker for instance. This is usually included since
otherwise the compiler wouldn't be of much use. And a make tool. nmake
will be ok if you use VisualC. 

Since you are doing this under Windows, maybe you have a look at 

    <http://www.cygwin.com>

It's a Linux-environment running under Windows. You have a proper shell
and all the essential tools to develop software. The advantage is that
it all fits together very well (and is free, of course). You get a real
make program plus the gcc as C compiler. cygwin has software packages
that you can selectively install. So you'd probably want to install
perl, make, gcc, maybe a good text-editor (although you can still use
your current one) and some related libraries.

I think with a little bit of tweaking, you can even use this cygwin
environment to compile modules for ActivePerl. I remember that I tried
it a couple of times and it usually worked pretty well.

Or you just install Linux, which is the most convenient way. :-)

Anyway, if you can get hold of VisualC from whatever legal or illegal
sources (not my concern:-), you don't need cygwin. In the beginning it's
a little harder since Windows does things differently from cygwin (which
does it the UNIX-way). Also, perlxstut (the XS tutorial) is assuming a
UNIXish environment. So it's easier to follow and experiment with the
examples.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


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

Date: Tue, 16 Sep 2003 22:07:51 -0400
From: Cyde Weys <cyde@umd.edu>
Subject: Template::Provider from CPAN
Message-Id: <bk8flp$am2$1@grapevine.wam.umd.edu>

	I'm trying to install slashcode, and I'm hitting this annoying error. 
I get to the point where I run the bin/install-slashsite part (long 
after installing Perl, MySQL, Apache, etc.), and get the following error:

Base class package "Template::Provider" is empty.
         (Perhaps you need to 'use' the module which defines that 
package first.) at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display/Provider.pm 
line 34
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display/Provider.pm 
line 34.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display.pm 
line 44.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display.pm 
line 44.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility/Access.pm 
line 30.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility/Access.pm 
line 30.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility.pm 
line 31.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility.pm 
line 31.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB/Utility.pm 
line 9.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB/Utility.pm 
line 9.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB.pm line 10.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB.pm line 10.
Compilation failed in require at bin/install-slashsite line 18.
BEGIN failed--compilation aborted at bin/install-slashsite line 18.


Line 34 of Provider.pm reads:

use base qw(Template::Provider);

However, from CPAN, it says that Template::Provider is installed ... but 
when I try to do "test Template::Provider" (after it compiles everything 
and blah blah blah) I end up with the following error:

         all skipped: XML::XPath v1.0 or later not installed
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/dbi.t                    1    1 100.00%  1
9 tests skipped.
Failed 1/90 test scripts, 98.89% okay. 1/2514 subtests failed, 99.96% okay.
make: *** [test_dynamic] Error 29
   /usr/bin/make test -- NOT OK

Finding the 1 test script that failed, I see:

------
t/dbi............Use of uninitialized value in concatenation (.) or 
string at t/dbi.t line 64.
DBI connect() failed:


Please ensure that your database server is running and that you specified
the correct connection parameters.  If necessary, re-run the Makefile.PL
and specify new parameters, or answer 'n' when prompted:

   - Do you want to run the DBI tests?

FAILED 1:
t/dbi............FAILED test 1
         Failed 1/1 tests, 0.00% okay
------

So the dbi test cannot access my MySQL server ... that's strange.  I can 
easily get in from the commandline by simply typing mysql.

Also, here's another error I got during the install of the Bundle::Slash 
package (specifically DBIx::Password)

##################Note!#########################
If you are not on the machine that will be using
these passwords this will most likely fail.
Now, lets test getDriver() by itself
Finding driver:mysql
Now, lets see if we can make create objects
Trying: <*my virtual name*>
install_driver(mysql) failed: Can't load 
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' 
for module DBD::mysql: 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so: 
undefined symbol: mysql_ssl_set at 
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
  at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
  at blib/lib/DBIx/Password.pm line 31
make: *** [test_dynamic] Error 255
   /usr/bin/make test -- NOT OK


Could this be the cause?  I'm not exactly familiar with all of this CPAN 
stuff ...

Anyway, if someone is familiar with the installation of Slashcode, and 
could help me out here, that would be great.  Frankly I'm in way over my 
head and I have no clue what to do from here.


(And FWIW, I'm running RedHat9).



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

Date: 16 Sep 2003 20:40:29 -0700
From: jcharth@hotmail.com (Joseph)
Subject: which light dbi to use? ram ldap sqlite xls
Message-Id: <2f2b8b0b.0309161940.290b113f@posting.google.com>

Hi am trying to make the db_browser program that works with pg mysql
and oracle. which of the following is more compatible ram ldap sqlite
or xls
and which one should i set the program as?
thanks


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

Date: Sat, 19 Jul 2003 01:59:56 GMT
From: Bob Walton <bwalton@rochester.rr.com>
Subject: Re: 
Message-Id: <3F18A600.3040306@rochester.rr.com>

Ron wrote:

> Tried this code get a server 500 error.
> 
> Anyone know what's wrong with it?
> 
> if $DayName eq "Select a Day" or $RouteName eq "Select A Route") {

(---^


>     dienice("Please use the back button on your browser to fill out the Day
> & Route fields.");
> }
 ...
> Ron

 ...
-- 
Bob Walton



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

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.  

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 5514
***************************************


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