Installing R Magick on OSX

Posted by admin Tue, 18 Dec 2007 04:16:00 GMT

Just copy and paste the following lines into your terminal.....
I have had luck doing it this way.

mkdir src
cd src
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.tar.gz
tar xzvf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://superb-west.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.10.tar.bz2
bzip2 -dc libpng-1.2.10.tar.bz2 | tar xv
cd libpng-1.2.10
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b
ln -s `which glibtool` ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --enable-shared --prefix=/usr/local
make
sudo make install
cd ..

curl -O ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
tar xzvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://jaist.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.4.tar.gz
tar xzvf libwmf-0.2.8.4.tar.gz
cd libwmf-0.2.8.4
make clean
./configure
make
sudo make install
cd ..

curl -O http://www.littlecms.com/lcms-1.15.tar.gz
tar xzvf lcms-1.15.tar.gz
cd lcms-1.15
make clean
./configure
make
sudo make install
cd ..

curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.2-9.tar.gz
tar xzvf ImageMagick-6.3.2-9.tar.gz
cd ImageMagick-6.2.9
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install
cd ..

curl -O http://rubyforge.rubyuser.de/rmagick/RMagick-1.15.8.tar.gz
tar xvzf RMagick-1.15.8.tar.gz
cd RMagick-1.14.0
make clean
./configure
make
sudo make install
cd ..

just make sure /usr/local is at the beginning of your .bash_login
and you have removed thoroughly any previous attempts at this.
This was posted on 12/17/2007 some of the versions will need to be updated.
I used this to install about three days ago on an ibook g4.

Posted in  | Tags , , , , , ,  | no comments

Older posts: 1 2 3 4 5