pgplot and ifeffit installation on current linux systems
Dear all, I hope this is the right platform for my question. If not, sorry to bother anyone. The question: Has anyone successfully installed pgplot and ifeffit on a recent Arch Linux system and could provide a quick how-to guide (also for the Demeter website maybe)? Although I have not yet tested it, my problem may also be relevant for current Debian/Ubuntu systems. Here's the situation: I am trying to install ifeffit on a current Arch Linux machine and therefore need to install pgplot first. The PGPLOT_install script on the respective GitHub page (as linked by a tutorial on the Demeter page, see links below) does not work because it relies on several outdated paths to dependencies. The one culprit I was able to isolate and fix was the path to the X11 libraries, which the script looks for here: /usr/X11 or /usr/X11R6 but in current Arch Linux (at least in mine, which is Manjaro to be precise, link below) is here: /usr/share/X11 This alone does not fix all problems, there are several dependencies missing in the X11 directory and I could not find out what the actual relevant package names are in Arch (Debian/Ubuntu names cannot be found). Also the config files of pgplot seem to have a bunch of similar problems that (at least partially) seem to stem from use of an old fortran-to-c translator (f2c) instead of the gcc fortran frontend and missing dependencies for that. If I am not mistaken, the latest Ubuntu LTS (16.04.) also has the /usr/share/X11 path, so the script should not work there either. I'd be happy to provide an updated installation script if I ever get it running but I thought I'd ask if someone has done that already or has solved the related problems so as not to invent the wheel anew. Links: https://bruceravel.github.io/demeter/documents/SinglePage/installation.htmlhttps://bruceravel.github.io/demeter/documents/SinglePage/installation.html https://github.com/newville/ifeffit https://manjaro.github.io/https://manjaro.github.io/ Best regards, Anselm
Hi Anselm,
On Fri, Aug 26, 2016 at 6:33 AM, Loges, Anselm G
Dear all,
I hope this is the right platform for my question. If not, sorry to bother anyone. The question:
Has anyone successfully installed pgplot and ifeffit on a recent Arch Linux system and could provide a quick how-to guide (also for the Demeter website maybe)? Although I have not yet tested it, my problem may also be relevant for current Debian/Ubuntu systems. Here's the situation:
I am trying to install ifeffit on a current Arch Linux machine and therefore need to install pgplot first. The PGPLOT_install script on the respective GitHub page (as linked by a tutorial on the Demeter page, see links below) does not work because it relies on several outdated paths to dependencies. The one culprit I was able to isolate and fix was the path to the X11 libraries, which the script looks for here:
/usr/X11 or /usr/X11R6
but in current Arch Linux (at least in mine, which is Manjaro to be precise, link below) is here:
/usr/share/X11
This alone does not fix all problems, there are several dependencies missing in the X11 directory and I could not find out what the actual relevant package names are in Arch (Debian/Ubuntu names cannot be found). Also the config files of pgplot seem to have a bunch of similar problems that (at least partially) seem to stem from use of an old fortran-to-c translator (f2c) instead of the gcc fortran frontend and missing dependencies for that.
If I am not mistaken, the latest Ubuntu LTS (16.04.) also has the /usr/share/X11 path, so the script should not work there either.
I'd be happy to provide an updated installation script if I ever get it running but I thought I'd ask if someone has done that already or has solved the related problems so as not to invent the wheel anew.
I am not aware of anyone updating this installation script. Of course, PGPLOT itself is very old and it's build system and assumptions about APIs for things like PNG graphics, X11, and even how C/Fortran compilers work together could be beginning to fade anyway. It predates GCC 4, and so the official release of gfortran (now more than 10 years ago), by a few years. I have no idea it it works with LLVM. In short, you might be able to get it to compile and run today. Eventually, and quite possibly soon, it will stop working. If you do get it working and would like to submit a patch to PGPLOT_Install, I'd be willing to update it. But also, PGPLOT is not required to build Ifeffit. In fact, the PGPLOT graphics are not actually used by Demeter. So the simplest thing to do would be to build Ifeffit without PGPLOT. There could be some build issues with Ifeffit on modern Linux systems -- this is no longer actively maintained, though I have built it myself on several new-ish distributions. But if you're willing to go through all the trouble to install PGPLOT and updating bash scripts, you should really be putting your time and energy into using Larch. --Matt
Hi Anselm, Things change over time and there are a lot of slightly different linux distributions out there. If you get to a point where you can build correctly on Arch and would like to contribute an how to or some modifications to build scripts, that would be great. I would be more than happy to see that your contributions get used or linked to as appropriate. B On 08/26/2016 07:33 AM, Loges, Anselm G wrote:
Dear all,
I hope this is the right platform for my question. If not, sorry to bother anyone. The question:
Has anyone successfully installed pgplot and ifeffit on a recent Arch Linux system and could provide a quick how-to guide (also for the Demeter website maybe)? Although I have not yet tested it, my problem may also be relevant for current Debian/Ubuntu systems. Here's the situation:
I am trying to install ifeffit on a current Arch Linux machine and therefore need to install pgplot first. The PGPLOT_install script on the respective GitHub page (as linked by a tutorial on the Demeter page, see links below) does not work because it relies on several outdated paths to dependencies. The one culprit I was able to isolate and fix was the path to the X11 libraries, which the script looks for here:
/usr/X11 or /usr/X11R6
but in current Arch Linux (at least in mine, which is Manjaro to be precise, link below) is here:
/usr/share/X11
This alone does not fix all problems, there are several dependencies missing in the X11 directory and I could not find out what the actual relevant package names are in Arch (Debian/Ubuntu names cannot be found). Also the config files of pgplot seem to have a bunch of similar problems that (at least partially) seem to stem from use of an old fortran-to-c translator (f2c) instead of the gcc fortran frontend and missing dependencies for that.
If I am not mistaken, the latest Ubuntu LTS (16.04.) also has the /usr/share/X11 path, so the script should not work there either.
I'd be happy to provide an updated installation script if I ever get it running but I thought I'd ask if someone has done that already or has solved the related problems so as not to invent the wheel anew.
Links:
https://bruceravel.github.io/demeter/documents/SinglePage/installation.htmlhttps://bruceravel.github.io/demeter/documents/SinglePage/installation.html
https://github.com/newville/ifeffit
https://manjaro.github.io/https://manjaro.github.io/
Best regards,
Anselm
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Hi Bruce,
yes I understand that it is pretty much implossible to keep installation instructions, scripts and so on up to date while trying to support Windows, Mac and the ever-growing Linux ecosystem for such a complex thing as Demeter seems to be (from what I can tell so far). So my hat is firmly off to your work and thanks for the effort to support multiple platforms, which is sadly rare for scientific software. Following a suggestion from Matt I will try to install Larch to use with Demeter and see if I get that running. If Larch is to replace ifeffit anyway, that seems to be more worth the time and effort than trying to get the old pgplot and ifeffit dependencies updated. If successfull I will gladly contribute whatever I can but it will probably take some time as I only start X-Ray spectroscopy work and really have no clue what Im doing. That's called being a postdoc, I guess...
Thanks and cheers,
Anselm
________________________________
From: Ifeffit
Dear all,
I hope this is the right platform for my question. If not, sorry to bother anyone. The question:
Has anyone successfully installed pgplot and ifeffit on a recent Arch Linux system and could provide a quick how-to guide (also for the Demeter website maybe)? Although I have not yet tested it, my problem may also be relevant for current Debian/Ubuntu systems. Here's the situation:
I am trying to install ifeffit on a current Arch Linux machine and therefore need to install pgplot first. The PGPLOT_install script on the respective GitHub page (as linked by a tutorial on the Demeter page, see links below) does not work because it relies on several outdated paths to dependencies. The one culprit I was able to isolate and fix was the path to the X11 libraries, which the script looks for here:
/usr/X11 or /usr/X11R6
but in current Arch Linux (at least in mine, which is Manjaro to be precise, link below) is here:
/usr/share/X11
This alone does not fix all problems, there are several dependencies missing in the X11 directory and I could not find out what the actual relevant package names are in Arch (Debian/Ubuntu names cannot be found). Also the config files of pgplot seem to have a bunch of similar problems that (at least partially) seem to stem from use of an old fortran-to-c translator (f2c) instead of the gcc fortran frontend and missing dependencies for that.
If I am not mistaken, the latest Ubuntu LTS (16.04.) also has the /usr/share/X11 path, so the script should not work there either.
I'd be happy to provide an updated installation script if I ever get it running but I thought I'd ask if someone has done that already or has solved the related problems so as not to invent the wheel anew.
Links:
https://bruceravel.github.io/demeter/documents/SinglePage/installation.htmlhttps://bruceravel.github.io/demeter/documents/SinglePage/installation.html
https://github.com/newville/ifeffit
https://manjaro.github.io/https://manjaro.github.io/
Best regards,
Anselm
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/ _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
participants (3)
-
Bruce Ravel
-
Loges, Anselm G
-
Matt Newville