Status of ifeffit, atoms, athena, etc on MacOS X
This may be the first message on the mailing list? It is a message mostly composed of questions: I have ifeffit and atoms running just fine on MacOS X, thanks to Francois' hard work figuring some things out and Matt's quick port of ifeffit. 1. Does anyone have Athena running? 2. Is anyone able to run ifeffit from Terminal.app, as opposed to running it from an xterm? When I try this, I get an error message, "PGPLOT /xw: cannot connect to X server". When I do ps -aux | grep pgp I see a process charlesb 3239 0.0 0.1 67316 672 std- S 0:00.04 /sw/pgplot/pgxwin_server -display :0.0 so clearly I need to something to tell terminal.app about the pgplot server? Anyone have advice on this? I just don't know where to look beyond this point. Why do I care about this distinction? (1) Terminal.app supports cut/copy/paste, (2) terminal.app is scriptable, which means that you can define define macros, or use script menu to put in common command blocks. In principle, this means that you could use Applescript studio to control ifeffit from a mac-native gui. 3. Has anyone run ifeffit using aquaterm? I'm very heartened by the recent rapid progress and hope that it can continue.
On Wed, 6 Mar 2002, Charles Bouldin
said:
CB> This may be the first message on the mailing list? It is a CB> message mostly composed of questions: CB> I have ifeffit and atoms running just fine on MacOS X, thanks to CB> Francois' hard work figuring some things out and Matt's quick CB> port of ifeffit. CB> 1. Does anyone have Athena running? Do the ifeffit-y parts of tkatoms work? Is there a "Plotter" notecard? Is there an option to use CL in the dafs or powder simulation? If so, do they work? If they work, then why doesn't athena? Would a perl 10-liner that does something simple with both ifeffit and Tk be useful? This queries Ifeffit for the value of the etok scalar and displays it in a Tk window with a "Done" button. #!/usr/bin/perl -w use Tk; use Ifeffit qw(get_scalar); use Tk::Dialog; my $x = get_scalar('etok'); my $top=MainWindow->new(); $top->Label(-text=>"Ifeffit sez etok=$x") ->pack(); $top->Button(-text=>'Done', -command=>sub{exit})->pack(); MainLoop; Hmmm... guess that's 9 lines ;-) If this works, then I think you have made good progress towards athena. B -- Bruce Ravel ----------------------------------- ravel@phys.washington.edu U.S. Naval Research Laboratory, Code 6134 phone: (1) 202 767 5947 Washington DC 20375, USA fax: (1) 202 767 1697 NRL Synchrotron Radiation Consortium (NRL-SRC) Beamlines X11a, X11b, X23b, X24c, U4b National Synchrotron Light Source Brookhaven National Laboratory, Upton, NY 11973 My homepage: http://feff.phys.washington.edu/~ravel EXAFS software: http://feff.phys.washington.edu/~ravel/software/exafs/
Hi,
I have ifeffit and atoms running just fine on MacOS X, thanks to Francois' hard work figuring some things out and Matt's quick port of ifeffit.
1. Does anyone have Athena running?
Not yet. I'm still struggling with the perl/Tk part. I've tried twice, but haven't gotten it to work yet.
2. Is anyone able to run ifeffit from Terminal.app, as opposed to running it from an xterm? When I try this, I get an error message, "PGPLOT /xw: cannot connect to X server". When I do ps -aux | grep pgp I see a process
charlesb 3239 0.0 0.1 67316 672 std- S 0:00.04 /sw/pgplot/pgxwin_server -display :0.0
so clearly I need to something to tell terminal.app about the pgplot server? Anyone have advice on this? I just don't know where to look beyond this point.
Why do I care about this distinction? (1) Terminal.app supports cut/copy/paste, (2) terminal.app is scriptable, which means that you can define define macros, or use script menu to put in common command blocks. In principle, this means that you could use Applescript studio to control ifeffit from a mac-native gui.
Can you run any X applications from the Terminal.app? Assuming you can, here's a thought (I'll try this out too): From a 'real xterm' launch ifeffit and do a simple plot ~> ifeffit Ifeffit> testplot Ifeffit> quit This should leave the PGPLOT window up and alive and ready for the next connection. (If the PGPLOT window goes away when you quit ifeffit, setting environmental variable PGPLOT_DEV to '/xserve' should fix that). Then run ifeffit in a Terminal.App. This might/should be able to find and use the already-running PGPLOT window. It sounds kludgy, but if this works we can probably use it to rig something to auto-start PGPLOT from a non-xterm.
3. Has anyone run ifeffit using aquaterm?
I haven't tried. It looks interesting .... Bruce's suggestion: BR> #!/usr/bin/perl -w BR> use Tk; BR> use Ifeffit qw(get_scalar); BR> use Tk::Dialog; BR> my $x = get_scalar('etok'); BR> my $top=MainWindow->new(); BR> $top->Label(-text=>"Ifeffit sez etok=$x") ->pack(); BR> $top->Button(-text=>'Done', -command=>sub{exit})->pack(); BR> MainLoop; The Ifeffit part of this should work: #!/usr/bin/perl use Ifeffit qw(get_scalar); $x = get_scalar('etok'); print " Ifeffit sez etok=$x\n"; but, I don't have the perl/Tk working. To get 'use Ifeffit;' to work, this: cd ifeffit_1.0b/src/macosx make sudo make install cd ../../wrappers/perl perl Makefile.PL sudo make install should do the trick (ie, install Ifeffit.pm after installing the base library). This ought to build and install athena too. For what it's worth, python/Tkinter and gifeffit run OK for me. --Matt
participants (3)
-
Bruce Ravel
-
Charles Bouldin
-
Matt Newville