Herself’s Artificial Intelligence

Humans, meet your replacements.

How to get Octave and GNUPlot working on OSX

without comments

Octave (download)

Install Octave per directions.
To start Octave from a command line create the following file and place it with permissions 755 in /user/local/bin

file name: Octave
#!/bin/bash
open /Applications/Octave.app

Next edit /Applications/Octave.app/Contents/Resources/bin/mkoctfile
Add these lines to the bottom of the file:
# fixes to make gnuplot behave
CFLAGS=”-m32 ${CFLAGS}”
FFLAGS=”-m32 ${FFLAGS}”
CPPFLAGS=”-m32 ${CPPFLAGS}”
CXXFLAGS=”-m32 ${CXXFLAGS}”
LDFLAGS=”-m32 ${LDFLAGS}”


GNU Plot (download)

Install per directions.
Edit the file /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot
Edit the 5th and 6th lines below and save

# Setting up various path information variables that are needed to
# startup the Gnuplot program.
GNUPLOT_HOME=”${ROOT}”
PATH=”${ROOT}/bin:${PATH}”
# DYLD_LIBRARY_PATH=”${ROOT}/lib:${DYLD_LIBRARY_PATH}”
DYLD_LIBRARY_PATH=”${ROOT}/lib”
DYLD_FRAMEWORK_PATH=”${ROOT}/lib:${DYLD_FRAMEWORK_PATH}”


 

More information:
Stack Overflow directions to fix GNUPlot to work with Octave on OSX

Written by Linda MacPhee-Cobb

October 13th, 2011 at 5:59 pm

Posted in cool open source ai projects

Tagged with ,

Leave a Reply

You must be logged in to post a comment.