wx in ubuntu

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
Click
Human
Human
Posts: 39
Joined: 15 Apr 2008, 06:08
Noob?: Yes
Location: Russia, Velikiy Novgorod
Contact:

wx in ubuntu

#1 Post by Click »

Code: Select all

click@click-ubuntu:~/bot$ perl openkore.pl --interface=Wx
This program has encountered an unexpected problem. This is probably because
of a bug in this program, or in one of the plugins. Please tell us about this
problem.

A detailed error report has been saved to errors.txt. Please include the
contents of this file in your bug report, or we may not be able to help you!

The error message is:
Cannot load interface Interface::Wx. Error:
Can't locate Wx.pm in @INC (@INC contains: src src/deps /home/click/bot/src/deps /home/click/bot/src /home/click/bot /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at src/Interface/Wx.pm line 33.
BEGIN failed--compilation aborted at src/Interface/Wx.pm line 33.
Compilation failed in require at (eval 49) line 1.
BEGIN failed--compilation aborted at (eval 49) line 1.
Press ENTER to exit this program.

Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: wx in ubuntu

#2 Post by Bibian »

im install WX for your perl?

Kissa2k
Human
Human
Posts: 46
Joined: 27 Apr 2008, 12:52
Noob?: No
Location: Russia

Re: wx in ubuntu

#3 Post by Kissa2k »

I think that you need to install wxPerl and wxWidgets packages or compile it from the source.

Click
Human
Human
Posts: 39
Joined: 15 Apr 2008, 06:08
Noob?: Yes
Location: Russia, Velikiy Novgorod
Contact:

Re: wx in ubuntu

#4 Post by Click »

sudo apt-get install wx-common
ok
http://cpan.nx1.ru/authors/id/M/MB/MBAR ... .39.tar.gz
tar -xzf Alien-wxWidgets-0.39.tar.gz
cd Alien-wxWidgets-0.39
perl Makefile.PL
bla bla bla ...
make

Code: Select all

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
sudo apt-get install gnome-core-devel
sudo make
sudo make install
sudo ldconfig

svn co https://wxperl.svn.sourceforge.net/svnr ... Perl/trunk wxPerl
cd wxPerl
perl Makefile.PL

Code: Select all

Warning: prerequisite Alien::wxWidgets 0.25 not found. We have unknown version.
'LICENSE' is not a known MakeMaker parameter name.
Writing Makefile for Wx::Socket
Writing Makefile for Wx::DND
Writing Makefile for Wx::FS
Writing Makefile for Wx::Grid
Writing Makefile for Wx::Help
Writing Makefile for Wx::Html
Writing Makefile for Wx::MDI
Writing Makefile for Wx::Print
Writing Makefile for Wx::XRC
Writing Makefile for Wx::STC
Writing Makefile for Wx::DocView
Writing Makefile for Wx::Calendar
Writing Makefile for Wx::DateTime
Writing Makefile for Wx::Media
Writing Makefile for Wx::RichText
Writing Makefile for Wx::AUI
Writing Makefile for Wx::DataView
Writing Makefile for Wx::Perl::SplashFast
Writing Makefile for Wx::Perl::Carp
Writing Makefile for Wx::Perl::TextValidator
Writing Makefile for Wx::Perl
Writing Makefile for Wx
Writing Makefile for Wx
======================================================================
Alien::wxWidgets is missing, you will need to re-run Makefile.PL after
it is installed.
======================================================================
damn

Kissa2k
Human
Human
Posts: 46
Joined: 27 Apr 2008, 12:52
Noob?: No
Location: Russia

Re: wx in ubuntu

#5 Post by Kissa2k »

As far as I know wxPerl must be installed after wxWidgets
I'm currently away from my Ubuntu machine so I can't give other helpful advices.

wxPerl нужно устанавливать при уже установленном wxWidgets.
Видимо wxWidgets у тебя глюкозно установилась, пробуй другую версию скомпилировать или поищи deb-пакет.
Вообщем у меня сейчас нет Убунты под рукой, так что ...
/heh

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: wx in ubuntu

#6 Post by sli »

sudo apt-get install libgtk2.0-dev libglib2.0-dev

But those package names might be wrong, so run an apt-cache search first.
cs : ee : realist

Click
Human
Human
Posts: 39
Joined: 15 Apr 2008, 06:08
Noob?: Yes
Location: Russia, Velikiy Novgorod
Contact:

Re: wx in ubuntu

#7 Post by Click »

sudo apt-get install gnome-core-devel

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: wx in ubuntu

#8 Post by sli »

I prefer to install only exactly what I need on the off chance gnome-core-devel contains extra garbage that WX doesn't use.
cs : ee : realist

Locked