Menu

#46 Perl/Tk error

open
nobody
None
5
2010-11-09
2010-11-09
kasycas
No

Hi,

Following the instructions to install Perl/Tk (perl Makefile.pl; make; make install ), I get the error below during "make". I've tried installing the Tk directly from CPAN but no luck! I'm on a Mac Snow Leopard and I'm wondering if it might be a version issue for the libperl packages??

Thanks!

Kasycas

$ make
cd pTk && make DEFINE="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-Os" PREFIX="/usr/local" PASTHRU_DEFINE="" PASTHRU_INC=""
cd zlib && make libz.a "CC=gcc-4.2 " RANLIB="/usr/bin/ar s"
make[2]: `libz.a' is up to date.
cd libpng && make libpng.a "CC=gcc-4.2 " RANLIB="/usr/bin/ar s"
make all-am
if /bin/sh ./libtool --tag=CC --mode=compile gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -MT libpng12_la-png.lo -MD -MP -MF ".deps/libpng12_la-png.Tpo" -c -o libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c; \ then mv -f ".deps/libpng12_la-png.Tpo" ".deps/libpng12_la-png.Plo"; else rm -f ".deps/libpng12_la-png.Tpo"; exit 1; fi
gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c png.c -fno-common -DPIC -o .libs/libpng12_la-png.o
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [libpng12_la-png.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [libpng/libpng.a] Error 2
make: *** [subdirs] Error 2

Discussion


Log in to post a comment.