Problem with Octave, Gnuplot, Mac 10.7.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Octave, Gnuplot, Mac 10.7.3

James R. Hunter
I try to run any graphics command from within Octave (3.4.0 4/21/11 compile from SourceForge). This calls Gnuplot (version from within the Octave Extras folder) and it results in the following response:

Last login: Thu Feb  9 12:34:28 on ttys000
b1212134:~ jameshunter$ exec '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
  Referenced from: /usr/X11/lib/libfontconfig.1.dylib
  Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.4.3" "$@"

I have tried killing all the files and reloading them from the dmg. No joy. The problem appears to be with Aquaterm, but I don't understand it. This problem has only appeared since the last update of Lion from Apple (10.7.3).  Help?



_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

Alexander Hansen-2
On 2/9/12 10:18 AM, James R. Hunter wrote:

> I try to run any graphics command from within Octave (3.4.0
> 4/21/11 compile from SourceForge). This calls Gnuplot (version from
> within the Octave Extras folder) and it results in the following
> response:
>
> /Last login: Thu Feb  9 12:34:28 on ttys000/ /b1212134:~
> jameshunter$ exec
> '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'/ /dyld:
> Library not loaded: /usr/X11/lib/libfreetype.6.dylib/ /  Referenced
> from: /usr/X11/lib/libfontconfig.1.dylib/ /  Reason: Incompatible
> library version: libfontconfig.1.dylib requires version 14.0.0 or
> later, but libfreetype.6.dylib provides version 13.0.0/
> //Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line
> 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}"
> GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}"
> DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}"
> GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}"
> GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}"
> GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}"
> "${ROOT}/bin/gnuplot-4.4.3" "$@"/
>
> I have tried killing all the files and reloading them from the dmg.
> No joy. The problem appears to be with Aquaterm, but I don't
> understand it. This problem has only appeared since the last update
> of Lion from Apple (10.7.3).  Help?
>
>
>
>
> _______________________________________________ Help-octave mailing
> list [hidden email]
> https://mailman.cae.wisc.edu/listinfo/help-octave

http://sourceforge.net/mailarchive/message.php?msg_id=28805743

The problem doesn't have anything to do directly with Aquaterm, but
rather with how the Gnuplot.app you're using was set up.

--
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

bpabbott
Administrator
In reply to this post by James R. Hunter
On Feb 9, 2012, at 10:18 AM, James R. Hunter wrote:

> I try to run any graphics command from within Octave (3.4.0 4/21/11 compile from SourceForge). This calls Gnuplot (version from within the Octave Extras folder) and it results in the following response:
>
> Last login: Thu Feb  9 12:34:28 on ttys000
> b1212134:~ jameshunter$ exec '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
> dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
>   Referenced from: /usr/X11/lib/libfontconfig.1.dylib
>   Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
> /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.4.3" "$@"
>
> I have tried killing all the files and reloading them from the dmg. No joy. The problem appears to be with Aquaterm, but I don't understand it. This problem has only appeared since the last update of Lion from Apple (10.7.3).  Help?

You'll need to find a new gnuplot app for Lion. You can use one of the popular package managers ...

(1) FInk

        http://www.finkproject.org/

(2) MacPorts

        http://www.macports.org/

(3) Homebrew

        http://mxcl.github.com/homebrew/

Or you can build and install yourself

        http://bhou.wordpress.com/2011/09/13/how-to-install-gnuplot-in-mac-os-x-lion/

Ben

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

bpabbott
Administrator

On Feb 9, 2012, at 1:35 PM, Ben Abbott wrote:

> On Feb 9, 2012, at 10:18 AM, James R. Hunter wrote:
>
>> I try to run any graphics command from within Octave (3.4.0 4/21/11 compile from SourceForge). This calls Gnuplot (version from within the Octave Extras folder) and it results in the following response:
>>
>> Last login: Thu Feb  9 12:34:28 on ttys000
>> b1212134:~ jameshunter$ exec '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
>> dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
>>  Referenced from: /usr/X11/lib/libfontconfig.1.dylib
>>  Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
>> /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.4.3" "$@"
>>
>> I have tried killing all the files and reloading them from the dmg. No joy. The problem appears to be with Aquaterm, but I don't understand it. This problem has only appeared since the last update of Lion from Apple (10.7.3).  Help?
>
> You'll need to find a new gnuplot app for Lion. You can use one of the popular package managers ...
>
> (1) FInk
>
> http://www.finkproject.org/
>
> (2) MacPorts
>
> http://www.macports.org/
>
> (3) Homebrew
>
> http://mxcl.github.com/homebrew/
>
> Or you can build and install yourself
>
> http://bhou.wordpress.com/2011/09/13/how-to-install-gnuplot-in-mac-os-x-lion/
>
> Ben

The gnuplot-4.2.6 included with the Maxima DMG at the link below works for me.

        http://sourceforge.net/projects/maxima/files/Maxima-MacOS/5.26.0-MacOSX/

Ben

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

Stuart Edwards
In reply to this post by bpabbott

On Feb 9, 2012, at 1:35 PM, Ben Abbott wrote:

