OK, After installing perl/Tk, tkatoms (3.0beta5) installed without problems. Since I had already installed the ifeffit perl extension, and perl -e 'use Ifeffit;' was already working without complaint, the tkatoms interface to ifeffit ran fine. I also verified that a 'Powder' calculation ran and plotted to its canvas, and that the Chantler, Elam, and CL resources worked for absorption calcs. I couldn't get a plot in the DAFS window, but that could be operator error. After this, I reinstalled the ifeffit perl extension (though it may not have been necessary), and ... athena runs. It seemed to run perfectly, though I didn't try everything. There is a problem with athena saving hardcopies, but I think that will be easy to fix. In short, I believe everything is working on MacOS X. The necessary ingredients seem to be: From http://fink.sourceforge.net/ fink components: rootless X-windows, an X window manager (eg, orobus, sawfish, windowmaker), g77, python, and PGPLOT. From http://www.Lehigh.EDU/~sol0/Macintosh/X/ptk/ the perl/Tk fix for dyld follow instructions carefully!!! From http://cpan.perl.com/ perl's Tk800 build from source: > Perl Makefile.PL ; sudo make install From http://feff.phys.washington.edu/~ravel/software/exafs/ tkatoms build from source: > Perl Makefile.PL ; sudo make install From http://cars.uchicago.edu/ifeffit ifeffit.tar.gz, unpack and install: base lib: > tar xvzf ifeffit.tar.gz > cd ifeffit_1.0b/src/macosx > make > sudo make install perl extension + athena: > cd ../../wrappers/perl > perl Makefile.PL > sudo make install python extension + gifeffit: > cd ../../wrappers/python > sudo python setup.py install Edit .cshrc, adding if (! $?DISPLAY) setenv DISPLAY 0.0 setenv PGPLOT_DEV /xwindow # PGPLOT window dies with ifeffit setenv PGPLOT_DEV /xserve # PGPLOT window stays up. Then, with X-Darwin running, tkatoms, ifeffit, gifeffit, and athena should all run from a normal Terminal.app. I haven't tried these steps on a fresh MacOS X box, so there may be a missing step or two. Thanks Chuck, Francois, Paul, and Bruce for all the help. Now, can anyone else get all this to work? --Matt
I followed your instructions so far (admittedly with a little trepidation when installing dylib) and only had trouble with the final set of instructions in your summary, namely with python. Here's what happened: sudo python setup.py install Distutils works Testing for Tkinter and Pmw Tkinter is already installed. Good. Installing Pmw 0.8.5 Traceback (most recent call last): File "setup.py", line 67, in ? pmw_dir = os.path.join(site, 'Pmw') NameError: name 'site' is not defined Where should this variable (?) site be set? Looking at the readme file in the wrappers/python directory, there seem to be some relevant instruction about copying some files associated with Ifeffit, but it doesn't seem to help. Any suggestions?
On 2002.03.09, at 01:39, Matt Newville wrote:
sudo python setup.py install
This didn't work for me so I redownloaded ifeffit and tried again. It turns out there was a typo in the setup.py file on line 76: e.g. if ((installPMW == 1) and (setuparg == 'install')): needed to be changed to if ((installPMW == 1) and (setup_arg == 'install')): for the install to work. It now compiles and I have gifeffit on my screen. I am going to sleep though! Good night from the land of the rising sun,
Hi Paul,
if ((installPMW == 1) and (setuparg == 'install')):
to
if ((installPMW == 1) and (setup_arg == 'install')):
Thanks -- and sorry for the problems. I posted yet another new version of the source (1.0070) which has a really, really fixed python installation script. This version also installs a fully working version of feffit (for those stuck in the 20th century!), and a few other minor improvements. And Bruce, FWIW, I verified (on linux) that the perl extension and athena install from a completely fresh start (ie, no Ifeffit stuff under /usr/lib/perl5/, no libifeffit.a in /usr/local/lib, and so on) and uses ../../src/lib/libifeffit.a.
participants (2)
-
Dr. Paul Fons
-
Matt Newville