Re: Clean Install

2011-06-18 Thread Marek Stepanek

On 6/18/11 12:42 PM, John Delacour wrote:


$ sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib
/usr/lib/libmysqlclient.18.dylib



Ahhh, I have had this link on my old laptop already. Thank you John!!! 
This link made it possible that the manual install succeeded :-) I am 
wondering, how I managed before.


And now I spend a lot of time again ... I forgot the hint of Chas. doing:

% ./intro6.pl

Which is not working with my

#!/usr/bin/perl

so I have to do it like that:

% perl intro6.pl

!!

or I have to change like follows:

#!/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/bin/perl


Thank you all for your great help!



marek


Re: Clean Install

2011-06-18 Thread Marek Stepanek

Ok, Sherm, I did reinstall everything now.

% which perl
/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/bin/perl

mysql-5.5.13-osx10.6-x86_64.dmg

and with cpanp

DBI

and manually DBD::mysql

% perl Makefile.PL --testuser=mstep --testpassword=s3kr1t

% make

% make test

with the result:


PERL_DL_NONLAZY=1 /Users/mstep/perl5/perlbrew/perls/perl-5.14.0/bin/perl 
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 
'blib/arch')" t/*.t

t/00base.t .. 1/6
#   Failed test 'use DBD::mysql;'
#   at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error:  Can't load 
'/Users/mstep/.cpanplus/5.14.0/build/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.bundle' 
for module DBD::mysql: 
dlopen(/Users/mstep/.cpanplus/5.14.0/build/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.bundle, 
2): Library not loaded: libmysqlclient.18.dylib
#   Referenced from: 
/Users/mstep/.cpanplus/5.14.0/build/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.bundle
#   Reason: image not found at 
/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/darwin-2level/DynaLoader.pm 
line 194.

#  at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
Bailout called.  Further testing stopped:  Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
[Marek-Stepaneks-MacBook-Pro:5.14.0/build/DBD-mysql-4.019] mstep% which perl
/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/bin/perl


the mysql daemon is running ... Here too this mystic error of DynaLoader 
...



marek


Re: Clean Install

2011-06-18 Thread Marek Stepanek

On 6/17/11 11:58 PM, Sherm Pendley wrote:



Don't shoot the messenger! :-)

DynaLoader is just doing its job and reporting the problem. DBD::mysql
can't load, because it's linked against libmysqlclient.18.dylib, and
that .dylib is MIA - that's the problem.

Is MySQL installed in the same place it was when you built DBD::mysql?

sherm--




Thank you Sherm!


Yes, first I was installing mysql, 64-bit, immediately after DBI, and 
than DBD::mysql, with some dirty tricks (see my first posting). And I 
have only one mysql installed on my HD ...


MIA - I was googeling this abbreviation. Does it mean "Miami
Dolphins" or "Miami Airport"? Sorry for this question, but some
times there are not only native speakers in such kind of
mailing list.

Should I start over again, install everything for the 40th time? Perhaps 
I should try with use lib ... ??? pointing to the right 
libmysqlclient.18.dylib ???



marek



Re: Clean Install

2011-06-17 Thread Marek Stepanek

On 6/17/11 11:58 PM, John Delacour wrote:

At 23:34 +0200 17/06/2011, Marek Stepanek wrote:


Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
at intro6.pl line 12



Probably a silly question, but have you installed MySQL?
<http://www.mysql.com/downloads/mysql/>

I'm afraid I can't advise since I can't stand MySQL and find life much
easier with SQLite.

JD



:-) I am meanwhile professional in installing mysql Databases. I am 
installing since one year now all possible variants of this software, 
32-bit, 64-bit. I am trying same time to install DBI module and 
DBD::mysql over it. DBI is installing always without any problem. But 
DBD::mysql only with many tricks. And the reason to change my one and a 
half year laptop, was also these troubles between 32-bit and 64-bit 
software, and all this Perl mess.


Probably you are right: I should learn an other Database. Or should I 
switch to PHP?


mysql daemon is running, when I start my script. The Database webdb is 
created:


$dbh = DBI->connect("DBI:mysql:host=localhost;database=webdb",
"webdev","webdevpass",

and there are four entries in "teams" ...

$sth = $dbh->prepare ("SELECT name, wins, losses FROM teams");


Thank you! Nice weekend!


marek





Re: Clean Install

2011-06-17 Thread Marek Stepanek

On 6/17/11 9:36 PM, Chas. Owens wrote:



#!/home/USERNAME/perl5/perlbrew/perls/perl-5.14.0/bin/perl

or

#!/usr/bin/env perl


perl foo.pl




Thank you Chas. for your insight! You suggested good ideas. 
Unfortunately I get with all your suggestions the same errors like the 
following:


$ perl intro6.pl

install_driver(mysql) failed: Can't load 
'/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/darwin-2level/auto/DBD/mysql/mysql.bundle' 
for module DBD::mysql: 
dlopen(/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/darwin-2level/auto/DBD/mysql/mysql.bundle, 
1): Library not loaded: libmysqlclient.18.dylib
  Referenced from: 
/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/darwin-2level/auto/DBD/mysql/mysql.bundle
  Reason: image not found at 
/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/darwin-2level/DynaLoader.pm 
line 194.

 at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at intro6.pl line 12

There is something wrong with the DynaLoader:

/Users/mstep/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/darwin-2level/DynaLoader.pm


A nice weekend to all!


marek





Clean Install

2011-06-17 Thread Marek Stepanek



Hello all!


Sorry for bothering you again with this long posting! Meanwhile I 
decided to make a clean install on my new MBP. Thinking, that this will 
help to solve all problems. But a clean install is making really heavy work:



Just if somebody is going through this hard experience too:
truecrypt and MacFuse (64 bit - hack) - I know the solution
stop spotlight to index your HD - I know the solution
stop to open .zip files after download - still searching for a solution
install Fink with the old gcc - I have only the new XCode 4.0.2 
installed - still searching for a solution

Apple is putting us more and more under tutelage ...


After the advice of Charly Garrison and Chas. Owens in the thread "New 
Perl-Installation on new OS X" I installed the perlbrew That's really a 
neat piece of software. I only did not understand how to make it 
permanent to use perlbrew and Perl 5.14 ...


And I am not sure, whether Perl 5.14 is really "everywhere" (?). 
Printing the %ENV I get also these lines:


VERSIONER_PERL_PREFER_32_BIT=>   no,
VERSIONER_PERL_VERSION  =>   5.10.0,

Is here the problem?

After a long while, finally I could install DBI and DBD-mysql. The last 
module was tricky, because while the "make test" there is an error 
message, that the Version Number of MakeMaker.pm "6.57_43" is not a 
numeric number ... So I have had to edit this file, and I shortened the 
version number to:


our $VERSION = '6.57'; (!)

The tests of DBD-mysql where only possible, by putting the testuser and 
testpassword like follows:


perl Makefile.PL --testuser=mstep --testpassword=s3kr1t (!)

although these settings were shown in the default in this process. Ok, 
finally everything is installed so far. But executing my humble 
mysql-scripts is popping up a new problem:


the content of a test script:

#!/usr/bin/perl

use strict;
use warnings;
use DBI;

my ($dbh, $sth, $anz);
$dbh = DBI->connect("DBI:mysql:host=localhost;database=webdb",
"webdev","webdevpass",
{PrintError => 1, RaiseError => 1});
$sth = $dbh->prepare ("SELECT name, wins, losses FROM teams");
$sth->execute ();
$anz=0;

while (my @zeile = $sth->fetchrow_array ()){
printf "name = %s, wins = %d, losses = %d\n",
$zeile[0], $zeile[1], $zeile[2];
++$anz;
}
print "$anz Zeilen insgesamt \n";
$sth->finish ();
$dbh->disconnect;

exit (0);


And I get the following errors:

% ./intro6.pl
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC 
contains: /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level 
/Library/Perl/Updates/5.10.0 
/System/Library/Perl/5.10.0/darwin-thread-multi-2level 
/System/Library/Perl/5.10.0 
/Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level 
/Network/Library/Perl/5.10.0 /Network/Library/Perl 
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.10.0 .) at (eval 3) line 3.

Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
 at ./intro6.pl line 8

