in reply to Unable to install Wx

You may want to try installing wxWidgets using the Alien::wxWidgets module, using the cpan client from your perlbrew perl (This will not mess with your system wx installation). Then attempt to install the Wx module.

If that does not work, you may want to install Alien::wxWidgets manually.

Replies are listed 'Best First'.
Re^2: Unable to install Wx
by Specus (Novice) on Feb 18, 2014 at 19:12 UTC

    Thanks. I'll give that a try. I think I'm running into a problem with Wx not building cleanly for a 64-bit perl. I was able to get Wx compiled up and passing its tests by manually building and adding the correct include path on the command line:

    perl Makefile.PL --extra-cflags=-I/usr/lib64/wx/include/gtk2-unicode-r +elease-2.8

    The problem I now have is with Wx::Scintilla. Same problem, but since Wx::Scintilla is using a build script instead of a Makefile, I haven't yet discovered how to override its include paths (I thought it should be getting them from wx-config). I'm really tempted to go back to a 32-bit Perl and hopefully avoid these issues.

      I had similar problems a couple years back when I was trying to run the most up-to-date version of Padre on Mac OS X. I made this post about it Getting a working Padre and Wx on Mac OS X (Snow Leopard) with Perl 5.14.0. Basically, I resorted to compiling a threaded 32-bit perl with perlbrew, and then installed Alien::wxWidgets, Wx, and finally Padre. I would hope that a similar approach would work on Linux.

      UPDATE: I seem to recall that wx 2.8 did not play nice with 64-bit, and that 2.9 was required for 64-bit. So, you may be able to stay completely 64-bit if you install the most recent version of wxWidgets with the Alien::wxWidgets module (i.e. 2.9 or later, I believe the most current is 2.9.4).

        Thanks for the suggestions. Using wx 2.9 seemed to be an important part of the process. Once I installed Alien::wxWidgets by hand and specified wxWidgets 2.9.4, I was able to go a lot further (and solved my initial problem).

        Unfortunately, I still couldn't install Padre 1.01 from SVN (some error about a character in META.yml not mapping to Unicode), so I tried to install 1.00 from cpan and got the following error:

        # Failed test 'undef isa 'Padre::Browser::Document'' # at t/50_browser.t line 47. # undef isn't defined Can't call method "mimetype" on an undefined value at t/50_browser.t l +ine 48.

        I'm almost ready to completely blow away my ~/perl5 directory and start over from scratch (now that I have a good understanding of the steps required).