Gabor Szabo wrote:
Hi,

I have tried to install wxPerl on Ubuntu 7.10 but as far as I could find
there is no such Ubuntu package.

So I tried CPAN.pm it tried to also install Alien-wxWidgets-0.35

The following questions I answered with an ENTER:

Do you want to build wxWidgets? [yes ]
Which archive type? [tar.gz ]
Do you want to include OpenGL support [no ]

and I got

Fetching wxWidgets...
fetching from: ftp://biolpc22.york.ac.uk/pub/2.8.7/wxWidgets-2.8.7.tar.gz
Fetch failed! HTTP response: 500 Internal Server Error [500
LWP::Protocol::MyFTP: Bad hostname 'biolpc22.york.ac.uk']

which worries me as I thought CPAN modules should not dial out and
download stuff from other places.
If for nothing else because this creates a single point of failure in
installing wxPerl.

Anyway, it seemed to continue after that but in the end I got

Failed during this command:
 MBARBON/Alien-wxWidgets-0.35.tar.gz          : install NO
 MBARBON/Wx-0.82.tar.gz                       : make NO

I can send the full log but I hope that oters might already have a
pointer on how to proceed?

regards
   Gabor
I'm not going to discuss whether Alien::wxWidgets should or should not download wxwidgets by itself but I think it is great that it offers this.
Anyway, as always in perl, there's more than one way to do it.

Quick and easy on Ubuntu:

*Make sure your build environment is in order:*
$ sudo apt-get build-essential

*Install the wxWidgets dev package:*
$ sudo apt-get install libwxgtk2.8-dev
(This will also install: libwxbase2.8-0 libwxbase2.8-dev libwxgtk2.8-0 wx2.8-headers)

Run cpan (I always upgrade CPAN on a fresh system but I think that's optional: "install Bundle::CPAN")

cpan> install Alien::wxWidgets

(Now the build question will default to [no ] because wxWidgets is already installed)

cpan> install Wx

And highly recomended:

cpan> install Wx::Demo

Now you are left with a working wxPerl installation, without OpenGL support.

I have a hunch that your build environment was not set up correctly yet causing the wxWidgets build to fail and it might even work correctly now. I still advise to go with the libwxgtk2.8-dev package as described because it includes support for extra's like Wx::Media (and others) already. I'm in the progress of creating these kind of HOWTO's for different systems, also including more instructions to build stuff yourself.

Cheers,
Huub

Reply via email to