And yes, yes, perlbrew activated the right perl:

perl -v

This is perl 5, version 14, subversion 0 (v5.14.0) built for darwin-2level


Thank you for your patience!


marek



Re: New Perl-Installation on new OS X

2011-06-09 Thread Marek Stepanek


Thank you Sherm!

This is a step in the right direction. But my cpanplus Perl is still 
broken, with messages like:


Unable to create a new distribution object for 'Archive::Tar', although 
I have no /sw in the %ENV or @INC any more.


% perl -V

even does not show a %ENV at all. This is certainly not right, isn't it? 
In the @INC is now:


@INC:
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0

the .profile is not changing anything, whether I remove it or not. And 
the X11 terminal is not working any more, not finding the path. If I put 
back the line


test -r /sw/bin/init.csh && source /sw/bin/init.csh

into my ~/.tchrc the X11-terminal (Fink) is working again. But I have 
back in my % perl -V


%ENV:

PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin:/System/Library/Perl/5.10.0:/Library/Perl/5.10.0"

Probably I will leave the apple Perl it as it is, and make a new install 
of perl-5.14.0 under /usr/local



Thank you again



marek






Re: New Perl-Installation on new OS X

2011-06-09 Thread Marek Stepanek

On 09.06.2011 05:38, Sherm Pendley wrote:



I'm probably over-cautious, but I never migrate - I always format and
make a clean install, then do a clean install of all my apps. I back
up my home directory, and copy it over, which preserves all my
personal preferences and such.

sherm--



Sherm, I would like to keep now my installation, as it is. If possible. 
Or I would compile perl-5.14.0 under /usr/local


But perhaps this list could help me, to get @INC and $PERL5LIB clean of 
/sw ... How is it possible, that I have $PERL5LIB set to


%ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"

I only see two files:

~/.profile

and

~/.tcshrc


in the first file I only have one line:

test -r /sw/bin/init.sh && . /sw/bin/init.sh

in .tcshrc is longer:


***

setenv LC_ALL C
setenv LANG en_GB.UTF-8
# export LC_MESSAGES="C"How to set this var?
# export ARCHFLAGS="-arch i386 -arch x86_64"

set complete=enhance
set addsuffix
set autoexpand
set histdup=erase
set autolist
set autocorrect
set backslash_quote
set correct=cmd
set dspmbyte=utf8
unset histlit
set symlinks=ignore
unset recexact
bindkey -k up history-search-backward
bindkey -k down history-search-forward
alias ls ls -sGF
alias rm rm -i
alias srm srm -i
alias mv mv -i

alias twics "cd ~/Documents/tschessfeils_new/twics_new"
alias mysql /usr/local/mysql/bin/mysql
alias mysqladmin /usr/local/mysql/bin/mysqladmin


set path = (/usr/local/mysql/bin $path)
set path = (/usr/local/bin $path)
set path = (/sw/include $path)
set path = (/usr/local/sbin $path)


alias files ls -lF \*/..namedfork/data \*/..namedfork/rsrc

test -r /sw/bin/init.csh && source /sw/bin/init.csh

***

To export the right PERL5LIB, can I add the following line to ~/.tcshrc

set PERL5LIB = (/System/Library/Perl/5.10.0:/Library/Perl/5.10.0)

?

Syntax seems alright, but I have still the /sw path at the beginning:

%ENV:

PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin:/System/Library/Perl/5.10.0:/Library/Perl/5.10.0"

And in @INC too:

@INC:
/sw/lib/perl5/5.10.0/darwin-thread-multi-2level
/sw/lib/perl5/5.10.0
/sw/lib/perl5/darwin-thread-multi-2level
/sw/lib/perl5
/sw/lib/perl5/darwin
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0

Sorry for this long email.


marek


Re: New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek


On 08.06.2011 18:03, Melton Low wrote:

xCode 4 should have been included with your new Mac.  Check in the
Optional Application install disc.

Mel




Not here in Germany :-( In old times there was XCode on the optional 
installer DVD. Now there are only toys: iDVD, Sound & Jingles, iPhoto 
... That's all, what Apple offers as extra for a 2600 Euro computer ...



marek


Re: New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek

On 08.06.2011 17:31, John Delacour wrote:

At 16:02 +0200 08/06/2011, Marek Stepanek wrote:



...So, gcc seems to be al right. Is it possible, that the migration
assistant has mixed up, 32bit compiled modules with 64bit? Or is there
a confusion with the Perl of Fink? Here my Perl:

Built under darwin
Compiled at Jan 26 2010 17:48:54
%ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
@INC:
/sw/lib/perl5/5.10.0/darwin-thread-multi-2level
/sw/lib/perl5/5.10.0 ...


I think you're going to have trouble until you get rid of everything
Fink has installed and everything it's changed in /usr/bin.

If I were you I'd probably delete /usr/bin/perl and replace it with a
link but I'd wait for others to give you more experienced advice.

I would also install the latest Xcode.

Note that gcc -v will give you gcc-4.0 and not gcc-4.2 unless you have
replaced Apple's original link, so maybe Fink did that too.

JD



Thank you John, Thank you Sherm!


I did install the new XCode.

My new laptop was a not really cheap: 2600 Euros, and Apple is 
asking for the XCode download 3.90 Euros. This is nit-picking in my 
eyes. I don't know, where Apple is going, but I see in the last years 
only toys and no real support of professionals.


gcc-4.2 was installed with the latest XCode 4.0.2 Is Fink installing 
into /usr/bin ? Or is it a misunderstanding?


Probably there are old and new mixed up from migrating from my back-up.


marek





New Perl-Installation on new OS X

2011-06-08 Thread Marek Stepanek



Hello all!


I have a new laptop. Apparently my Perl-Installation has problems. I 
tried to update all outdated modules with cpanplus; but I get on many, 
not all, modules error-messages, like:


Unable to create a new distribution object for 'HTML::Entities'

or

format not a string literal and no format arguments

With IO::Pty I got this message:

(see conf/compilerok.log). Suggestions:
1) The complier 'gcc-4.2' is not in your PATH. Add it
to the PATH and try again. OR
2) The compiler isn't installed on your system. Install it. OR
3) You only have a different compiler installed (e.g. 'gcc').
Either fix the compiler config in the perl Config.pm
or install a perl that was built with the right compiler
(you could build perl yourself with the available compiler).

making

% which gcc 

I get:

/usr/bin/gcc
making

% gcc -v

I get:
Using built-in specs.
Target: i686-apple-darwin10
	Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure 
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib 
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- 
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10 
--with-gxx-include-dir=/include/c++/4.2.1

Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

in /usr/bin my gcc is properly linked to gcc@ -> gcc-4.2


So, gcc seems to be al right. Is it possible, that the migration 
assistant has mixed up, 32bit compiled modules with 64bit? Or is there a 
confusion with the Perl of Fink? Here my Perl:


% perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
uname='darwin pizzly.apple.com 10.0 darwin kernel version 10.0.0: 
fri jul 31 22:46:25 pdt 2009; root:xnu-1456.1.25~1release_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= 
-Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none 
-Dcc=gcc-4.2'

hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe 
-fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',

optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', 
gccosandvers=''

intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8

alignbytes=8, prototype=define
  Linker and Libraries:
ld='gcc-4.2 -mmacosx-version-min=10.6.3', ldflags ='-arch x86_64 
-arch i386 -arch ppc -L/usr/local/lib'

libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, 
libperl=libperl.dylib

gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc 
-bundle -undefined dynamic_lookup -L/usr/local/lib'



Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
/Library/Perl/Updates/ comes before system perl directories
installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Jan 26 2010 17:48:54
  %ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
  @INC:
/sw/lib/perl5/5.10.0/darwin-thread-multi-2level
/sw/lib/perl5/5.10.0
/sw/lib/perl5/darwin-thread-multi-2level
/sw/lib/perl5
/sw/lib/perl5/darwin
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0


Thank you for your help!



marek


Re: Problems installing DBD::mysql

