Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.

878 views
Skip to first unread message

ajay

unread,
Jan 4, 2013, 9:11:24 PM1/4/13
to dislin...@googlegroups.com

Rauthe-Schöch, Armin

unread,
Jan 5, 2013, 5:15:01 AM1/5/13
to dislin...@googlegroups.com
Hi,

please tell us a bit more about your problems and your setup.

- Which DISLIN distribution did you download ?
- Which compiler do you want to use ?

As far as I know, the MAC operating system is a kind of unix/linux system. And there is a DISLIN distribution for MAC OS:
http://www.mps.mpg.de/dislin/darwin.html

Did you follow the instructions from the README ?
ftp://ftp.gwdg.de/pub/grafik/dislin/darwin/README.DARWIN

What exactly does not work when you try to compile a DISLIN example ?


Cheers,
Armin



From: dislin...@googlegroups.com [dislin...@googlegroups.com] on behalf of ajay [amah...@gmail.com]
Sent: Saturday, January 05, 2013 03:11
To: dislin...@googlegroups.com
Subject: Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.


ajay

unread,
Jan 5, 2013, 4:02:13 PM1/5/13
to dislin...@googlegroups.com
Thanks for the reply. I have installed DISLIN in the folder /Users/ajay/. I am stuck at the step below.
______________________________________________________________
f) To make DISLIN available for general use, write the following com-
   mands to your .profile or to /etc/profile

                    export DISLIN=directory                    
                    PATH=$PATH:$DISLIN/bin
                    export DYLD_LIBRARY_PATH=$DISLIN

   Note: The environment variable DISLIN is not necessary if DISLIN
         is installed in the default directory '/usr/local/dislin'.
______________________________________________________________
 
I am not able to add the three lines to /etc/profile. It says it's a read only file. Also there is no /usr/local directory on my computer.
On Friday, January 4, 2013 8:11:24 PM UTC-6, ajay wrote:
 

Rauthe-Schöch, Armin

unread,
Jan 5, 2013, 5:01:18 PM1/5/13
to dislin...@googlegroups.com
Hi,