> On Feb 9, 2012, at 10:18 AM, James R. Hunter wrote:
>
>> I try to run any graphics command from within Octave (3.4.0 4/21/11 compile from SourceForge). This calls Gnuplot (version from within the Octave Extras folder) and it results in the following response:
>>
>> Last login: Thu Feb  9 12:34:28 on ttys000
>> b1212134:~ jameshunter$ exec '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
>> dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
>>  Referenced from: /usr/X11/lib/libfontconfig.1.dylib
>>  Reason: Incompatible library version: libfontconfig.1.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
>> /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-4.4.3" "$@"
>>
>> I have tried killing all the files and reloading them from the dmg. No joy. The problem appears to be with Aquaterm, but I don't understand it. This problem has only appeared since the last update of Lion from Apple (10.7.3).  Help?
>
> You'll need to find a new gnuplot app for Lion. You can use one of the popular package managers ...
>
> (1) FInk
>
> http://www.finkproject.org/
>
> (2) MacPorts
>
> http://www.macports.org/
>
> (3) Homebrew
>
> http://mxcl.github.com/homebrew/
>
> Or you can build and install yourself
>
> http://bhou.wordpress.com/2011/09/13/how-to-install-gnuplot-in-mac-os-x-lion/
>
> Ben
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://mailman.cae.wisc.edu/listinfo/help-octave

I have Gnuplot 4.4 from the OS X bundle extras folder running on 10.7.2 - seems to work ok with aquaterm.  Did you move it to your Applications folder, or just leave it in the Extras folder? - the former is correct.
You should be able to do:
>gnuplot
# gnuplot splash opens
>plot(sin(x))
#aquaterm opens and plots a sine wave.

Stu


_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

Alexander Hansen-2
On 2/9/12 3:01 PM, Stuart Edwards wrote:

>
> On Feb 9, 2012, at 1:35 PM, Ben Abbott wrote:
>
>> On Feb 9, 2012, at 10:18 AM, James R. Hunter wrote:
>>
>>> I try to run any graphics command from within Octave (3.4.0
>>> 4/21/11 compile from SourceForge). This calls Gnuplot (version
>>> from within the Octave Extras folder) and it results in the
>>> following response:
>>>
>>> Last login: Thu Feb  9 12:34:28 on ttys000 b1212134:~
>>> jameshunter$ exec
>>> '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
>>> dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib
>>> Referenced from: /usr/X11/lib/libfontconfig.1.dylib Reason:
>>> Incompatible library version: libfontconfig.1.dylib requires
>>> version 14.0.0 or later, but libfreetype.6.dylib provides
>>> version 13.0.0
>>> /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line
>>> 71: 25461 Trace/BPT trap: 5       GNUTERM="${GNUTERM}"
>>> GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}"
>>> DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}"
>>> GNUHELP="${GNUHELP}"
>>> DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}"
>>> GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}"
>>> GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}"
>>> "${ROOT}/bin/gnuplot-4.4.3" "$@"
>>>
>>> I have tried killing all the files and reloading them from the
>>> dmg. No joy. The problem appears to be with Aquaterm, but I
>>> don't understand it. This problem has only appeared since the
>>> last update of Lion from Apple (10.7.3).  Help?
>>
>> You'll need to find a new gnuplot app for Lion. You can use one
>> of the popular package managers ...
>>
>> (1) FInk
>>
>> http://www.finkproject.org/
>>
>> (2) MacPorts
>>
>> http://www.macports.org/
>>
>> (3) Homebrew
>>
>> http://mxcl.github.com/homebrew/
>>
>> Or you can build and install yourself
>>
>> http://bhou.wordpress.com/2011/09/13/how-to-install-gnuplot-in-mac-os-x-lion/
>>
>>
>>
Ben

>>
>> _______________________________________________ Help-octave
>> mailing list [hidden email]
>> https://mailman.cae.wisc.edu/listinfo/help-octave
>
> I have Gnuplot 4.4 from the OS X bundle extras folder running on
> 10.7.2 - seems to work ok with aquaterm.  Did you move it to your
> Applications folder, or just leave it in the Extras folder? - the
> former is correct. You should be able to do:
>> gnuplot
> # gnuplot splash opens
>> plot(sin(x))
> #aquaterm opens and plots a sine wave.
>
> Stu
>
>

It will stop working as soon as you update to 10.7.3, for reasons that
I've detailed elsewhere:

http://sourceforge.net/mailarchive/message.php?msg_id=28805743

--
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Octave, Gnuplot, Mac 10.7.3

nabatzis
The way I was able to resolve this problem is as follows:
1. cd to the directory /usr/X11/lib/
2. otool -L libfreetype.6.dylib, this will give you a listing of the compatibility version for the library, in my case it said compatibility 14.0.0 so I knew I was good to go,
3. cp /Applications/Gnuplot.app/Contents/Resources/lib/libfreetype.6.dylib <same-path>/libfreetype.6.dylib.orig    -- just to protect the innocent!
4. cp libfreetype.6.dylib /Applications/Gnuplot.app/Contents/Resources/lib/


That did it for me. I also saw some posting about changing the library paths in the script file that launches gnuplot. Although I did those changes initially they did not seem to help.

Hope this helps ...
The difference between stupidity and genius is that genius has its limits. -- Albert Einstein