2011-02-12 Thread Marek Stepanek
On 04.02.2011 12:24, Jeremiah Foster wrote:
> Have you installed the mysql libraries on your OS X system first? 
> 
> You need more that just the perl bindings to MySQL, you need to have MySQL 
> installed on your machine, along with whatever libraries needed to run it. 
> That is to say, runtime and buildtime dependencies.
> 
> BTW, you may want to look into Postgres since MySQL was recently bought by 
> Oracle.
> 
> 
> Regards,
> 
> Jeremiah
> 
> 


Sorry, Jeremiah, I answered off list, privately. Here the contents of my
answer:


Hello Jeremiah!


Thank you for your answer! At least, there was one. I could not answer
you in time, because my only computer, my life partner, PBP 17' was in
clinic for two weeks. Now I have a new logic board, but still now
DBD::mysql module and not many answers in this group :-(

Of course I have mysql installed; and for the next one, asking
questions: yes, on my $PATH there are the mysql bin included:

% echo $PATH
/sw/bin:/sw/sbin:/usr/local/sbin:/sw/include:/usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin



Best greetings to all



marek

Send instant messages to your online friends http://uk.messenger.yahoo.com 


Problems installing DBD::mysql

2011-01-30 Thread Marek Stepanek


Hello all!


This is my first posting here, after a long silent time, receiving the
postings of this group.

I have a problem, which I am unable to resolve on myself:

I want to install since four days now DBD::mysql on my MBP, with 64bit
Intel chip.

I tried with both version of MYSQL Community Server:

mysql-5.5.8-osx10.6-x86_64.tar.gz (the 64bit version)
and
mysql-5.5.8-osx10.6-x86.tar.gz(the 32bit version)

I think I am not doing something wrong, installing the MYSQL Server. (:
Meanwhile I am a Professional, doing it :)

But installing DBD::mysql fails already with make, and both servers: the
64bit and the 32bit ...

First my Perl:

% perl -v

This is perl, v5.10.0 built for darwin-thread-multi-2level

The installing procedure of DBD::mysql fails like follows. I am in the
folder ~/.cpanplus/5.10.0/build/DBD-mysql-4.018:


1.

% perl Makefile.PL

Here one warning is perhaps important:

Multiple copies of Driver.xst found in:
/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI/
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/DBI/
at Makefile.PL line 907
Using DBI 1.611 (for perl 5.01 on darwin-thread-multi-2level)
installed in /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI/

2. I fire up the MYSQL-Server to grant the privileges for the test user:

% mysql> grant all privileges on test.* to 'mstep'@'localhost'
  identified by 's3kr1t';

3.  % make

And here are starting serious problems: I get plenty of following warnings:

dbdimp.c: In function 'alloc_param':
dbdimp.c:212: warning: format not a string literal and no format arguments

4.  % make test
4.(Var) % sudo make test

Both are failing with following messages:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .. 1/6
#   Failed test 'use DBD::mysql;'
#   at t/00base.t line 21.
# Tried to use 'DBD::mysql'.
# Error:  Can't load
'/Users/mstep/.cpanplus/5.10.0/build/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle'
for module DBD::mysql:
dlopen(/Users/mstep/.cpanplus/5.10.0/build/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle,
2): Library not loaded: libmysqlclient.16.dylib
#   Referenced from:
/Users/mstep/.cpanplus/5.10.0/build/DBD-mysql-4.018/blib/arch/auto/DBD/mysql/mysql.bundle
#   Reason: image not found at
/System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm
line 207.
#  at (eval 7) line 2
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
Bailout called.  Further testing stopped:  Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255

Could somebody help me out? Please!


Best greetings from Munich


marek
Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: LWP install error

2007-08-29 Thread Marek Stepanek
On 28.08.2007 15:36, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:

> On Aug 28, 2007, at 9:08 AM, Marek Stepanek wrote:
> 

> 
>> live/apache.t11  1
>> live/jigsaw-md5-get.t21  2
>> live/jigsaw-md5.t21  2
>> Failed 3/41 test scripts. 3/831 subtests failed.
> 
> I recall some talk about server-side problems with some of LWP's
> "live" tests. If I recall right, when you're configuring the module
> there's a prompt about whether to skip those or run them.
> 
> sherm--
> 
>


Thank you Sherm! 

This was it: 

%
You appear to be directly connected to the Internet.  I have some tests
that tries to access some sites on the net to verify that the new HTTP/1.1
support works as it should.

Do you want to enable these tests? [y] n

:-)

One little supplemental question:

%% echo $PATH
/sw/bin:/sw/sbin:/sw/include:/usr/local/bin:/usr/local/mysql/bin:/bin:/sbin:
/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin:/usr/X11R6/bin

Where is the $PATH-file to push the /sw to the end? The path is not saved in
.tcshrc nor .profile ... If I remember well it was somewhere in /Library?
May I edit this file by hand?


Thank you again


Marek






___ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease 
of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html



LWP install error

2007-08-28 Thread Marek Stepanek


Hello all,


Have a new MBP, 17 inch :-) I need to install many many things new.

First I installed a new Perl 5.8.8 in /usr/local/ - Apple's OSX is
up-to-date and Xcode installed!

First something, where I am not sure about: I made

% mv /usr/bin/perl /usr/bin/perl_out
% ln /usr/local/bin/perl5.8.8 /usr/bin/perl

Is this right?

Now, my question about installing LWP: I tried to install LWP with cpan, but
got some test-errors (end of posting).

Then I tried to install everything by hand. The modules, which are needed
before the install of LWP I installed by hand:

  URI
  MIME-Base64
  HTML-Parser
  libnet
  Digest-MD5
  Compress-Zlib

Out of my folder: /usr/local/src/

But now the same errors from "make test" as before (end of posting). I
thought probably I have to switch on the Apache-Server and I started the
"Personal File Sharing" in my Sharing-Pref-Panel. Same errors!

Could be somebody help me out? Thank you in advance!



marek


...

live/apache-listingok
live/apacheFAILED test 1
Failed 1/1 tests, 0.00% okay
live/jigsaw-auth-b.ok
live/jigsaw-auth-d.ok
live/jigsaw-chunk..ok
live/jigsaw-md5-getFAILED test 2
Failed 1/2 tests, 50.00% okay
live/jigsaw-md5FAILED test 2
Failed 1/2 tests, 50.00% okay
live/jigsaw-neg-getok
live/jigsaw-negok
live/jigsaw-te.ok
Failed Test   Stat Wstat Total Fail  List of Failed

---
live/apache.t11  1
live/jigsaw-md5-get.t21  2
live/jigsaw-md5.t21  2
Failed 3/41 test scripts. 3/831 subtests failed.
Files=41, Tests=831, 73 wallclock secs ( 2.66 cusr +  0.59 csys =  3.25 CPU)
Failed 3/41 test programs. 3/831 subtests failed.
make: *** [test] Error 2




LWP install error

2007-08-28 Thread Marek Stepanek




Hello all,


Have a new MBP, 17 inch :-) I need to install many many things new.

First I installed a new Perl 5.8.8 in /usr/local/ - Apple's OSX is
up-to-date and Xcode installed!

First something, where I am not sure about: I made

% mv /usr/bin/perl /usr/bin/perl_out
% ln /usr/local/bin/perl5.8.8 /usr/bin/perl

Is this right?

Now, my question about installing LWP: I tried to install LWP with cpan, but
got some test-errors (end of posting).

Then I tried to install everything by hand. The modules, which are needed
before the install of LWP I installed by hand:

  URI
  MIME-Base64
  HTML-Parser
  libnet
  Digest-MD5
  Compress-Zlib

Out of my folder: /usr/local/src/

But now the same errors from "make test" as before (end of posting). I
thought probably I have to switch on the Apache-Server and I started the
"Personal File Sharing" in my Sharing-Pref-Panel. Same errors!

Could be somebody help me out? Thank you in advance!



marek


...

live/apache-listingok
live/apacheFAILED test 1
Failed 1/1 tests, 0.00% okay
live/jigsaw-auth-b.ok
live/jigsaw-auth-d.ok
live/jigsaw-chunk..ok
live/jigsaw-md5-getFAILED test 2
Failed 1/2 tests, 50.00% okay
live/jigsaw-md5FAILED test 2
Failed 1/2 tests, 50.00% okay
live/jigsaw-neg-getok
live/jigsaw-negok
live/jigsaw-te.ok
Failed Test   Stat Wstat Total Fail  List of Failed