I think it does not really matter where you install DISLIN, as long as you put the correct directory into the DISLIN environment variable (so don't worry that there is no /usr/local/ on your computer).

The file /etc/profile is the system default profile for all users. Usually it is processed first. Then the user specific .profile file is processed. It is usually in the home directory, in your case I would look for it in /Users/ajay/.profile

If there is no ".profile" file you can try to put the commands into the user specific configuration file for the shell you are using, i.e. for a Bash shell it would be /Users/ajay/.bashrc

Anyway, for testing, you can simply execute the commands in a shell and then try to compile a program. The ".profile" file thing is only to make sure that the commands are executed each time you restart your computer or login again.


Good luck !
Armin



Sent: Saturday, January 05, 2013 22:02
To: dislin...@googlegroups.com
Subject: Re: Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.

ajay

unread,
Jan 5, 2013, 6:58:26 PM1/5/13
to dislin...@googlegroups.com
Thanks again for the prompt reply. I tried to compile and run one of the example code.  I am getting an error while running the code "dyld: Symbol not found: _XtStrings." Below is the screen shot. 
____________________________________________________________________________
ajays-MacBook-Air:examples ajay$ ls
dislin.h exa_c.c exa_f77.f map_c.c map_f77.f test.c
exa_c exa_cpp.cpp exa_f90.f90 map_cpp.cpp map_f90.f90
ajays-MacBook-Air:examples ajay$ gcc exa_c.c -L$DISLIN -ldislin -lm 
ajays-MacBook-Air:examples ajay$ ls
a.out exa_c exa_cpp.cpp exa_f90.f90 map_cpp.cpp map_f90.f90
dislin.h exa_c.c exa_f77.f map_c.c map_f77.f test.c
ajays-MacBook-Air:examples ajay$ ./a.out
dyld: Symbol not found: _XtStrings
  Referenced from: /Users/ajay/dislin/libdislin.10.dylib
  Expected in: flat namespace

Trace/BPT trap: 5
ajays-MacBook-Air:examples ajay$ 
_______________________________________________________________________________

The already complied exa_c works fine when I enter "clink exa_c".

Rauthe-Schöch, Armin

unread,
Jan 6, 2013, 7:50:37 AM1/6/13
to dislin...@googlegroups.com
Hi,

Google found this possible explanation:
http://ps-2.kev009.com/tl/techlib/qna/wwqa/html/RISCL/rta42036.htm

The "XtStrings" symbol belongs to the Xt library. On my Linux OpenSuSE 11.4 computer, the file
"/usr/lib/libXt.so.6" is from the package "Xorg-x11-libXt-32bit-7.6_1.0.9-4.1.x86_64".

So:
- is there a "libXt*" file on your computer ? If yes, tell us the exact filename
- if not, try to install the "libXt" on your MAC and then try compiling the DISLIN example again.


Good luck!
Armin



Sent: Sunday, January 06, 2013 00:58

To: dislin...@googlegroups.com
Subject: Re: Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.

ajay

unread,
Jan 6, 2013, 6:31:38 PM1/6/13
to dislin...@googlegroups.com
Hi Armin,
I very much appreciate your help.  I could not find "libXt.so.6". Below are the libXt libraries I found. I could not find package online that has this library.
_________________________________________________________________________________________________________________________
ajays-MacBook-Air:~ ajay$ sudo find / -iname 'libXt*'
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXt.6.0.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXt.6.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXt.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXTrap.6.4.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXTrap.6.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXTrap.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXtst.6.1.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXtst.6.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libXtst.dylib
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/opt/X11/lib/libXt.6.dylib
/opt/X11/lib/libXt.dylib
/opt/X11/lib/libXTrap.6.dylib
/opt/X11/lib/libXTrap.dylib
/opt/X11/lib/libXtst.6.dylib
/opt/X11/lib/libXtst.dylib
ajays-MacBook-Air:~ ajay$ 
______________________________________________________________________________________________________________________________

I tried to compile the example code linking "/opt/X11/lib", but it gave me the same error as shown below. 
______________________________________________________________________________________________________________________________
ajays-MacBook-Air:examples ajay$ ls
a.out exa_c exa_f77.f map_cpp.cpp test.c
a.out.dSYM exa_c.c exa_f90.f90 map_f77.f
dislin.h exa_cpp.cpp map_c.c map_f90.f90
ajays-MacBook-Air:examples ajay$ gcc exa_c.c -L$DISLIN -ldislin -L/opt/X11/lib
ajays-MacBook-Air:examples ajay$ ./a.out
dyld: Symbol not found: _XtStrings
  Referenced from: /Users/ajay/dislin/libdislin.10.dylib
  Expected in: flat namespace

Trace/BPT trap: 5
ajays-MacBook-Air:examples ajay$ 
________________________________________________________________________________________________________________________________

Thanks again. 

Ajay Mahato.

Rauthe-Schöch, Armin

unread,
Jan 7, 2013, 2:45:58 AM1/7/13
to dislin...@googlegroups.com
Hi Ajay,

the "-L" option just tells the linker which directories to search for libraries. To include an additional library, you have to use "-lXt" to tell the linker to link the specified library to the executable. Note that you have to omit the "lib" part of the library name "libXt". If the linker complains that it cannot find the "libXt" library, you have to add the "-L" option as you have done already. But I would guess that the linker knows the path by default.

Cheers,
Armin


Sent: Monday, January 07, 2013 00:31

To: dislin...@googlegroups.com
Subject: Re: Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.

ajay

unread,
Jan 7, 2013, 3:14:21 PM1/7/13
to dislin...@googlegroups.com
Hi Armin,

I finally got it to work. It was missing the openmotif libraries. "gcc test.c -L$DISLIN -ldislin -L/usr/OpenMotif/lib -lXm" is the command line I used for compiling. Have you used dislin with Eclipse ?  I am having trouble getting it to work.  

Thank you very for your help.
Ajay 

Rauthe-Schöch, Armin

unread,
Jan 7, 2013, 3:35:18 PM1/7/13
to dislin...@googlegroups.com
Hi Ajay,

I'm glad you found your problem and now the DISLIN mailinglist archive also contains the solution. Thanks for posting it.

Concerning Eclipse, I can't help you. But maybe you open a new thread and describe your problem ? Maybe someone else can help you.


Cheers,
Armin



Sent: Monday, January 07, 2013 21:14

To: dislin...@googlegroups.com
Subject: Re: Can anyone help me install dislin on mac (mountain lion)? I have been trying for few days with no luck.

Helmut Michels

unread,
Jan 7, 2013, 3:37:20 PM1/7/13
to dislin...@googlegroups.com
Hi Ajay,


I finally got it to work. It was missing the openmotif libraries. "gcc test.c -L$DISLIN -ldislin -L/usr/OpenMotif/lib -lXm" is the command line I used for compiling. Have you used dislin with Eclipse ?  I am having trouble getting it to work.  

Thank you very for your help.
Ajay 

thank you for the information. It looks like that Dislin is compatible to Mountain Lion.
I have tried to install Mountain Lion on my Mac mini to check it, but the Mac mini was too
old and not supported by Mountain Lion. So, I can wait with buying new Mac hardware.

Best regards,

Helmut

  
Reply all
Reply to author
Forward
0 new messages