From: Alan W. I. <ir...@be...> - 2001-11-07 18:36:08
|
I am going to put this on the list because others may be interested as well. I don't have access to RH 7.2. My guess is the configure part of your build is not finding one of python or numpy header files. The build then continues fine but excludes plmodule.so as it should. Finally, at the end since plmodule.so is on the list of files to be installed rpm complains that it wasn't built and quits. If my guess is correct there are two solutions to the problem. (1) If you don't care about python, simply comment out the plmodule.so file list line from the spec file. (2) Get to the bottom of why plplot is not finding one or both of the python headers or the numpy headers. It essentially looks for Python.h and arrayobject.h. Are those both somewhere on your system? If not, there might be development versions of the python and numeric packages you still have to install. If they are both there, you probably have to modify plplot configuration a little by setting environment variables to help configure for plplot find the headers. The relevant variables are PYTHON_INC_DIR and PYTHON_NUM_DIR. I haven't tried this but try setting these environment variables respectively to the directories where Python.h and arrayobject.h are located. This should occur just before the configure step in the spec file. With this change to the spec file, I think configure will go ahead and configure python and numpy properly. Give it a try, and let me know whether it works. (If it doesn't work, let me know all the messages that you get from configure. If those are okay for python, then you are probably generating plmodule.so OK, and you may simply have to change the directory in the specfile file list which identifies where plmodule.so is installed.) BTW, if you want to look deeper at what is going on, look at cf/sysloc.in. (look for Python and arrayobject within that file). That is where I got the information about PYTHON_INC_DIR and PYTHON_NUM_DIR. There is a list there of possible directories to search (if PYTHON_INC_DIR is not defined). It is an ongoing issue with us that that directory list has to be updated every time there is a new version of python or numpy. The CVS version of cf/sysloc.in (which will eventually be part of the next stable release of plplot) has a more extended list of directories to search. But I think setting PYTHON_INC_DIR and PYTHON_NUM_DIR is probably the easiest thing for you to do for now. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Wed, 7 Nov 2001, Daniel Tourde wrote: > Hi! > > I am trying to build Plplot 5.0.4-5 on a RedHat 7.2 machines from the > .src.rpm file > I installed yorick 1.5 and Numpy 20.2.1. It is based on python2.1 > (python2) > > The compilations goes apparently fine but I get this message, preventing > the construction of the binary > > Processing files: plplot-5.0.4-5 > error: File not found: > /tmp/software/redhat_install_area/plplot/usr/lib/python1.5/site-packages/plmodule.so > PreReq: /bin/sh /bin/sh /bin/sh > Requires(interp): /bin/sh /bin/sh /bin/sh > Requires(post): /bin/sh > Requires(preun): /bin/sh > Requires(postun): /bin/sh > Requires: python >= 1.5.2-30 python-numpy >= 15.3 > > > RPM build errors: > File not found: > /tmp/software/redhat_install_area/plplot/usr/lib/python1.5/site-packages/plmodule.so > > Having not used python-numpy 15.3 but Numpy 20.2.1, I understand it... > Do you have a patch or a way to go thru this? > I tried to see if plmodule.so has been installed somewhere else but it > is nowhere. > > > Thanks in advance for any answer > > Daniel > -- > *********************************************************************** > Daniel TOURDE E-mail : dan...@fo... > Tel : +46 (0)8-55 50 43 44 > Cellular : +46 (0)70-849 93 40 > FOI, Swedish Defence Research Agency; Aeronautics Division - FFA > Dept. of Wind Energy and Aviation Environmental Research > SE-172 90 Stockholm, Sweden Fax : +46 (0)8-25 34 81 > *********************************************************************** > |