---
live/apache.t11  1
live/jigsaw-md5-get.t21  2
live/jigsaw-md5.t21  2
Failed 3/41 test scripts. 3/831 subtests failed.
Files=41, Tests=831, 73 wallclock secs ( 2.66 cusr +  0.59 csys =  3.25 CPU)
Failed 3/41 test programs. 3/831 subtests failed.
make: *** [test] Error 2




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com



Re: Module Aspell::Text does not install

2006-12-16 Thread Marek Stepanek

thank you all for your answers.


On 13.12.2006 23:59, "Rick Frankel" <[EMAIL PROTECTED]> wrote:

> On Tue, Dec 12, 2006 at 10:46:46PM +0100, Marek Stepanek wrote:
>> t/05-coreNOK 4/17
>> #   Failed test 'Make sure word "test" is in dictionary'
>> #   at t/05-core.t line 37.
>> # 
>> 
>> # * Error: No word lists can be found for the language "en_US".
>> # *
>> # * Are you sure you have the Aspell en_US dictionary installed?
> 
> This is your hint. You have aspell installed but no dictionaries.
> since you are refering to /sw, i assume you have used fink to install
> aspell. From the fink website:
> 
> Package aspell
> ...
> Description: Spell checker better than ispell
> 
> No dictionaries are installed - you'll need to install the
> aspell-en package or another aspell dictionary. Dictionaries that were
> used on previous versions of aspell must be updated to work with this
> version.
> 
> You need to install the package aspell-en.
> 
> 
> rick
> 


[markslap:~/Documents] mareklap% fink install aspell-en
Information about 2445 packages read in 1 seconds.
No packages to install.

...

I think I will give up with the Module Text::Aspell

What I did is 

mareklap% fink selfupdate

mareklap% fink update-all
Information about 2445 packages read in 1 seconds.
Can't resolve dependency "system-perl581" for package "intltool-0.34.1-3"
(no matching packages/versions found)
Exiting with failure.

???

Then I tried to install Text::Aspell manually, but as before:

[markslap:~/.cpan/build/Text-Aspell-0.06] mareklap% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.ok
t/02-pod.skipped
all skipped: set TEST_POD to enable this test
t/05-coreNOK 4/17
#   Failed test 'Make sure word "test" is in dictionary'
#   at t/05-core.t line 37.
# 

# * Error: No word lists can be found for the language "en_US".
# *
# * Are you sure you have the Aspell en_US dictionary installed?
# *
# 
*
t/05-coreNOK 6/17
#   Failed test 'suggest for word 'testt''
#   at t/05-core.t line 56.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in join or string at t/05-core.t line 61.
t/05-coreNOK 7/17
#   Failed test 'search for testt returned more than 2 []'
#   at t/05-core.t line 61.
t/05-coreNOK 8/17
#   Failed test 'add 'testt' to the aspell session'
#   at t/05-core.t line 65.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in pattern match (m//) at t/05-core.t line 71.
t/05-coreNOK 9/17
#   Failed test ''testt' added to session now is returned in suggest'
#   at t/05-core.t line 71.
# See README for more info on store_replacemnt
Use of uninitialized value in pattern match (m//) at t/05-core.t line 79.
t/05-coreNOK 11/17
#   Failed test 'Searching for "foo" found replacement "bar"'
#   at t/05-core.t line 79.
# clear_session may fail like store_replacement.  See README
Use of uninitialized value in pattern match (m//) at t/05-core.t line 86.
t/05-coreNOK 14/17
#   Failed test '0 dictionaries listed'
#   at t/05-core.t line 91.
t/05-coreNOK 15/17
#   Failed test '0 dictionaries found with dictionary_info'
#   at t/05-core.t line 94.
# Looks like you failed 8 tests of 17.
t/05-coredubious
Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 4, 6-9, 11, 14-15
Failed 8/17 tests, 52.94% okay
Failed Test Stat Wstat Total Fail  List of Failed

---
t/05-core.t8  2048178  4 6-9 11 14-15
1 test skipped.
Failed 1/3 test scripts. 8/18 subtests failed.
Files=3, Tests=18,  1 wallclock secs ( 0.38 cusr +  0.05 csys =  0.43 CPU)
Failed 1/3 test programs. 8/18 subtests failed.
make: *** [test_dynamic] Error 8


so thanks again to all who tried to help. I can live with my Aspell
installation as it is. Also if I am not satisfied, to spell every file from
the beginning. (My first question is still not answered: may I check with
the Module Text::Aspell certain, new lines?)


greetings to all


marek




Send instant messages to your online friends http://uk.messenger.yahoo.com 



Re: Module Aspell::Text does not install

2006-12-12 Thread Marek Stepanek

thank you for your answer!


On 11.12.2006 15:31, "Boysenberry Payne" <[EMAIL PROTECTED]>
wrote:

> Probably an issue of making sure /sw/bin/ is in your path.
> Try adding it to your path or making sure its in your path before
> running cpan.

mareklap% echo $PATH
/usr/local/mysql/bin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/loc
al/teTeX/bin/powerpc-apple-darwin-current:/usr/local/bin:/usr/X11R6/bin

> Or you can also use cpan to get then install manually by going to
> the .cpan/build/(aspell sub directory)
> See if it will install and test without cpan, then check the test
> error logs if it doesn't.

that doesn't help :-( but the shell spits out a long error message - the
same like cpan does -, which I paste here at the end.

> 
> Hope that helps.
> 
> I would try it myself, but I've moved on to the Universal Binary
> world...
> 
> 
> Boysenberry Payne
> [EMAIL PROTECTED]
> 
> 

And here comes my fundamental question: what is the difference between
"Universal Binary world", the fink installation under the tree of sw/ and my
/usr/local/ ... Please I don't want you to explain the basics of Macintosh
plate form, but perhaps a link I would appreciate very much ...

Is it possible to install all my stuff from sw/ into /usr/local/ to avoid
confusion of my Perl Mudules, or at least the Aspell? By the way my Perl is
(and I post it here, also if it is long, because you may see here the error
resulting of a possible confusion in the different Perl-Installations):

mareklap% perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
osname=darwin, osvers=7.9.0, archname=darwin-2level
uname='darwin markslap.local 7.9.0 darwin kernel version 7.9.0: wed mar
30 20:11:17 pst 2005; root:xnuxnu-517.12.7.obj~1release_ppc power macintosh
powerpc '
config_args='-de [EMAIL PROTECTED] [EMAIL PROTECTED]'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1671)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under darwin
  Compiled at Apr 10 2006 21:08:15
  %ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
  @INC:
/sw/lib/perl5
/sw/lib/perl5/darwin
/usr/local/lib/perl5/5.8.8/darwin-2level
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl

Here the errors of trying to install the module Text::Aspell by "hand":

[markslap:~/.cpan/build/Text-Aspell-0.06] mareklap% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.ok
t/02-pod.skipped
all skipped: set TEST_POD to enable this test
t/05-coreNOK 4/17
#   Failed test 'Make sure word "test" is in dictionary'
#   at t/05-core.t line 37.
# 

# * Error: No word lists can be found for the language "en_US".
# *
# * Are you sure you have the Aspell en_US dictionary installed?
# *
# 
*
t/05-coreNOK 6/17
#   Failed test 'suggest for word 'testt''
#   at t/05-core.t line 56.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in join or string at t/05-core.t line 61.
t/05-coreNOK 7/17
#   Failed test 'search for testt returned more than 2 []'
#   at t/05-core.t line 61.
t/05-coreNOK 8/17
#   Failed test 'add 'testt' to the aspell session'
#   at t/05-core.t line 65.
# Error: No word lists can be found for t

cpan not not working because of unsafe ownership on configuration file gpg

2006-06-16 Thread Marek Stepanek

Hello all,

I am unable to help myself out of this problem. My module cpan is always
complaining, when I issue an install command with errors like follows:

***
gpg: WARNING: unsafe ownership on configuration file
`/Users/mareklaptop/.gnupg/gpg.conf'
gpg: WARNING: unsafe ownership on configuration file
`/Users/mareklaptop/.gnupg/gpg.conf'
gpg: Signature made Sun Jun 11 18:26:58 2006 CEST using DSA key ID 450F89EC
gpg: external program calls are disabled due to unsafe options file
permissions
gpg: keyserver communications error: general error
gpg: Can't check signature: public key not found

Signature invalid for distribution file. Please investigate.
***

I have installed gpg, it is true some weeks ago, because I was sometimes
stumbling over these gpg messages with the Module cpan. But now, nothing
goes ... 

The rights in my gnupg-folder are as follows:

[markslap:~/.gnupg] mareklap% ls -l
total 224
 16 -rw---  1 mareklap  staff   8082 12 Jun 22:28 gpg.conf
184 -rw-r--r--  1 mareklap  staff  93826  5 Jun 07:58 pubring.gpg
  8 -rw---  1 mareklap  staff600 10 Jun 06:49 random_seed
  8 -rw---  1 mareklap  staff   1107 17 Apr 12:06 secring.gpg
  8 -rw---  1 mareklap  staff   1200  5 Jun 07:59 trustdb.gpg

I already changed the rights of gpg.conf to 755, without any success. In the
config-file ( gpg.conf ) is an uncommented:

keyserver hkp://subkeys.pgp.net

and

keyserver-options auto-key-retrieve



thank you very much for any hint



marek


ps: MacOS 10.3.9 - Perl v5.8.8


-- 
___

the embassy for talented young musicians
Podium International | Marek Stepanek | [EMAIL PROTECTED]
http://www.PodiumInternational.org
___





Re: cpan not not working because of unsafe ownership on configuration file gpg

2006-06-14 Thread Marek Stepanek
On 13.06.2006 22:12, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:

> 
> A better option is to install and use the latest CPAN.pm module,
> which allows you to supply an alternative to the final "make install"
> command. You can configure it to use "sudo make" instead of just
> "make" for that step, so that you no longer have to run the CPAN
> shell itself with sudo. That, in turn, means that *only* the install
> step will be run as root; the download, build, and test steps will be
> run as your normal user login.
> 
> The second option is more work, but it reduces the amount of stuff
> that's running as root - which is always a good idea.
> 
> sherm--
> 

Which bundle exactly you suggest, that I install ? Sorry for this dump
question, but making

cpan> i /cpan/

issues 317 answers. Nothing with a pure cpan.pm ...

Probably you mean Bundle::CPAN or Bundle::CPANPLUS ? or something else ?


thank you for your patience


marek



-- 
___

the embassy for talented young musicians
Podium International | Marek Stepanek | [EMAIL PROTECTED]
http://www.PodiumInternational.org
___





___ 
All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html



Re: cpan not not working because of unsafe ownership on configuration file gpg

2006-06-13 Thread Marek Stepanek
On 13.06.2006 22:12, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:


> 
> It means that the user running gpg (root) is not the same as the user
> that owns the gpg.conf file (mareklaptop).
> 
> If verifying module signatures is your only use for GPG, you could
> simply chown that file to make it owned by root.
> 
> A better option is to install and use the latest CPAN.pm module,
> which allows you to supply an alternative to the final "make install"
> command. You can configure it to use "sudo make" instead of just
> "make" for that step, so that you no longer have to run the CPAN
> shell itself with sudo. That, in turn, means that *only* the install
> step will be run as root; the download, build, and test steps will be
> run as your normal user login.
> 
> The second option is more work, but it reduces the amount of stuff
> that's running as root - which is always a good idea.
> 
> sherm--


thank you Sherm, 


this was it. It is late in Munich now, so I tried only the first solution:

% sudo chown root:staff .gnupg/gpg.conf

and 

% sudo chown root:staff .gnupg/

cpan is working now :-) I will care tomorrow about the second solution ...
So long (until tomorrow evening) thank you again


