From: Mark D. <mar...@zn...> - 2007-01-05 19:51:39
|
Hi, Addendum to instructions- The build command for Alien wxWidgets should, of course, be perl Build.PL --unicode --prefix /var/local/myappname/perllib; Build doesn't understand PREFIX. Dang. Mark Mark Dootson wrote: > Hi Matthias: > > I don't know how to build debs :-( > > I can suggest a method that should work - but it might not be everyone's > preferred approach. > > I think that rather than try and install wxWidgets libs into any > standard location you have to regard your wxWidgets as being for your > app / script use only. The module Alien::wxWidgets solves all this for > you. I would approach this by building the whole thing - wxWidgets and > wxperl, to a custom application directory and then if I needed to > distribute it, look at creating a deb out of that custom directory. > > I believe that an acceptable location for an application directory under > Debian would be /var/local/myappname, so having decided that, I would do > the following: > > create directories /var/local/myappname/perllib > > download and extract to some build directory the Alien-wxWidgets-0.27 > source from CPAN. > > Replace the file ../patches/data with the attached 'data' file. Alien > wxWidgets is currently setup to install wxWidgets 2.6.3, - this change > points it at 2.8.0. > > Then in your ../Alien-wxWidgets-0.27 directory, do something like > > perl Build.PL PREFIX=/var/local/myappname/perllib --unicode > > If this command suggests going to CPAN for some dependencies, then you > don't want to do this as it isn't the Debian way. Find the Debs for the > dependencies and install them before you proceed. > > next do > > perl Build > > This should ask you if you want to build wxWidgets. You need to say > 'Yes' and opt for the default [tar.gz] source type. > Then go for a coffee. Build has to download the wxWidgets tarball and > build the thing. > > All should complete OK. > You can then do: > perl Build test > perl Build install > > Next you need to build wxPerl. Download and extract to some build > directory the Wx-0.67 source from CPAN. > > In the ../Wx-0.67 directory do > > perl -I/var/local/myappname/perllib Makefile.PL unicode > PREFIX=/var/local/myappname/perllib > > (above all on one line). > > You may have to seek out the debs for any missing dependencies that are > listed. > > Then you can do > > make > make test > make install > > I'm not absolutely certain that the inclusion of the custom dir in the > INC array as above will work for the 'make test' stage. If it doesn't, > just add /var/local/myappname/perllib to your PERL5LIB environment var > for the current session so the tests can find Alien. > > This should all work, I think, then in your perl scripts you just need > to 'use lib qw(/var/local/myappname/perllib);' > > To distribute, make a deb out of /var/local/myappname. I think this > should be acceptable in the Debian world as it is all specific to your > app / scripts. > > I.M.H.O - given the release rate of wxWidgets and wxPerl compared to the > probable lifetime of Etch, I see packaging all your wxWidgets > dependencies up like this as the only practical way to distribute Wx > applications. (without pointing folks at CPAN) > Debs for WxGTK 2.8 etc could only work if the target machines are always > under your own control. > > > Hope this works / helps. > > > Mark > > > > > > > > > > Matthias Rahn wrote: >> While trying to get the right libs in place, I fucked up the system >> completely and have to do a reinstallation anyway. >> Any hints anybody what to install in which order for the next attempt? >> >> Matthias Rahn schrieb: >>> Hi, >>> >>> Am Donnerstag, den 04.01.2007, 14:30 -0700 schrieb Mike Schroeder: >>> >>>> See http://www.wxwidgets.org/downloads/ for installing wxWidgets 2.8.0 >>>> via apt-get >>>> >>>> Binaries >>>> >>>> * wxGTK Ubuntu <http://www.ubuntu.com/> packages for 2.8.0 are >>>> available. To use them please add >>>> >>>> deb http://apt.tt-solutions.com/ubuntu/ dapper main >>>> >>>> (or edgy instead of dapper if you use that release) to your >>>> >>> I read this, but I didnt know I can use this for debian too. >>> I now installed >>> >>> wx2.8-i18n >>> wx2.8-headers >>> >>> wxperl wasnt installed in my system @INC, I tried to solve this with a >>> lib statement, so it looks like this: >>> >>> --->8--- >>> #!/usr/bin/perl -w >>> >>> use lib '/usr/local/lib/perl/5.8.7'; >>> >>> use Wx; >>> >>> print "testit\n"; >>> ---8<--- >>> >>> but I got the following error when using Wx (translated): >>> >>> Can't load '/usr/local/lib/perl/5.8.7/auto/Wx/Wx.so' for module Wx: >>> libwx_gtk2u_adv-2.8.so.0: Can't open Shared-Object-File: File or >>> Directory not found at /usr/lib/perl/5.8/DynaLoader.pm line 225. >>> at ./doit.pl line 7 >>> Compilation failed in require at ./doit.pl line 7. >>> BEGIN failed--compilation aborted at ./doit.pl line 7. >>> Deep recursion on subroutine "Wx::AUTOLOAD" >>> at /usr/local/lib/perl/5.8.7/Wx.pm line 46. >>> >>> I then managed to update my perl to 5.8.8, but with no success, same >>> message. >>> >>> I would assume I need some of the libwxgtk-packets, but when I try to >>> install, apt wants to update hundrets of packets or just refuses to >>> install because of other dependencies. >>> >>> Is there some documentation about manual installation I can read? What >>> packages are really needed for wxperl? >>> >>> I would tend to install the system new if there is a predictable >>> _working_ way to use wxperl under debian linux!? Like >>> >>> -install etch from cd >>> -add a defined line to sources.list >>> -do an apt-get pkg1 pkg2 pkg3 >>> >>> but without compiling anything from source, as im not a professional >>> programmer nor a linux professional, I am totally lost fixing dependency >>> problems between linux/perl/wx/gtk. >>> >>> Bye, >>> /\\atthias >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> wxperl-users mailing list >>> wxp...@li... >>> https://lists.sourceforge.net/lists/listinfo/wxperl-users >>> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> wxperl-users mailing list >> wxp...@li... >> https://lists.sourceforge.net/lists/listinfo/wxperl-users > > > ------------------------------------------------------------------------ > > my $VERSION = '2.8.0'; > my $URL = "ftp://biolpc22.york.ac.uk/pub/$VERSION"; > my $BASE = 'wxWidgets'; > # $TYPE from Build.PL > > my @common = qw(); > > { msw => { unicode => [ qw(), @common ], > ansi => [ qw(), @common ], > }, > mac => { unicode => [ @common ], > ansi => [ @common ], > }, > unix => { unicode => [ @common ], > ansi => [ @common ], > }, > data => { url => ( sprintf '%s/%s-%s.%s', $URL, $BASE, $VERSION, $TYPE ), > directory => ( sprintf '%s-%s', $BASE, $VERSION ), > archive => ( sprintf '%s-%s.%s', $BASE, $VERSION, $TYPE ), > version => $VERSION, > }, > }; > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |