Hi everyone, I'm currently making my way into Linux, so I decided to change most of my programs to this plattform, which obviously include ifeffit ;) I downloaded the ".tar" file, ran with success the PGPlot script for the graphics library installation (at least the demos run!!), and executed the "configure" script, getting the message "ready for the next step"...however I also get the following info: .... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no .... checking for tgetent... no checking for tgetent in -ltermcap... no .... Anyway then I executed the "run" command, getting the following error: .... cc: ./lib/termcap/libtermcap.a: No such file or directory make[3]: *** [ifeffit] Error 1 make[3]: Leaving directory `/home/user/Programas/ifeffit-1.2.7/src/cmdline' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/user/Programas/ifeffit-1.2.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Programas/ifeffit-1.2.7' make: *** [all-recursive-am] Error 2 If anyone can help me overcoming this impasse I would be very greatful. Also if you need more info please let me know Regards, Marco ______________ Marco A. Alsina Estudiante de Magíster Departamento de Ingeniería Hidráulica y Ambiental Pontificia Universidad Católica de Chile Vicuña Mackenna 4860, Santiago, Chile (56 2) 3544873
Hi Marco, the ifeffit installation script didn't find the termcap library on my machine (SuSE 9.2), although I had it installed using YaST. The solution was to make a symbolic link to /usr/lib/ ("ln -s /usr/lib lib") in the [installation-source]/src/cmdline directory (where "[installation-source]" of course is the place where you have unpacked the tar file). Hope that helps, Peter
I'm currently making my way into Linux, so I decided to change most of my programs to this plattform, which obviously include ifeffit ;) I downloaded the ".tar" file, ran with success the PGPlot script for the graphics library installation (at least the demos run!!), and executed the "configure" script, getting the message "ready for the next step"...however I also get the following info: ..... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no ..... checking for tgetent... no checking for tgetent in -ltermcap... no ..... Anyway then I executed the "run" command, getting the following error: ..... cc: ./lib/termcap/libtermcap.a: No such file or directory make[3]: *** [ifeffit] Error 1 make[3]: Leaving directory `/home/user/Programas/ifeffit-1.2.7/src/cmdline' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/user/Programas/ifeffit-1.2.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/Programas/ifeffit-1.2.7' make: *** [all-recursive-am] Error 2 If anyone can help me overcoming this impasse I would be very greatful. Also if you need more info please let me know Regards, Marco
-- -------------------------------------------------------------- Dr. Peter Pfalzer Universitaet Augsburg Tel: +49-821-598-3215 Lehrstuhl fuer Experimentalphysik II Fax: +49-821-598-3411 Universitaetsstr. 1 D-86135 Augsburg Germany Peter.Pfalzer@physik.uni-augsburg.de http://www.physik.uni-augsburg.de/exp2 --------------------------------------------------------------
Marco, Peter, Marco wrote:
I'm currently making my way into Linux, so I decided to change most of my programs to this plattform, which obviously include ifeffit ;) I downloaded the ".tar" file, ran with success the PGPlot script for the graphics library installation (at least the demos run!!),
Great! Getting PGPLOT to work is progress!
and executed the "configure" script, getting the message "ready for the next step"...however I also get the following info: checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no <snip>
Peter suggested:
the ifeffit installation script didn't find the termcap library on my machine (SuSE 9.2), although I had it installed using YaST. The solution was to make a symbolic link to /usr/lib/ ("ln -s /usr/lib lib") in the [installation-source]/src/cmdline directory (where "[installation-source]" of course is the place where you have unpacked the tar file).
That may be ok for getting ifeffit to run on Marco's machine, but we should probably solve the problem more correctly. Marco, would you be willing to try replacing the configure script with the one at http://cars9.uchicago.edu/ifeffit/src/linux/configure This has a 5 line change lifted from recent version of Readline, which I would assume works better, and looks like is designed to avoid the error messages you got. Just replace the current ifeffit-1.2.7/configure with this one and redo the './configure ....' step. Sorry for the trouble, and thanks in advance for trying this out. --Matt
Marco, The other thing I would add to the linux+curses issue in getting ifeffit to compile is to use your distribution's installation manager to install all the various curses options. That includes ncurses, termlib, and termcap. On my SUSE and kubuntu machines, ncurses seems to be the one that works best with the ifeffit build. But ncurses might not get installed by default. (Annoying, but once you figure it out, you won't have to deal with it again when you update ifeffit!) B -- Bruce Ravel ----------------------------------- bravel@anl.gov -or- ravel@phys.washington.edu Environmental Research Division, Building 203, Room E-165 Argonne National Laboratory phone and voice mail: (1) 630 252 5033 Argonne IL 60439, USA fax: (1) 630 252 9793 My homepage: http://cars9.uchicago.edu/~ravel EXAFS software: http://cars9.uchicago.edu/~ravel/software/exafs/
Bruce Ravel writes: On my SUSE and kubuntu machines, ncurses seems to be the >one that works best with the ifeffit build. But ncurses >might not get installed by default.
Yeap, for me even the termcap library was not installed on my Suse machine (that explains a lot!!). However i did have the ncurses library installed already. I installed the termcap library, then ran the "configure" script that Matt give but I have the same old result... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no so I follow Peter suggestion: "ln -s /usr/lib/" in the /src/cmdline/ directory of the uncompressed ifeffit directory and then...problem solved... Thanks Peter ______________ Marco A. Alsina Estudiante de Magíster Departamento de Ingeniería Hidráulica y Ambiental Pontificia Universidad Católica de Chile Vicuña Mackenna 4860, Santiago, Chile (56 2) 3544873
Hi Marco,
so I follow Peter suggestion: "ln -s /usr/lib/" in the /src/cmdline/ directory of the uncompressed ifeffit directory
and then...problem solved...
From my point of view that does not solve the problem. ;).
I installed the termcap library, then ran the "configure" script that Matt give but I have the same old result... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no
Hmm, perhaps the cached configure status is interfering??? Would you be willing to do the following: ~> cd ifeffit-1.2.7 ~> make distclean ~> ./configure ...... (include whatever else you might have used) ~> grep TERMCAP_LIB src/cmdline/Makefile and then send what the TERMCAP_LIB line is. It should read TERMCAP_LIB = -ltermcap or TERMCAP_LIB = -lcurses or TERMCAP_LIB = -lncurses but NOT TERMCAP_LIB = ./lib/termcap/libtermcap.a These ('-ltermcap' etc) do assume that the termcap, curses, or ncurses library is installed in a 'normal' place like '/usr/lib'. But if the symbolic link worked, so should this. If src/cmdline/Makefile still says TERMCAP_LIB=./lib/termcap/libtermcap.a I'm not completely sure what is going wrong. Could you send the output of '/bin/env': ~> /bin/env > ENV_OUTPUT Thanks, --Matt
Sorry Matt,
I installed the termcap library, then ran the "configure" script that Matt give but I have the same old result... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no so I follow Peter suggestion: "ln -s /usr/lib/" in the /src/cmdline/ directory of the uncompressed ifeffit directory and then...problem solved...
I guessed this was not your preferred solution ... :-( Peter -- -------------------------------------------------------------- Dr. Peter Pfalzer Universitaet Augsburg Tel: +49-821-598-3215 Lehrstuhl fuer Experimentalphysik II Fax: +49-821-598-3411 Universitaetsstr. 1 D-86135 Augsburg Germany Peter.Pfalzer@physik.uni-augsburg.de http://www.physik.uni-augsburg.de/exp2 --------------------------------------------------------------
Hi Peter,
so I follow Peter suggestion: "ln -s /usr/lib/" in the /src/cmdline/ directory of the uncompressed ifeffit directory and then...problem solved...
I guessed this was not your preferred solution ... :-(
Oh, well I'm definitely sympathetic to "just getting the darn thing to work", and would do the same if I had to. But I'd like if it works for everyone without having to resort such things. --Matt
Marco, By the way, which distribution are you using? If you happen to run Debian, I provide a repository with all the packages necessary and all dependencies properly set. Carlo On Wed, 7 Sep 2005, marco antoni alsina corvalan wrote:
Bruce Ravel writes: On my SUSE and kubuntu machines, ncurses seems to be the >one that works best with the ifeffit build. But ncurses >might not get installed by default.
Yeap, for me even the termcap library was not installed on my Suse machine (that explains a lot!!). However i did have the ncurses library installed already. I installed the termcap library, then ran the "configure" script that Matt give but I have the same old result... checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no so I follow Peter suggestion: "ln -s /usr/lib/" in the /src/cmdline/ directory of the uncompressed ifeffit directory and then...problem solved... Thanks Peter
______________ Marco A. Alsina Estudiante de Magíster Departamento de Ingeniería Hidráulica y Ambiental Pontificia Universidad Católica de Chile Vicuña Mackenna 4860, Santiago, Chile (56 2) 3544873 _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- Carlo U. Segre -- Professor of Physics Associate Dean for Special Projects, Graduate College Illinois Institute of Technology Voice: 312.567.3498 Fax: 312.567.3494 Carlo.Segre@iit.edu http://www.iit.edu/~segre
Hello again everyone, As I posted yesterday, the symbolic link suggested by Peter worked for me fine, but I agre with Matt in that a solution included in the installer is needed, and as I mencioned to Matt before, yes the new "configure" script also solves the problem, although I have no idea why for me it didnt the first time I use it (as I reported previously...I was wrong). Thanks Matt. Bruce Ravel writes:
The other thing I would add to the linux+curses issue in >getting ifeffit to compile is to use your distribution's >installation manager to install all the various curses >options.
That would be great!. Although ncurses was installed on my SUSE machine, I didnt knew how to use it to install ifeffit, so I had to go the other way installing termcap and then installing ifeffit. However I bumped into another issue, when I execute the "perl horae_update" I get the following message: * Attempting to fetch a directory listing from http://feff.phys.washington.edu/~ravel/software/exafs/packages/ could not fetch http://feff.phys.washington.edu/~ravel/software/exafs/packages/from server I have the feeling that this is an easy one to solve, however I have tried to run the script without my firewall ending with the same result, so once again a push here may be the final one I to get the package installed. By the way, Thanks to all for your time and disposal to help me through this. Marco
Hi Marco,
On 9/8/05, marco antoni alsina corvalan
Hello again everyone,
As I posted yesterday, the symbolic link suggested by Peter worked for me fine, but I agre with Matt in that a solution included in the installer is needed, and as I mencioned to Matt before, yes the new "configure" script also solves the problem, although I have no idea why for me it didnt the first time I use it (as I reported previously...I was wrong). Thanks Matt..
I think it didn't work the first time because './configure' is "clever" and keeps a cache of values that it uses on subsequent runs. So running 'make distclean' was necessary to make './configure' really search for the termcap, etc libraries. But I'm glad to hear it worked, because that means the new configure will work for the next person who tries. I'll post a new .tar.gz file soom.
* Attempting to fetch a directory listing from http://feff.phys.washington.edu/~ravel/software/exafs/packages/ could not fetch http://feff.phys.washington.edu/~ravel/software/exafs/packages/from server
I have the feeling that this is an easy one to solve, however I have tried to run the script without my firewall ending with the same result, so once again a push here may be the final one I to get the package installed.
This is probably because Bruce has been migrating web pages around and some links to .....washington.edu/~ravel/.... are (temporarily??) broken. --Matt
Matt, Marco
As I posted yesterday, the symbolic link suggested by Peter worked for me fine, but I agre with Matt in that a solution included in the installer is needed, and as I mencioned to Matt before, yes the new "configure" script also solves the problem, although I have no idea why for me it didnt the first time I use it (as I reported previously...I was wrong). Thanks Matt..
But I'm glad to hear it worked, because that means the new configure will work for the next person who tries. I'll post a new .tar.gz file soom.
Sorry to say, but it doesn't work for me. Althogh in the src/cmdline/Makefile, with the new script the TERMCAP_LIB entry is now -ltermcap instead of ./lib/termcap.a, the make process does not succeed: make[3]: Entering directory `/root/install/ifeffit-1.2.7/src/cmdline' cc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -c iff_shell.c cc -g -O2 -L./lib/termcap -o ifeffit iff_shell.o ../lib/libifeffit.a -L/usr/local/pgplot -lpgplot -lpng -lz -L/usr/X11R6/lib -lX11 .../../readline/libreadline.a -ltermcap -L/usr/lib/gcc-lib/i586-suse-linux/3.3.4 -L/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/lib -lfrtbegin -lg2c -lm -lgcc_s /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status Marco: Did you remove the symbolic link to /usr/lib before trying out Matt's new configure script??? Peter -- -------------------------------------------------------------- Dr. Peter Pfalzer Universitaet Augsburg Tel: +49-821-598-3215 Lehrstuhl fuer Experimentalphysik II Fax: +49-821-598-3411 Universitaetsstr. 1 D-86135 Augsburg Germany Peter.Pfalzer@physik.uni-augsburg.de http://www.physik.uni-augsburg.de/exp2 --------------------------------------------------------------
Peter Pfalzer writes:
Marco: Did you remove the symbolic link to /usr/lib >before trying out Matt's new configure script???
Mmm, I thought that the symbolic link was stored in memory during a session, but is actually stored in a file...(every day I'm learning more about this Linux stuff)so it doesnt get removed after restarting the computer. Well, I remove the link, and yes, for me it also appears the "cannot find ltermcap" message; make[3]: Entering directory `/home/user/Programas/ifeffit-1.2.7/src/cmdline' cc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -c iff_shell.c cc -g -O2 -L./lib/termcap -o ifeffit iff_shell.o ../lib/libifeffit.a -L/usr /local/pgplot -lpgplot -lpng -lz -L/usr/X11R6/lib -lX11 .../../readline/libread line.a -ltermcap -L/usr/lib/gcc-lib/i586-suse-linux/3.3.4 -L/usr/lib/gcc-lib/i 586-suse-linux/3.3.4/../../../../i586-suse-linux/lib -lfrtbegin -lg2c -lm -lgc c_s /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status So the script itself appears to fail without the symbolic link. Please, dont think I know much about Linux commands, because like anyone starting with something new, I dont. Therefore anything that for you may appear as obvious is not necessarily obvius for me. Besides that, please forgive my lack of experience on this, I'm willing to give any feedback testing new scripts or anything else needed for better understanding of the problem. ______________ Marco A. Alsina Estudiante de Magíster Departamento de Ingeniería Hidráulica y Ambiental Pontificia Universidad Católica de Chile Vicuña Mackenna 4860, Santiago, Chile (56 2) 3544873
Marco, Peter,
Hmm, sorry this isn't working. Could you do these steps (I've added a
couple since the last time I asked to make sure it's a really clean
install and to look for the terminal libraries) and let me know the
results:
~> rm -rf ifeffit-1.2.7
~> tar xvzf ifeffit-1.2.7.tar.gz
On Thursday 08 September 2005 10:42, marco antoni alsina corvalan wrote:
That would be great!. Although ncurses was installed on my SUSE machine, I didnt knew how to use it to install ifeffit, so I had to go the other way installing termcap and then installing ifeffit.
I thought the Ifeffit configure script knew to try several different terminal management libraries. My (vague) memory was that when I installed ncurses, Ifeffit's configure script settled on that. Your milage may vary.
However I bumped into another issue, when I execute the "perl horae_update" I get the following message:
* Attempting to fetch a directory listing from http://feff.phys.washington.edu/~ravel/software/exafs/packages/ could not fetch http://feff.phys.washington.edu/~ravel/software/exafs/packages/from server
I have the feeling that this is an easy one to solve, however I have tried to run the script without my firewall ending with the same result, so once again a push here may be the final one I to get the package installed.
You seem to be using a very old version of the horae_update script. Try grabbing the latest from http://cars9.uchicago.edu/~ravel/software/downloads.html#unix It's the link that says "Here is a perl script". It's probable that the horae_update script will default to trying to use a SourceForge mirror in North America or Europe, which might be slooooow for you. You might be better off downloading and installing the horae tarball by hand using whichever SourceForge mirror you find fastest (perhaps the one in Curitiba). Good luck, B -- Bruce Ravel ----------------------------------- bravel@anl.gov -or- ravel@phys.washington.edu Environmental Research Division, Building 203, Room E-165 Argonne National Laboratory phone and voice mail: (1) 630 252 5033 Argonne IL 60439, USA fax: (1) 630 252 9793 My homepage: http://feff.phys.washington.edu/~ravel EXAFS software: http://feff.phys.washington.edu/~ravel/software/exafs/
participants (5)
-
Bruce Ravel
-
Carlo Segre
-
marco antoni alsina corvalan
-
Matt Newville
-
Peter Pfalzer