marek


ps: but one thing is worrying me: I am unable now, to change back to the
folder .gnupg ...

[markslap:~] mareklap% sudo cd .gnupg/
sudo: cd: command not found

there is probably something fundamental, which I do not understand about
root in the shell ???




___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html



cpan not not working because of unsafe ownership on configuration file gpg

2006-06-13 Thread Marek Stepanek

Hello all,

I am unable to help myself out of this problem. My module cpan is always
complaining, when I issue an install command with errors like follows:

***
gpg: WARNING: unsafe ownership on configuration file
`/Users/mareklaptop/.gnupg/gpg.conf'
gpg: WARNING: unsafe ownership on configuration file
`/Users/mareklaptop/.gnupg/gpg.conf'
gpg: Signature made Sun Jun 11 18:26:58 2006 CEST using DSA key ID 450F89EC
gpg: external program calls are disabled due to unsafe options file
permissions
gpg: keyserver communications error: general error
gpg: Can't check signature: public key not found

Signature invalid for distribution file. Please investigate.
***

I have installed gpg, it is true some weeks ago, because I was sometimes
stumbling over these gpg messages with the Module cpan. But now, nothing
goes ... 

The rights in my gnupg-folder are as follows:

[markslap:~/.gnupg] mareklap% ls -l
total 224
 16 -rw---  1 mareklap  staff   8082 12 Jun 22:28 gpg.conf
184 -rw-r--r--  1 mareklap  staff  93826  5 Jun 07:58 pubring.gpg
  8 -rw---  1 mareklap  staff600 10 Jun 06:49 random_seed
  8 -rw---  1 mareklap  staff   1107 17 Apr 12:06 secring.gpg
  8 -rw---  1 mareklap  staff   1200  5 Jun 07:59 trustdb.gpg

I already changed the rights of gpg.conf to 755, without any success. In the
config-file ( gpg.conf ) is an uncommented:

keyserver hkp://subkeys.pgp.net

and

keyserver-options auto-key-retrieve



thank you very much for any hint



marek


ps: MacOS 10.3.9 - Perl v5.8.8


-- 
___

the embassy for talented young musicians
Podium International | Marek Stepanek | [EMAIL PROTECTED]
http://www.PodiumInternational.org
___




___ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New 
Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html



Re: Install Apache, mod_perl

2006-04-08 Thread Marek Stepanek
On 07.04.2006 22:59, "Christian Huldt" <[EMAIL PROTECTED]> wrote:

> well, you will have to read docs, lots of them...
> 
> who can open port < 1025?

Where I find information about this one?

> 
> what is a database server?
> 
> etc. are important questions
> 
> That said, http://xampp.sf.net might easy installation a bit, though
> it seems you have most pieces in place...

This would be my last attempt, before I am giving up.

> 
> 7 apr 2006 kl. 21.45 skrev Marek Stepanek:
> 

