I'm trying to install the dependencies for spread0r on a Mac OS X system. There' a write permissions problem on Perl while installing Cairo. Can someone give a hint? Thanks.
$ perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9456)
Enter 'h' for help.
cpan[1]> install Cairo
Going to read '/Users/tristank/.cpan/Metadata'
Database was generated on Sun, 01 Jun 2014 22:17:02 GMT
Running install for module 'Cairo'
Running make for X/XA/XAOC/Cairo-1.104.tar.gz
Checksum for /Users/tristank/.cpan/sources/authors/id/X/XA/XAOC/Cairo-1.104.tar.gz ok
Scanning cache /Users/tristank/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Going to build X/XA/XAOC/Cairo-1.104.tar.gz
Compiling Cairo with FreeType support
Checking if your kit is complete...
Looks good
Writing Makefile for Cairo
cp lib/Cairo.pm blib/lib/Cairo.pm
cp build/IFiles.pm blib/arch/Cairo/Install/Files.pm
cp cairo-perl.typemap blib/arch/Cairo/Install/cairo-perl.typemap
cp doctypes blib/arch/Cairo/Install/doctypes
cp cairo-perl.h blib/arch/Cairo/Install/cairo-perl.h
cp build/cairo-perl-auto.typemap blib/arch/Cairo/Install/cairo-perl-auto.typemap
cp build/cairo-perl-auto.h blib/arch/Cairo/Install/cairo-perl-auto.h
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap Cairo.xs > Cairo.xsc && mv Cairo.xsc Cairo.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" Cairo.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoFont.xs > CairoFont.xsc && mv CairoFont.xsc CairoFont.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoFont.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoMatrix.xs > CairoMatrix.xsc && mv CairoMatrix.xsc CairoMatrix.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoMatrix.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoPath.xs > CairoPath.xsc && mv CairoPath.xsc CairoPath.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoPath.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoPattern.xs > CairoPattern.xsc && mv CairoPattern.xsc CairoPattern.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoPattern.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoSurface.xs > CairoSurface.xsc && mv CairoSurface.xsc CairoSurface.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoSurface.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoRegion.xs > CairoRegion.xsc && mv CairoRegion.xsc CairoRegion.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoRegion.c
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.12/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoFt.xs > CairoFt.xsc && mv CairoFt.xsc CairoFt.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" CairoFt.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" cairo-perl-enums.c
clang -c -I. -Ibuild -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Os -DVERSION=\"1.104\" -DXS_VERSION=\"1.104\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" cairo-perl-flags.c
Running Mkbootstrap for Cairo ()
chmod 644 Cairo.bs
rm -f blib/arch/auto/Cairo/Cairo.bundle
LD_RUN_PATH="/opt/X11/lib" clang -mmacosx-version-min=10.8 -arch i386 -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector Cairo.o CairoFont.o CairoMatrix.o CairoPath.o CairoPattern.o CairoSurface.o CairoRegion.o CairoFt.o cairo-perl-enums.o cairo-perl-flags.o -o blib/arch/auto/Cairo/Cairo.bundle \
-L/opt/X11/lib -lcairo -lfreetype \
ld: warning: ignoring file /usr/local/lib/libcairo.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libcairo.dylib
chmod 755 blib/arch/auto/Cairo/Cairo.bundle
cp Cairo.bs blib/arch/auto/Cairo/Cairo.bs
chmod 644 blib/arch/auto/Cairo/Cairo.bs
Manifying blib/man3/Cairo.3pm
XAOC/Cairo-1.104.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-loading.t .... ok
t/Cairo.t ......... ok
t/CairoFont.t ..... ok
t/CairoFt.t ....... skipped: need Cairo with FreeType support and Font::FreeType
t/CairoMatrix.t ... ok
t/CairoPath.t ..... ok
t/CairoPattern.t .. ok
t/CairoRegion.t ... ok
t/CairoSurface.t .. ok
All tests successful.
Files=9, Tests=300, 1 wallclock secs ( 0.07 usr 0.02 sys + 0.45 cusr 0.08 csys = 0.62 CPU)
Result: PASS
XAOC/Cairo-1.104.tar.gz
/usr/bin/make test -- OK
Running make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/Library/Perl/5.12/darwin-thread-multi-2level'
Do not have write permissions on '/Library/Perl/5.12/darwin-thread-multi-2level'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
XAOC/Cairo-1.104.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Failed during this command:
XAOC/Cairo-1.104.tar.gz : install NO
I'm trying to install the dependencies for spread0r on a Mac OS X system. There' a write permissions problem on Perl while installing Cairo. Can someone give a hint? Thanks.