Marvin Jones wrote:

Dear Fink-Beginners,

A little brainteaser. When I run gnuplot from the command line I get the following error message and gnuplot crashes immediately.

[Marvin:Marvin]$gnuplot
dyld: /sw/bin/gnuplotx version mismatch for library: /usr/lib/libncurses.5.dylib (compatibility version of user: 6.0.0 greater than library's version: 5.0.0)
/sw/bin/gnuplot: line 6: 22490 Trace/BPT trap /sw/bin/gnuplotx "$@"


However, when I run "sudo gnuplot" everything works fine. Does anyone have any ideas why this is and how the problem might be rectified?

What is strange is that /sw/bin/gnuplotx should want to load libncurses at all. For me it doesn't. You can check with


otool -L /sw/bin/gnuplotx

Another thing to check is whether you have set any environment variable of the DYLD_LIBRARY_PATH variety. This could explain some difference between running as root and as non root, because IIRC, root does not honor one of these variables, I forget which one.

Yet another idea for closing in on the error is to

  setenv DYLD_PRINT_LIBRARIES
(or "export DYLD_PRINT_LIBRARIES=1" if you are in bash)

Then try your gnuplot command again. This spits out a lot of lines, but it should make clear who is actually loading the wrong libncurses.5.dylib.

--
Martin



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to