On Sun, Feb 17, 2008 at 10:11:13AM +0100, Erik Colson wrote: > Here it is: > > install of wxwidgets from source is ok! > but cpan install Alien::wxWidgets breaks :( > So then I tried installing from the tar.gz and this seems to work... > perhaps some functionalities will be missing, but I don't know which... > > HERE IT COMES.... >
Erik,
That is most puzzling. Here is how I set it up on my system:
wxWidgets 2.8.7
Alien::wxWidgets 0.33
Wx 0.81
Here are the commands I used for wxWidgets:
mkdir build-mac
cd build-mac
../configure --prefix=/usr/local/wx/mac \
--enable-shared \
--with-opengl \
--enable-universal_binary \
--enable-debug \
--enable-debug_flag \
--enable-debug_info \
--enable-debug_gdb \
--enable-intl \
--enable-unicode \
--with-mac \
--with-libpng \
--with-libjpeg \
--with-libtiff \
--with-libxpm \
--with-regex \
--with-zlib \
--with-expat \
--enable-unicode
make -j3
make install
ln -s /usr/local/wx/mac/bin/wx-config /usr/local/bin/wx-config
For Alien::wxWidgets:
perl Build.PL --install_base /usr/local \
--install_path lib=/usr/local/lib/perl/5.8.6 \
--install_path
arch=/usr/local/lib/perl/5.8.6/darwin-thread-multi-2level \
--install_path script=/usr/local/bin \
--install_path bin=/usr/local/bin \
--install_path bindoc=/usr/local/man/man1 \
--install_path libdoc=/usr/local/man/man3 \
--install_path binhtml=/usr/local/share/doc \
--install_path libhtml=/usr/local/share/doc
make -j3
make test
make install
For Wx:
perl Makefile.PL PREFIX=/usr/local \
LIB=/usr/local/lib/perl/5.8.6 \
INSTALLSCRIPT=/usr/local/bin \
INSTALLBIN=/usr/local/bin \
SITELIBEXP=/usr/local/lib/perl/5.8.6 \
SITEARCHEXP=/usr/local/lib/perl/5.8.6/darwin-thread-multi-2level \
VENDORARCHEXP=/usr/local/lib/perl/5.8.6/darwin-thread-multi-2level \
VENDORLIBEXP=/usr/local/lib/perl/5.8.6 \
INSTALLMAN1DIR=/usr/local/man/man1 \
INSTALLSITEMAN1DIR=/usr/local/man/man1 \
INSTALLVENDORMAN1DIR=/usr/local/man/man1 \
INSTALLMAN3DIR=/usr/local/man/man3 \
INSTALLSITEMAN3DIR=/usr/local/man/man3 \
INSTALLVENDORMAN3DIR=/usr/local/man/man3
make -j3
make test
make install
I choose to install all the extra Perl modules in /usr/local/lib. Of
course, I also have to add this line to my .bashrc:
PERL5LIB=/usr/local/lib/perl/5.8.6:"${PERL5LIB}"
Why Apple did not include that by default baffles me. You could also
accomplish what I have done above with all the command line options by
using the right INSTALLDIRS option, but I always forget how they work
and so I specify everything excplicitly.
Regards,
-Roberto
--
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com
signature.asc
Description: Digital signature
