On Monday, 23 March 2015 10:22:40 UTC, peter metcalf wrote:
>
> HI All
>
> I'm trying to read jpg files using PIL or matplotlib
>
> any help/suggestions would be most welcome!
>
> the following fails
>
> sage -i libjpeg-6b
>
> the relevant part of the log file may be
>
> ==================================================
>
> gcc -fPIC  -I.   -c -o jmemmgr.o jmemmgr.c
>
> gcc -fPIC  -I.   -c -o jmemnobs.o jmemnobs.c
>
> rm -f libjpeg.a
>
> ar rc libjpeg.a  jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o 
> jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o 
> jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o 
> jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o 
> jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o 
> jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o 
> jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o
>
> ranlib libjpeg.a
>
> sh: line 1:  4325 Trace/BPT trap: 5       
> /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find 
> ranlib 2> /dev/null
>
> ranlib: error: unable to find utility "ranlib", not a developer tool or in 
> PATH
>
> make: *** [libjpeg.a] Error 72
>
> ===================================================
>
> I also noted this odd line at the beginning of the log file (I am not Karl 
> Crisman)
>

it just tells us that you are running a binary distribution of Sage built 
by Karl.

I suspect that the problem is that the package you're trying to install is 
a very old (from 2007)
and since then OSX has changed much. And there is no regular testing of 
experimental packages, 
so you're more or less on your own here.

By the way, are you sure you have XCode's command line tools installed?

If yes, it might mean that you need to replace a call to ranlib to an 
equavalent call to ar:
at least on Linux: 
"running ranlib is completely equivalent to executing ar -s"

So you might edit the spkg-install script to fix it, or create a ranlib 
shell script that will
call ar...

Let us know if this works.

Dmitrii


> ===================================================
>
> C compiler: gcc
>
> C compiler version:
>
> Using built-in specs.
>
> COLLECT_GCC=/Applications/sage/local/bin/gcc
>
>
> COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/../libexec/gcc/x86_64-apple-darwin11.4.2/4.9.2/lto-wrapper
>
> Target: x86_64-apple-darwin11.4.2
>
> Configured with: ../src/configure 
> --prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
> --with-local-prefix=/Users/karl.crisman/Downloads/sage-6.5/local 
> --with-gmp=/Users/karl.crisman/Downloads/sage-6.5/local 
> --with-mpfr=/Users/karl.crisman/Downloads/sage-6.5/local 
> --with-mpc=/Users/karl.crisman/Downloads/sage-6.5/local --with-system-zlib 
> --disable-multilib --disable-nls --enable-languages=c,c++,fortran 
> --disable-libitm --without-isl --without-cloog  
>
> Thread model: posix
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to