Mac OSX installation
Mac OSX installation
Hi,
I'm trying to run elegant under OSX 10.10 (Yosemite). I downloaded the latest Darwinn-x86 executables for both elegant and SDDS tools, moved the files to a folder in the home directory but can only run elegant using ./elegant and adding the environment variable definition in the command line (incovenient); however the sdds commands do not work. I know that I have at least 2 problems: adding correctly the PATH to the folder and defining the environment variable in a permanent way. I tried creating .bash_profile with a line defining the environment variavle, with no luck. My knowledge of Unix is limited, so any help would be appreciated. Thanks in advance,
S. Bernal
I'm trying to run elegant under OSX 10.10 (Yosemite). I downloaded the latest Darwinn-x86 executables for both elegant and SDDS tools, moved the files to a folder in the home directory but can only run elegant using ./elegant and adding the environment variable definition in the command line (incovenient); however the sdds commands do not work. I know that I have at least 2 problems: adding correctly the PATH to the folder and defining the environment variable in a permanent way. I tried creating .bash_profile with a line defining the environment variavle, with no luck. My knowledge of Unix is limited, so any help would be appreciated. Thanks in advance,
S. Bernal
Re: Mac OSX installation
I'm running OSX 10.9.5 but I think it works the same way. I set my environment variables in ~/.profile
export RPN_DEFNS=$HOME/defns.rpn
export PATH=$PATH:$HOME/bin
export RPN_DEFNS=$HOME/defns.rpn
export PATH=$PATH:$HOME/bin
Re: Mac OSX installation
Thanks Soliday for your prompt reply. I succeded in solving only one of the problems, i.e., permanently defining the environment variable. But I had to do it differently:
"export RPN_DEFNS=~/defns.rpn" in the .profile file.
By the way this is the same under Ubuntu Linux 14.04. However, when trying to sddsplot I get an error message (in the Mac):
sh: mpl_motif: command not found
I checked, and found that mpl_motif is where sddsplot, elegant and the other Unix executable files are, so it may still be a problem with the PATH. I should also add that I put all these executables in a folder ("Elegant") in the Applications folder where all executables for applications with GUIs reside in the Mac (OS X 10.10). I will appreciate any additional hints.
S. Bernal
"export RPN_DEFNS=~/defns.rpn" in the .profile file.
By the way this is the same under Ubuntu Linux 14.04. However, when trying to sddsplot I get an error message (in the Mac):
sh: mpl_motif: command not found
I checked, and found that mpl_motif is where sddsplot, elegant and the other Unix executable files are, so it may still be a problem with the PATH. I should also add that I put all these executables in a folder ("Elegant") in the Applications folder where all executables for applications with GUIs reside in the Mac (OS X 10.10). I will appreciate any additional hints.
S. Bernal
Re: Mac OSX installation
So it sounds like all the SDDS/Elegant programs are in /Applications/Elegant/
Did you add this to your PATH variable?
Did you add this to your PATH variable?
Re: Mac OSX installation
Yes, I changed the PATH variable with no luck; l cannot get sddsplot to work. Since other exceutables such as "sddsprintout" work OK, the problem must be with motif. When I try "./mpl_motif" I get the following error message:
"dyld: library not loaded: /opt/X11/lib/libXmu.6.dylib"
I found that the library is in fact in a different location: "/usr/X11/lib/libXmu.6.dylib"
So I tried creating a "symbolic link" to that location: "sudo -s /opt/X11/lib /usr/X11/lib". It did not make any difference; I might try variations of this method again or try to reinstall motif instead. Thanks for any additional advice. S. Bernal
"dyld: library not loaded: /opt/X11/lib/libXmu.6.dylib"
I found that the library is in fact in a different location: "/usr/X11/lib/libXmu.6.dylib"
So I tried creating a "symbolic link" to that location: "sudo -s /opt/X11/lib /usr/X11/lib". It did not make any difference; I might try variations of this method again or try to reinstall motif instead. Thanks for any additional advice. S. Bernal
Re: Mac OSX installation
Okay, I'm not in the office today, but it appears to me that I may have linked to the MacPorts version of libXmu instead of the system version. I'll look into this when I get back to my mac tomorrow.
Re: Mac OSX installation
Okay, I just looked into this. I am running OSX 10.9.5. I have XQuartz installed. XQuartz supplies the files in /opt/X11/lib and also creates a symlink from /usr/X11 that points to /opt/X11. There are a lot of reports about people who upgraded to OSX 10.10 who lost the symlink but they still had the real files in /opt/X11, not /usr/X11 like you do. For them, reinstalling XQuartz seemed to work. However I am not sure where your /usr/X11 files came from.
-
- Posts: 7
- Joined: 07 Jan 2013, 10:36
Re: Mac OSX installation
Hi All,
I am getting the same error.
.profile contains
and /usr/X11 points to /opt/X11.
I have reinstalled X-Quartz and the most recent OS-X ELEGANT distribution, so I think that the path may be wrong.
All help appreciated.
Christina
I am getting the same error.
.profile contains
Code: Select all
export RPN_DEFNS=~/Applications/ELEGANT/defns.rpn
export PATH=~/Applications/ELEGANT:$PATH
I have reinstalled X-Quartz and the most recent OS-X ELEGANT distribution, so I think that the path may be wrong.
All help appreciated.
Christina
Re: Mac OSX installation
What do you get when you run "otool -L mpl_motif" ?
$ otool -L `which mpl_motif`
/Users/soliday/epics/extensions/bin/darwin-x86/mpl_motif:
/opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/opt/X11/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libpng15.15.dylib (compatibility version 34.0.0, current version 34.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)
I am running XQuartz 2.7.8 (xorg-server 1.16.4)
If you are getting the "dyld: library not loaded: /opt/X11/lib/libXmu.6.dylib" message, can you verify that you have /opt/X11/lib/libXmu.6.dylib installed? My understanding is this is an XQuartz file.
$ otool -L `which mpl_motif`
/Users/soliday/epics/extensions/bin/darwin-x86/mpl_motif:
/opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/opt/X11/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libpng15.15.dylib (compatibility version 34.0.0, current version 34.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)
I am running XQuartz 2.7.8 (xorg-server 1.16.4)
If you are getting the "dyld: library not loaded: /opt/X11/lib/libXmu.6.dylib" message, can you verify that you have /opt/X11/lib/libXmu.6.dylib installed? My understanding is this is an XQuartz file.
-
- Posts: 7
- Joined: 07 Jan 2013, 10:36
Re: Mac OSX installation
Thanks for the reply. I'm running the same version.
Output:
mpl_motif:
/opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/opt/X11/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libpng15.15.dylib (compatibility version 34.0.0, current version 34.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)
Output:
mpl_motif:
/opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0)
/opt/X11/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0)
/opt/X11/lib/libXft.2.dylib (compatibility version 6.0.0, current version 6.2.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)
/opt/X11/lib/libpng15.15.dylib (compatibility version 34.0.0, current version 34.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)