From: Sergei S. <ser...@ya...> - 2006-10-19 22:19:50
|
Mattia, thanks for your reply, please see my questions inline. --- Mattia Barbon <mat...@li...> wrote: > On Thu, 19 Oct 2006 10:57:55 -0700 (PDT) > Sergei Steshenko <ser...@ya...> wrote: > > Hi, > > > I'm trying to build wxPerl from sources (wxGTK-2.6.3 is already built by my tool), > > and I am confused. > > > > Where can I find step by step instruction how to build wxPerl from sources using > > Alien-wxWidgets-0.22 ? > > > > Do I just follow the instructions in Wx-0.57/README.txt file, which are: > > > > " > > perl Makefile.PL > > make > > make test > > make install > > " > > > > ? > > > > Do I have to call methods of Alien-wxWidgets-0.22 ? wxGTK-2.6.3 is located in a > > non-standard location. > > > > I also want to put wxPerl in a local directory. What is the place/method to specify > > install directory for wxPerl. > > For installing Perl modules in non-standard paths, please see the > "INSTALL PATHS" section of Module::Build documentation (for > Alien::wxWidgets) and the "make install" section of > ExtUtils::MakeMaker documentation (for wxPerl). I went through http://search.cpan.org/~kwilliams/Module-Build-0.2805/lib/Module/Build.pm page, I hope that's what you meant saying 'please see the "INSTALL PATHS" section of Module::Build documentation' > > First you need to install Alien::wxWidgets. Well, I guess I first have to install Module::Build since it's not installed on my system. Correct ? > > export WX_CONFIG=/path/to/my/wx-config > perl Build.PL > ./Build > ./Build test > ./Build install > OK, I guess the above piece is related to building Alien::wxWidgets, right ? On my system Alien::wxWidgets was unpackaged as /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22 , so I guess the above commands to build Alien::wxWidgets should actaully on my system be: Bunch 1: -------- cd /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22 export WX_CONFIG=/maxtor5/sergei/AppsFromScratchWD/install/wxGTK-2.6.3/bin/wx-config perl Build.PL --prefix /maxtor5/sergei/AppsFromScratchWD/install/Wx-0.57 ./Build ./Build test ./Build install Comments regarding the proposed commands: 1) wxGTK-2.6.3 is indeed installed under /maxtor5/sergei/AppsFromScratchWD/install/wxGTK-2.6.3 and path 'wx-config' is indeed /maxtor5/sergei/AppsFromScratchWD/install/wxGTK-2.6.3/bin/wx-config ; 2) I want wxPerl to be installed under /maxtor5/sergei/AppsFromScratchWD/install/Wx-0.57 , that's why the --prefix /maxtor5/sergei/AppsFromScratchWD/install/Wx-0.57 part. So, what is going to be generted as the result of the above commands ? Some configuration file(s) for wxPerl build proper ? If yes, what are their names and locations ? > then install wxPerl (notice that Alien::wxWidgets must be in Perl INC > search path). > > perl Makefile.PL > make all > make test > make install Since on my system Alien::wxWidgets is apparently represented by /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22/lib/Alien/wxWidgets.pm file, I guess the final bunch of commands should actually look like this: Bunch 2: -------- cd /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57 perl \ -I /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22/lib/Alien/wxWidgets.pm \ Makefile.PL make all make test make install Comments regarding the above: 1) Makefile.PL for Wx-0.57 is apparently /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Makefile.PL , that's why "cd /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57"; 2) as stated above, Alien::wxWidgets is apparently /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22/lib/Alien/wxWidgets.pm on my system that's why -I /maxtor5/sergei/AppsFromScratchWD/build/Wx-0.57/Alien-wxWidgets-0.22/lib/Alien/wxWidgets.pm > > HTH > Mattia > Please comment on these understandings of mine. At the moment my biggest concern/confusion is about passing config data from "Bunch 1" to "Bunch 2" - if at all I got the picture right. Thanks, Sergei. Applications From Scratch: http://appsfromscratch.berlios.de/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |