Re: XML/parser.pm

2013-12-08 Thread Francis (Grizzly) Smit

On 07/12/13 23:11, John Emmas wrote:

I'm setting up an MSVC build environment (for glibmm and other
associated libraries) on a new, Windows 8 machine.  Previously I've set
up similar build environments for Windows XP and Windows 7. When I come
to build glibmm, MSVC gives me the following error in my pre-build step
(my pre-build step deals with all the auto-generation etc):-

  Can't locate XML/Parser.pm in @INC
  (@INC contains:
F:\+GTK-SOURCES\gnu-windows\src\MB3Glibmm/tools/pm
  /usr/lib/perl5/5.8.8/msys
  /usr/lib/perl5/5.8.8
  /usr/lib/perl5/site_perl/5.8.8/msys
  /usr/lib/perl5/site_perl/5.8.8
  /usr/lib/perl5/site_perl

  etc, etc

@INC is presumably an environment variable and the paths listed must
be paths that get searched to find a file called 'XML/Parser.pm'.  As
you can see, they're mostly Linux style paths so they wouldn't be
relevant on my Windows 8 machine.

I must admit, I have no recollection of needing to set this up for my
WinXP and Win7 builds.  Furthermore, when I list their environment
variables, there isn't one called INC.  But it's quite possible that I
did need to set something up and I've just forgotten.

So to test that theory, I went back to WinXP and temporarily renamed any
file called Parser.pm (i.e. so that it wouldn't get found). As you can
imagine, that gave me exactly the same build error - except that this
time, the paths listed were Windows style paths and they included the
path that contains 'XML/Parser.pm'.

XML/Parser.pm will be known as XML::Parser

go to http://search.cpan.org/~msergeant/XML-Parser-2.36/Parser.pm for 
more info


and 
http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz 
to download it


there is also a dependencies link on that page 
http://deps.cpantesters.org/?module=XML%3A%3AParser;perl=latest

good luck



I'm baffled.  Can anyone think what I might need to set up in order to
get the correct search paths?

John
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list



--


  .~. In my life God comes first
  /V\ but Linux is pretty high after that :-D
 /( )\Francis (Grizzly) Smit
 ^^-^^http://www.smit.id.au/

___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: XML/parser.pm

2013-12-08 Thread Aidan Delaney
Dear all,
On Sun, 2013-12-08 at 20:50 +1100, Francis (Grizzly) Smit wrote:
 On 07/12/13 23:11, John Emmas wrote:
  I'm setting up an MSVC build environment (for glibmm and other
 XML/Parser.pm will be known as XML::Parser
 
 go to http://search.cpan.org/~msergeant/XML-Parser-2.36/Parser.pm for 
 more info
Perl has a decent dependency management system.  If you open a
shell/Windows command prompt you can:
$ perl -MCPAN -eshell
This tells perl to open the CPAN shell.  CPAN being the Perl module
distribution app store and its shell allows a command line interface
to it.

Then:
cpan: i /XML::Parser/
will search for modules called XML::Parser and
cpan: install XML::Parser
will install it for you.

Because of the package managers on Linux  BSD we rarely see these
dependency issues.  So, you'll have to forgive us non-Windows folk if we
leave out such steps in the documentation.

-- 
Dr Aidan Delaney
Senior Lecturer in Computing

web: http://www.ontologyenginering.org
twitter: http://www.twitter.com/aidandelaney
G+ : https://plus.google.com/+AidanDelaney
I prefer encrypted email
gpg: http://www.ontologyengineering.org/~ajd9/pubkey.gpg




signature.asc
Description: This is a digitally signed message part
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: XML/parser.pm

2013-12-08 Thread John Emmas

Thanks for all the suggestions guys.

It turned out that Msys-Git (on Windows) has its own version of Perl 
which was conflicting with Strawberry Perl which I'd also installed.  By 
re-arranging their order in my system path the Perl problem has now gone 
away.  Unfortunately, I'm now left with an error message returned from 
M4.  When running the gmmproc script I see:-


 m4 failed with exit code 255

I tried a few searches on Google without much success.  Does anyone know 
what that error means?


John
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: XML/parser.pm

2013-12-08 Thread John Emmas

On 08/12/2013 16:56, John Emmas wrote:


It turned out that Msys-Git (on Windows) has its own version of Perl 
which was conflicting with Strawberry Perl which I'd also installed.  
By re-arranging their order in my system path the Perl problem has now 
gone away.  Unfortunately, I'm now left with an error message returned 
from M4.  When running the gmmproc script I see:-


 m4 failed with exit code 255



Hmmm...  this seems to be essentially the same problem.  Msys-Git offers 
its own version of M4 too.  Again, re-arranging my system path seems to 
have fixed the problem.  :-))


John
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list