I am reading and reading the manuals, but until now, I am unable to compile
Bundle::DBD::mysql and mod_perl :-(

here how my Apache2 is configured:

% /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.0
Server built:   Apr  5 2006 08:49:40
Server's Module Magic Number: 20051115:0
Architecture:   32-bit
Server MPM: Prefork
  threaded: no <--is this one wrong? Recompile?
forked: yes (variable process count)
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Starting an stopping Apache I get this message :

httpd: Could not reliably determine the server's fully qualified domain
name, using markslap.local for ServerName

This is my last try, to get some help from this group. Thanks to everybody
who replied until now.


marek




___ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. 
http://www.yahoo.co.uk/blackberry



Re: Install Apache, mod_perl

2006-04-07 Thread Marek Stepanek
On 07.04.2006 19:37, "Robert D. Sharp" <[EMAIL PROTECTED]> wrote:

> Sorry Marek, I am not a perl programmer by any means but it seemed to
> me that you did get an answer.
> 
> I looked back at the archives http://www.nntp.perl.org/group/
> perl.macosx for this subject and see a couple of responses.


Bob, I am confused! Sorry, but what the hell means this link? Am I on a
mailing list, or something, what seems to be a mailing list, but is
connected to a use group? (I am blushing!)


> 
> When I installed MySql, php and Apache 2 on my laptop, I chose a
> different route and it seems to me that it is important to keep the
> default install of Apache (1.3.33) separate mentally since they are
> different versions.  I can run both at the same time on different
> ports but can not start Apache 1 before starting Apache 2 since
> Apache 2 checks for another running instance of any other version.

Ohh, you are lucky, I tried this for two weeks now! But impossible to
install Bundle::DBD::mysql and mod_perl

> 
> Your question, actually as I read it, really isn't a perl question,
> it is an Apache configuration question.

I think there is something wrong with my root and user account. I am the
only user on my Laptop, but I was able to install Apache2 as root only (see
my first posting). 

> 
> Have you located and/or created the error log cited in the error
> message you sent and tried re-starting Apache 2 ensuring that the
> default version is NOT running?

% which apachectl
/usr/sbin/apachectl

is this the apple Apache or the new one?

ahh! this is interesting:

% apachectl fullstatus

   Not Found

   The requested URL /server-status was not found on this server.
 _


Apache/1.3.33 Server at markslap.local Port 80

when trying to start the server, it is only possible with sudo:

% apachectl start
Processing config directory: /private/etc/httpd/users/*.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started

% sudo !!
sudo apachectl start
Password:
/usr/sbin/apachectl start: httpd (pid 5898) already running

aha! there it is! I am already running on Apples Apache server!

% sudo apachectl stop
% /usr/local/apache2/bin/apachectl start
% sudo /usr/local/apache2/bin/apachectl start

But the install of DBD, whith running Apache2

cpan> install Bundle::DBD::mysql

is giving many errors like:

Can't exec "mysql_config": No such file or directory at Makefile.PL line
73.

% sudo find -E / -iregex ".*mysql_config.*" -print
/usr/local/mysql-max-5.0.19-osx10.3-powerpc/bin/mysql_config
/usr/local/mysql-max-5.0.19-osx10.3-powerpc/man/man1/mysql_config.1

Probably I have to put the

/usr/local/mysql-max-5.0.19-osx10.3-powerpc/bin/

also in my $PATH ? In any case my $PATH:

% echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/bin/powerpc-
apple-darwin-current:/usr/local/bin:/usr/X11R6/bin

Other errors while 

cpan> install Bundle::DBD::mysql


Cannot connect: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.




> 
> I am getting off topic for this list.  I am NOT an Apache expert and
> so may not be the person to talk to but perhaps I can help off list.
> 
> Bob
> 
> 

Thank you Bob for your answer!

Best greetings to all



marek


-- 
___

the embassy for talented young musicians
Podium International | Marek Stepanek | [EMAIL PROTECTED]
http://www.PodiumInternational.org
___





___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com



Re: Install Apache, mod_perl

2006-04-07 Thread Marek Stepanek
On 06.04.2006 07:50, "Marek Stepanek" <[EMAIL PROTECTED]> wrote:


Funny! My first posting here and nobody is answering. Did I something wrong?
Am I Off-Topic perhaps? Do I have to explain more or less, when asking to
this group? 


greetings from Munich


marek




___ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. 
http://www.yahoo.co.uk/blackberry



FW: Install Apache, mod_perl

2006-04-05 Thread Marek Stepanek

-- Weitergeleitete Nachricht
Von: Marek Stepanek <[EMAIL PROTECTED]>
Datum: Wed, 05 Apr 2006 23:58:23 +0200
An: Andrew Brosnan <[EMAIL PROTECTED]>
Unterhaltung: Install Apache, mod_perl
Betreff: Re: Install Apache, mod_perl

On 05.04.2006 23:20, "Andrew Brosnan" <[EMAIL PROTECTED]> wrote:

> On 4/5/06 at 11:14 PM, [EMAIL PROTECTED] (Marek Stepanek) wrote:
> 
>> %   perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
>> 
>> [warning] mod_perl dso library will be built as mod_perl.so
>> [warning] You'll need to add the following to httpd.conf:
>> [warning] 
>> [warning]   LoadModule perl_module modules/mod_perl.so
>> [warning] 
>> [warning] depending on your build, mod_perl might not live in
>> [warning] the modules/ directory.
>> 
>> [warning] Check the results of
>> [warning] 
>> [warning]   $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
>> [warning] 
>> [warning] and adjust the LoadModule directive accordingly.
>> 
>> So I change /usr/local/apache2/conf/httpd.conf and put at the end of
> the
>> file: 
>> 
>> /usr/local/apache2/conf/httpd.conf
>> 
>> is this right? 
> 
> No, it's saying add 'LoadModule perl_module modules/mod_perl.so' (no
> quotes) to your httpd.conf file which is *located* at
> /usr/local/apache2/conf/httpd.conf. You will likely see many other
> LoadModule directives in the file, add it there.
> 
> It also warns that your mod_perl may be located other than at {server
> root}/modules/mod_perl.so, so you may want to double check that.
> 
> Regards,
> Andrew
> 


thanx Andrew, this was an error of copy and paste. I put to the config file

LoadModule perl_module modules/mod_perl.so

without quotes ... 


will be back tomorrow evening.


marek


-- 
___

the embassy for talented young musicians
Podium International | Marek Stepanek | [EMAIL PROTECTED]
http://www.PodiumInternational.org
___


-- Ende der weitergeleiteten Nachricht




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com



Install Apache, mod_perl

2006-04-05 Thread Marek Stepanek




Hello all, 


this is my first posting here and I am not such a pro as you all around here
... 

I want to install a local mysql-server and I am new to mysql. I installed
everything as asked in my first mysql-book (MySQL & Perl, Developer's Guide,
Paul DuBois). Only over mod_perl and Bundle::DBD my cpan is refusing to
proceed to installation. So I tried it manually.

To achieve this I installed a fresh Perl ( v5.8.8 running on MacOS 10.3.9)
and then I installed also an updated Apache. But I suppose there is
something wrong with my permissions. The installation was like follows:

I download and untar Apache and mod_perl into /usr/local/src

The Apache-Server is installed without any options to the default folders
like follows, but *with* sudo:

%  ./config #without anything behind
%   make && make test
%   sudo make && make test
%   sudo apachectl start

It seems to work. But impossible to compile mod_perl ...

Permission issue? Already

%   perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs

issuing: 

Reading Makefile.PL args from @ARGV
   MP_APXS = /usr/local/apache2/bin/apxs
no conflicting prior mod_perl version found - good.
Configuring Apache/2.2.0*/ mod_perl2/2.0.2 Perl/v5.8.8
open /usr/local/src/mod_perl-2.0.2/lib/Apache2/BuildConfig.pm: Permission
denied at lib/Apache2/Build.pm line 939.

so I do it with sudo ...

issuing after many " Writing Makefile for ... "

[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning] 
[warning]   LoadModule perl_module modules/mod_perl.so
[warning] 
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning] 
[warning]   $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
[warning] 
[warning] and adjust the LoadModule directive accordingly.

So I change /usr/local/apache2/conf/httpd.conf and put at the end of the
file: 

/usr/local/apache2/conf/httpd.conf

is this right? 

then I do:

[markslap:/usr/local/src/mod_perl-2.0.2] mareklap% make && make test
cd "src/modules/perl" && make
cc -I/usr/local/src/mod_perl-2.0.2/src/modules/perl
-I/usr/local/src/mod_perl-2.0.2/xs -I/usr/local/apache2/include
-I/usr/local/apache2/include  -I/usr/local/apache2/include -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE
-DMOD_PERL -DMP_COMPAT_1X -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -Os  \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
{standard input}:unknown:FATAL:can't create output file: mod_perl.o
make[1]: *** [mod_perl.lo] Error 1
make: *** [modperl_lib] Error 2

I do the same with sudo :

%   sudo !!

which seems to work but after some hard and impressing work - there are
people out there, which not only understand these lines, but also have
written all this stuff in their code!!! - appears some errors:

using Apache/2.2.0 (prefork MPM)

waiting 120 seconds for server to start: .[Wed Apr 05 14:22:27 2006] [info]
6 Apache2:: modules loaded
[Wed Apr 05 14:22:27 2006] [info] 0 APR:: modules loaded
[Wed Apr 05 14:22:27 2006] [info] base server + 27 vhosts ready to run tests
.[  error] Failed to find a config file to save the custom configuration in
.   (in cleanup) Can't open
/usr/local/src/mod_perl-2.0.2/t/conf/perlsection.conf: Permission denied at
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf line 56.
Syntax error on line 54 of
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf:
\t(in cleanup) Can't open
/usr/local/src/mod_perl-2.0.2/t/conf/perlsection.conf: Permission denied at
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf line 56.\n


