ImageScience

I’m trying to install Image Science on my Mac (according to the
instructions on http://seattlerb.rubyforge.org/ImageScience.html) so I
can use attachment_fu for image resizing. However the commands
beginning with ‘sudo port’ just throw up a command not found error. Is
there some part of Xcode I need to install?

Alternatively I’ve tried compiling based on the readme.osx file -
using ‘make -f Makefile.osx’ but then I get a different error:

g+±4.0 -Wno-ctor-dtor-privacy -Os -arch ppc -I. -ISource -ISource/
Metadata -ISource/FreeImageToolkit -ISource/LibJPEG -ISource/LibMNG -
ISource/LibPNG -ISource/LibTIFF -ISource/ZLib -isysroot /Developer/
SDKs/MacOSX10.3.9.sdk -c Source/FreeImage/BitmapAccess.cpp -o Source/
FreeImage/BitmapAccess.o-ppc
Source/FreeImage/BitmapAccess.cpp:30:20: error: malloc.h: No such file
or directory
make: *** [Source/FreeImage/BitmapAccess.o-ppc] Error 1

Can anyone help? I’m probably just being an idiot!

Andy C.

To use ‘port’ you’ll need to install MacPorts first:

Knew it had to be something obvious I was missing. Thanks Rob! Life/
frustration-saver.

On 14 Apr 2007, at 04:33, Jonathon Wolfe wrote:

port for freeimage, or to a bad environment variable somehow being set
in my shell… I don’t have X11 installed, but AFAIK freeimage doesn’t
require it.

I’m pretty clueless when it comes to command-line stuff (before I got
into RoR the last time I did any serious delvelopment was in the
heyday
of CodeWarrior), so if anyone here has any suggestions I (and the
other
guys having trouble installing freeimage with MacPorts) would really
appreciate it.

You need to install the latest version of the MacOS X Developer tools
(you can download the 700 MB (IIRC) disk image from the Apple
Developer Connection site).

Best regards

Peter De Berdt

Peter De Berdt wrote:

On 14 Apr 2007, at 04:33, Jonathon Wolfe wrote:

port for freeimage, or to a bad environment variable somehow being set
in my shell… I don’t have X11 installed, but AFAIK freeimage doesn’t
require it.

I’m pretty clueless when it comes to command-line stuff (before I got
into RoR the last time I did any serious delvelopment was in the
heyday
of CodeWarrior), so if anyone here has any suggestions I (and the
other
guys having trouble installing freeimage with MacPorts) would really
appreciate it.

You need to install the latest version of the MacOS X Developer tools
(you can download the 700 MB (IIRC) disk image from the Apple
Developer Connection site).

Best regards

Peter De Berdt

Thanks very much. I will try this on my PPC machine – I tried the
installation on a MacBook with a new version of the developer tools and
it worked fine. I had assumed it was a problem with the makefile for PPC
systems.

Rob Bevan wrote:

To use ‘port’ you’ll need to install MacPorts first:
http://www.macports.org/

I’m trying to install freeimage with MacPorts 1.4.0 on OSX 10.4.7, and I
seem to be having problems with the makefile. I’m not the only one:

http://sourceforge.net/forum/forum.php?thread_id=1711080&forum_id=36110

Updating MacPorts with “sudo port -d selfupdate” works fine, but I get
compiler errors with “sudo port install freeimage”. I assume this is
either due to a bad makefile for PPC macs being included in the latest
port for freeimage, or to a bad environment variable somehow being set
in my shell… I don’t have X11 installed, but AFAIK freeimage doesn’t
require it.

I’m pretty clueless when it comes to command-line stuff (before I got
into RoR the last time I did any serious delvelopment was in the heyday
of CodeWarrior), so if anyone here has any suggestions I (and the other
guys having trouble installing freeimage with MacPorts) would really
appreciate it.

Thanks!

Peter De Berdt wrote:

On 14 Apr 2007, at 04:33, Jonathon Wolfe wrote:

port for freeimage, or to a bad environment variable somehow being set
in my shell… I don’t have X11 installed, but AFAIK freeimage doesn’t
require it.

I’m pretty clueless when it comes to command-line stuff (before I got
into RoR the last time I did any serious delvelopment was in the
heyday
of CodeWarrior), so if anyone here has any suggestions I (and the
other
guys having trouble installing freeimage with MacPorts) would really
appreciate it.

You need to install the latest version of the MacOS X Developer tools
(you can download the 700 MB (IIRC) disk image from the Apple
Developer Connection site).

Best regards

Peter De Berdt

Thanks Peter, the culprit on my PPC machine was indeed an outdated
installation of the OSX developer tools. I’ll try to tell the other
people who’ve had the same problem.

-Jon Wolfe