
September 24th, 2007, 01:44 PM
|
|
Contributing User
|
|
Join Date: Apr 2004
Location: Canada
Posts: 229
Time spent in forums: 7 h 53 m 57 sec
Reputation Power: 0
|
|
|
DISLIN on OS X
I'm trying to run DISLIN with C++ for plotting and I'm getting the following error:
Code:
[accenture:local/dislin/examples] chris% clink -a map_c
/usr/bin/ld: can't locate file for: -lXm
collect2: ld returned 1 exit status
/usr/local/dislin/bin/clink: line 110: ./map_c: No such file or directory
[accenture:local/dislin/examples] chris%
clink is supposed to compile, link and run C programs with DISLIN. map_c.c is in the examples directory and the .c in the command is not necessary.
I did the following after installing into /usr/local/dislin:
Quote:
f) To make DISLIN available for general use, write the following com-
mands to your .profile or to /etc/profile
DISLIN=directory
export DISLIN
PATH=${PATH}:${DISLIN}/bin
DYLD_LIBRARY_PATH=$DISLIN:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
For a C-shell, you should include the commands
setenv DISLIN directory
setenv PATH ${PATH}:${DISLIN}/bin
setenv DYLD_LIBRARY_PATH ${DISLIN}:${DYLD_LIBRARY_PATH} |
Any ideas? Do I need to install libXm? Why can't it find map_c.c in the directory that I'm in?
I've tried using bash and csh.
Last edited by NetBSD : September 24th, 2007 at 01:46 PM.
|