...
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.

[  error] server failed to start! (t/logs/error_log wasn't created, start
the server in the debug mode)
++
| Please file a bug report: http://perl.apache.org/bugs/ |
++
make: *** [run_tests] Error 1


And with running Apache it is the same! But I can start Apache only as root:

% apachectl start
Processing config directory: /private/etc/httpd/users/*.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started

Sorry for this long posting.


greetings to all from Munich (winter is back)


marek



-- 
_____

Newbie: renaming files

2005-06-11 Thread Marek Stepanek

Hello all,


Sorry for this beginners question. I have many files which I want to rename
as follows: 

$src=>  $dest

file01.jpg  =>  file01_01.jpg
file02.jpg  =>  file01_02.jpg
file03.jpg  =>  file01_03.jpg
file04a.jpg =>  file01_04a.jpg
file04b.jpg =>  file01_04b.jpg
file05.jpg  =>  file01_05.jpg
file06a.jpg =>  file01_06a.jpg
file06b.jpg =>  file01_06b.jpg
file06c.jpg =>  file01_06c.jpg
file06d.jpg =>  file01_06d.jpg
file07.jpg  =>  file01_07.jpg
file08.jpg  =>  file01_08.jpg
file09.jpg  =>  file01_09.jpg
file10.jpg  =>  file01_10.jpg
file11.jpg  =>  file01_11.jpg
file12.jpg  =>  file01_12.jpg
file13.jpg  =>  file02_01.jpg
file14.jpg  =>  file02_02.jpg
...
file24.jpg  =>  file02_12.jpg
file25.jpg  =>  file03_01.jpg



What I have so far is the following script :


#!/usr/bin/perl -w


use strict;
use warnings;


for my $src (@ARGV) {
next unless $src =~ /^(file)(\d+[a-f]?)(\.jpg)$/i;
my ($root, $nr, $ext) = ($1, $2, $3);
next unless (($nr =~ /(d+)/) and ($1 > 12)) ; # here is my big problem !
my $dest = lc ("$root" . "01_" . "$nr$ext");

if(-e $dest) {
warn "$dest already exists. Skipping ...\n";
next;
}
print "Renaming would rename the following files \n
$src\t=>\t$dest\n";

#rename $src, $dest
#or warn "Failed to rename $src => $dest: $!";
} 

my problem, where I am stuck for the moment, is the test, whether the number
part of my original file name is of a certain amount :

next unless (($nr =~ /(d+)/) and ($1 > 12)) ;

better would be a test, whether $1 is between 1-12 or 13-24 or 25-36 ...

$src=>  $dest

files1-12   =>  file01_
files13-24  =>  file02_
files25-36  =>  file03_


but there are files with extensions like 01a, 01b, 01c etc which count only
for one ! 


Could somebody be so kind and give my some help ?


Thank you



marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com



Re:Problems installing modules

2004-12-05 Thread Marek Stepanek
On 05/12/2004 13:56, "William Ross" <[EMAIL PROTECTED]> wrote:

> On 5 Dec 2004, at 09:07, Marek Stepanek wrote:
> 
>> * installing blib/man1 to ?~name
>> * with PERL_INSTALL_ROOT ''
>> * mkpath(?~name)
>> mkdir ?~name: Invalid argument at
>> /usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 115
>> make: *** [pure_site_install] Error 255
> 
> your perl configuration is slightly broken. If you look in (probably)
> 
> /usr/local/lib/perl5/5.8.5/darwin-2level/Config.pm
> 
> you should see a couple of lines like this:
> 
> installman1dir='/usr/share/man/man1'
> installman3dir='/usr/share/man/man3'
> 
> In mine they're around line 760. The value for installman1dir in yours
> is broken, I'm guessing. Others may be too.
> 
> If this causes alarm you could reinstall perl (in which case I'd
> recommend doing it with --PREFIX=/usr to get the proper apple /Library
> paths, but that's just me). I don't think you need to reinstall OS X
> yet :)
> 
> best
> 
> will
> 
> 

Will,


I made an reinstall :

% cd /usr/local/
% ls -aF
./  ../ bin/lib/man/
% sudo rm -r bin/
% sudo rm -r lib/
% sudo rm -r man/
% sudo mkdir src
% sudo chown root:staff src
% cd src/
% sudo mv ~/Desktop/perl-5.8.6/ .
% cd perl-5.8.6/
% setenv LC_ALL C
% echo "setenv LC_ALL C" >> ~/.tcshrc
% ./Configure -de [EMAIL PROTECTED] [EMAIL PROTECTED]
% make
% sudo make install
% sudo perl -MCPAN -e "shell"
cpan> install Bundle::CPAN
cpan>install LWP 

:-))) Everything is working now ! And I have even a brand new Perl
Installation (5.8.6) !


Thank you Sherm and Will for your patience and your great help !



marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






Re:Problems installing modules

2004-12-05 Thread Marek Stepanek
On 05/12/2004 10:53, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:

> On Dec 5, 2004, at 4:07 AM, Marek Stepanek wrote:
> 
>> Is this clear to you, what that means ? Probably the "perl"-link I put
>> in
>> /usr/bin/ pointing /usr/local/bin/ has not the right rights ?
> 
> That doesn't make any sense. The install script is running, and
> reporting an error in mkpath(). If the permissions on /usr/bin/perl
> were fubar, you wouldn't be able to run any script, at all.
> 
> You need to take logical steps to narrow down the source of the
> problem. See if another module installs correctly, or fails with the
> same error. And, see if LWP will install outside of CPAN.
> 
> sherm--
> 
> Cocoa programming in Perl: http://camelbones.sourceforge.net
> Hire me! My resume: http://www.dot-app.org
> 


Hello Sherm,


I tried to install several Modules, like follows. I think I will give up,
and reinstall everything from scratch - OS X included.

thanx for your efforts


marek





cpan> install DBI

having the following result :


test.pl done
  /usr/bin/make test -- OK
Running make install
* installing blib/arch to /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5/darwin-2level)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/man1 to ?~name
* with PERL_INSTALL_ROOT ''
* mkpath(?~name)
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 115
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK

cpan> install Bundle::DBI

giving :


Running make install
Manifying blib/man1/dbish.1
* installing blib/arch to /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5/darwin-2level)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/man1 to ?~name
* with PERL_INSTALL_ROOT ''
* mkpath(?~name)
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 115
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK


and 

cpan> install HTML::Latex


gives : 

Checking if your kit is complete...
Looks good
Writing Makefile for HTML::Latex
Writing Makefile for HTMLLatex
cp Latex.pm ../blib/lib/HTML/Latex.pm
Manifying ../blib/man3/HTML::Latex.3
  /usr/bin/make  -- OK
Running make test
Prepending /Users/mareklaptop/.cpan/build/DBI-Shell-11.93/blib/arch
/Users/mareklaptop/.cpan/build/DBI-Shell-11.93/blib/lib
/Users/mareklaptop/.cpan/build/DBI-1.46/blib/arch
/Users/mareklaptop/.cpan/build/DBI-1.46/blib/lib to PERL5LIB.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/foreignsok   
t/tagsFAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
t/tags.t   11 100.00%  1
Failed 1/2 test scripts, 50.00% okay. 1/2 subtests failed, 50.00% okay.
make[1]: *** [test_dynamic] Error 2
make: *** [test] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force


cpan> install DateTime

gives plenty of these errors :

Use of uninitialized value in concatenation (.) or string at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 113.
* with PERL_INSTALL_ROOT ''
* 
mkpath(/Users/mareklaptop/.cpan/build/Module-Build-0.2605/t/install_test/usr
/local/lib/pe

Re:Problems installing modules

2004-12-05 Thread Marek Stepanek
On 05/12/2004 03:56, "William Ross" <[EMAIL PROTECTED]> wrote:

> On 4 Dec 2004, at 20:21, Marek Stepanek wrote:
> 
>> On 04/12/2004 12:57, "William Ross" <[EMAIL PROTECTED]> wrote:
>> 
>>> On 3 Dec 2004, at 21:25, Marek Stepanek wrote:
>>> 
>>>> Please ! Nobody can help me out ? I still get these error messages,
>>>> trying
>>>> to install LWP :
>>> 
>>> you are doing this as root, aren't you?
>>> only it looks like you might not be...
>> 
>> yes I am doing it as Root from my tcsh shell :
>> 
>> % sudo perl -MCPAN -e "shell"
> 
> Oh well. The important bit of your error message is this:
> 
>> mkdir ?~name: Invalid argument
> 
> and if File::Path::mkpath() (which calls mkdir here) has superuser
> permission then it must be getting bad instructions. It would be useful
> to see the output you get if you put this immediately before line 112
> in /usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm:
> 
> warn "* installing $source_dir_or_file to
> $from_to{$source_dir_or_file}\n";
> warn "* with PERL_INSTALL_ROOT '$INSTALL_ROOT'\n";
> warn "* mkpath($targetdir)\n";
> 
> after trying the variations that Sherm suggested, that is. They'll help
> you to pin down where the (probable) configuration glitch is and might
> make all this unnecessary.
> 
> best
> 
> will
> 



Hello Will, 

I changed /usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm as you suggested ;
syntax check ok; the lines 109-121 of this file are looking now like follows
: 


for (readdir DIR) {
next if $_ eq $Curdir || $_ eq $Updir || $_ eq ".exists";
my $targetdir =
install_rooted_dir($from_to{$source_dir_or_file});
warn "* installing $source_dir_or_file to
$from_to{$source_dir_or_file}\n";
 warn "* with PERL_INSTALL_ROOT '$INSTALL_ROOT'\n";
 warn "* mkpath($targetdir)\n";
 mkpath($targetdir) unless $nonono;
if (!$nonono && !-w $targetdir) {
warn "Warning: You do not have permissions to " .
"install into $from_to{$source_dir_or_file}"
unless $warn_permissions++;
}
}

(Line breaks from my email client)


% cd /Users/mareklaptop/.cpan/build/libwww-perl-5.802
% sudo perl Makefile.PL
% sudo make install

gives this 

[snip]

Manifying blib/man3/Bundle::LWP.3
* installing blib/arch to /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5/darwin-2level)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/man1 to ?~name
* with PERL_INSTALL_ROOT ''
* mkpath(?~name)
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 115
make: *** [pure_site_install] Error 255


Is this clear to you, what that means ? Probably the "perl"-link I put in
/usr/bin/ pointing /usr/local/bin/ has not the right rights ?

[markslap:~/.cpan/build/libwww-perl-5.802] mareklap% cd /usr/bin/
[markslap:/usr/bin] mareklap% ls -lF perl
lrwxr-xr-x  1 root  wheel  19 17 Nov 14:08 perl@ -> /usr/local/bin/perl

h, looks good ! But I am not a Perl-Unix-Professional as you are :-)

I am very grateful for your help



greetings from Munich - grey out here


marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






Re:Problems installing modules

2004-12-04 Thread Marek Stepanek
On 04/12/2004 12:57, "William Ross" <[EMAIL PROTECTED]> wrote:

> On 3 Dec 2004, at 21:25, Marek Stepanek wrote:
> 
>> Please ! Nobody can help me out ? I still get these error messages,
>> trying
>> to install LWP :
> 
> you are doing this as root, aren't you?
> only it looks like you might not be...
> 
> will
> 


Thank you Will,


yes I am doing it as Root from my tcsh shell :

% sudo perl -MCPAN -e "shell"

perhaps the LWP reports errors, because the newest release of Perl is v5.8.6
and I have only v5.8.5 ?


greetings


marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






Re:Problems installing modules

2004-12-03 Thread Marek Stepanek



Please ! Nobody can help me out ? I still get these error messages, trying
to install LWP :

All tests successful.
Files=41, Tests=778, 43 wallclock secs ( 6.39 cusr +  1.53 csys =  7.92 CPU)
  /usr/bin/make test -- OK
Running make install
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 112
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK


greetings to all



marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






Re:Problems installing modules

2004-11-29 Thread Marek Stepanek
On 29/11/2004 12:33, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:

> On Nov 29, 2004, at 4:38 AM, Marek Stepanek wrote:
> 
>> I have problems updating or installing modules on my Perl I have
>> installed
>> in /usr/local/bin/ an Perl 5.8.5
> 
> What do you get from 'perl -V'?
> 
>> #perhaps I have to adapt this file or create one
>> ~/.cpan/CPAN/MyConfig.pm ???
> 
> Do you have one now? If so, what's in it?
> 
>> /usr/local/lib/perl5/5.8.5/CPAN/Config.pm :
> 
> I don't see any obvious problems there.
> 
> sherm--
> 
> Cocoa programming in Perl: http://camelbones.sourceforge.net
> Hire me! My resume: http://www.dot-app.org
> 


thank you Sherm for your answer,


to your question : 




% perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
osname=darwin, osvers=7.6.0, archname=darwin-2level
uname='darwin markslap.local 7.6.0 darwin kernel version 7.6.0: sun oct
10 12:05:27 pdt 2004; root:xnuxnu-517.9.4.obj~1release_ppc power macintosh
powerpc '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe',
optimize='-Os',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1666)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =''
libpth=/usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under darwin
  Compiled at Nov 12 2004 20:40:32
  %ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
  @INC:
/sw/lib/perl5
/sw/lib/perl5/darwin
/usr/local/lib/perl5/5.8.5/darwin-2level
/usr/local/lib/perl5/5.8.5
/usr/local/lib/perl5/site_perl/5.8.5/darwin-2level
/usr/local/lib/perl5/site_perl/5.8.5
/usr/local/lib/perl5/site_perl

*

I have no ~/.cpan/CPAN/MyConfig.pm - I don't know, what I should put in that
file; only if you give me an advise about it, I would guess, what I should
put in such kind of file :-)



greetings from Munich


marek



-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__






Problems installing modules

2004-11-29 Thread Marek Stepanek


Hello Perlers, 


I have problems updating or installing modules on my Perl I have installed
in /usr/local/bin/ an Perl 5.8.5 I have made an alias in /usr/bin

lrwxr-xr-x1 root  wheel   19B 17 Nov 14:08 perl ->
/usr/local/bin/perl

Installing for example LWP with cpan gives following error :

cpan> install LWP

finishes with :

All tests successful, 1 test skipped.
Files=41, Tests=764, 42 wallclock secs ( 6.51 cusr +  1.17 csys =  7.68 CPU)
  /usr/bin/make test -- OK
Running make install
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 112
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK


my Config.pm 
#perhaps I have to adapt this file or create one
~/.cpan/CPAN/MyConfig.pm ???

/usr/local/lib/perl5/5.8.5/CPAN/Config.pm :


# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
  'build_cache' => q[10],
  'build_dir' => q[/Users/mareklaptop/.cpan/build],
  'cache_metadata' => q[1],
  'cpan_home' => q[/Users/mareklaptop/.cpan],
  'ftp' => q[/usr/bin/ftp],
  'ftp_proxy' => q[],
  'getcwd' => q[cwd],
  'gpg' => q[],
  'gzip' => q[/sw/bin/gzip],
  'histfile' => q[/Users/mareklaptop/.cpan/histfile],
  'histsize' => q[100],
  'http_proxy' => q[],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[/Users/mareklaptop/.cpan/sources],
  'lynx' => q[],
  'make' => q[/usr/bin/make],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'makepl_arg' => q[],
  'ncftp' => q[],
  'ncftpget' => q[],
  'no_proxy' => q[],
  'pager' => q[/usr/bin/less],
  'prerequisites_policy' => q[ask],
  'scan_cache' => q[atstart],
  'shell' => q[/bin/sh],
  'tar' => q[/sw/bin/tar],
  'term_is_latin' => q[1],
  'unzip' => q[/sw/bin/unzip],
  'urllist' => [],
  'wget' => q[/sw/bin/wget],
};
1;
__END__


Thank you for your help


marek




-- 
__
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
___Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org___
__http://www.PodiumInternational.org__
__