[opensuse] Re-installing from sources
Hi List, I'm experiencing the following problem. I've installed GNU Scientific library (./configure, make, make install). But now when I try to compile a a simple C code which uses function from that library it gives an error of missing file In file included from euler.c:4: /usr/local/include/gsl/gsl_sf_bessel.h:26:26: error: gsl/gsl_mode.h: No such file or directory I've checked, I'm missing the file in that directory, which is included in gsl_sf_bessel.h, but I don't remember having any problems installing it. The same thing goes just fine on friend's machine, which I do not have access to. Should I re-install gsl library? If yes, how to do that, it was second or third time I installed something from sources. If not, what should I do? Any help is greatly appreciated. Best, Sergey -- A----T Sergey Mkrtchyan, C---G Master Student, G-C Department Of Molecular Physics, T---A Faculty Of Physics, Yerevan State University A----T e-mail: mksergey[at]freenet[dot]am G---C web: http://users.freenet.am/~mksergey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sergey, On Monday 15 January 2007 08:03, Sergey Mkrtchyan wrote:
Hi List,
I'm experiencing the following problem.
I've installed GNU Scientific library (./configure, make, make install). But now when I try to compile a a simple C code which uses function from that library it gives an error of missing file
In file included from euler.c:4: /usr/local/include/gsl/gsl_sf_bessel.h:26:26: error: gsl/gsl_mode.h: No such file or directory
I've checked, I'm missing the file in that directory, which is included in gsl_sf_bessel.h, but I don't remember having any problems installing it.
Did you look at the output of "make install" to ensure there were no errors?
The same thing goes just fine on friend's machine, which I do not have access to.
Should I re-install gsl library? If yes, how to do that, it was second or third time I installed something from sources. If not, what should I do?
I don't have anything else specific to offer about this particular problem, but if you have software that needs to be installed in stock system locations such as /usr/include but you have only a source tarball (as in: configure; make; su -c 'make install'), then you should consider using "checkinstall" to produce RPMs for installation. That way you'll know if there were any file conflicts and you can reliably reverse the effects of the installation. Checkinstall, which is available from the stock installation sources, if I recall correctly, does not work with every piece of software, but when it does, it's the way to go.
... Sergey
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
Sergey,
Did you look at the output of "make install" to ensure there were no errors?
Well, there were so much of it, running on screen for quite a long time, I didn't even manage to catch something there. But I remember that at the end it gave an Error, saying that it was impossible to write something on a file, I thought that was not that problematic ;)
I don't have anything else specific to offer about this particular problem, but if you have software that needs to be installed in stock system locations such as /usr/include but you have only a source tarball (as in: configure; make; su -c 'make install'), then you should consider using "checkinstall" to produce RPMs for installation. That way you'll know if there were any file conflicts and you can reliably reverse the effects of the installation.
So, do I understand you correctly, that it is not that easy to reverse system after installing from sources, and it is more preferable to use RPMs (which can be obtained somehow by "checkinstall"), since then I can remove them from YaST?
Checkinstall, which is available from the stock installation sources, if I recall correctly, does not work with every piece of software, but when it does, it's the way to go.
Sorry my being too uninformed of it, but this "checkinstall" should be there in the sources(shell script or something)? I didn't find anything like that there. So now, what is my way out? Can I just remove that directory from system and try to reisntall it? I guess no ;) Thank you very much. Sergey -- A----T Sergey Mkrtchyan, C---G Master Student, G-C Department Of Molecular Physics, T---A Faculty Of Physics, Yerevan State University A----T e-mail: mksergey[at]freenet[dot]am G---C web: http://users.freenet.am/~mksergey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sergey, On Monday 15 January 2007 10:46, Sergey Mkrtchyan wrote:
Randall R Schulz wrote:
Sergey,
Did you look at the output of "make install" to ensure there were no errors?
Well, there were so much of it, running on screen for quite a long time, I didn't even manage to catch something there. But I remember that at the end it gave an Error, saying that it was impossible to write something on a file, I thought that was not that problematic ;)
Always keep the output of configure and make in a log file. I usually do something like this: % configure 2>&1 |tee configure-out % make 2>&1 |tee make-out I never use "make install".
I don't have anything else specific to offer about this particular problem, but if you have software that needs to be installed in stock system locations such as /usr/include but you have only a source tarball (as in: configure; make; su -c 'make install'), then you should consider using "checkinstall" to produce RPMs for installation. That way you'll know if there were any file conflicts and you can reliably reverse the effects of the installation.
So, do I understand you correctly, that it is not that easy to reverse system after installing from sources, and it is more preferable to use RPMs (which can be obtained somehow by "checkinstall"), since then I can remove them from YaST?
No, it's not easy. For practical purposes, it could be impossible, since "make install", when run as root, can overwrite files that originated in RPMs. While those RPMs can always be reinstalled, knowing which ones were compromised can be difficult or tedious, at least. RPMs are _always_ preferable (on an RPM-based system such as SuSE Linux). Installation from an RPM will not (be default) allow you to overwrite a file that originated in an RPM and, as I mentioned, can easily be reversed simply by uninstalling the package.
Checkinstall, which is available from the stock installation sources, if I recall correctly, does not work with every piece of software, but when it does, it's the way to go.
Sorry my being too uninformed of it, but this "checkinstall" should be there in the sources(shell script or something)? I didn't find anything like that there.
You didn't say which version of SuSE Linux you're running, but on version 10.0 "checkinstall" comes from the package named "checkinstall" (imagine that). You should familiarize yourself with the search funcationality in YaST's "Software Management" module.
So now, what is my way out? Can I just remove that directory from system and try to reisntall it? I guess no ;)
I don't know. Run "make install" again and capture the output. Then at least you'll know what it did and what actions might (I emphases _might_) reverse the installation.
Thank you very much. Sergey
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
Sergey,
Always keep the output of configure and make in a log file. I usually do something like this:
% configure 2>&1 |tee configure-out % make 2>&1 |tee make-out
Ah yes, redirecting output to a file, I forgot about that.
No, it's not easy. For practical purposes, it could be impossible, since "make install", when run as root, can overwrite files that originated in RPMs. While those RPMs can always be reinstalled, knowing which ones were compromised can be difficult or tedious, at least.
RPMs are _always_ preferable (on an RPM-based system such as SuSE Linux). Installation from an RPM will not (be default) allow you to overwrite a file that originated in an RPM and, as I mentioned, can easily be reversed simply by uninstalling the package.
Ok, I didn't know about that, I will follow that principle. Thank you for the info!
You didn't say which version of SuSE Linux you're running, but on version 10.0 "checkinstall" comes from the package named "checkinstall" (imagine that). You should familiarize yourself with the search funcationality in YaST's "Software Management" module.
Yes, I'm running 10.0, but YaST brought it's "No Results" for checkinstall. Anyway, I've already downloaded and installed it from Pbone. I did enjoyed it, even after giving me lots of errors and final: **** Installation failed. Aborting package creation. Cleaning up...OK Bye. It gave many things like "Nothing to be done for `install-data-am'" and ended with "make: *** [install-recursive] Error 1" Maybe it's too late here now to do that kind of things, and I'm missing something obvious. I'll try to find that out in the morning. Even not knowing much, I do enjoy Linux! And thank you very much for your help! Best, Sergey -- A----T Sergey Mkrtchyan, C---G Master Student, G-C Department Of Molecular Physics, T---A Faculty Of Physics, Yerevan State University A----T e-mail: mksergey[at]freenet[dot]am G---C web: http://users.freenet.am/~mksergey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Sergey Mkrtchyan
Yes, I'm running 10.0, but YaST brought it's "No Results" for checkinstall. Anyway, I've already downloaded and installed it from Pbone.
I hope a "SUSE or openSUSE" rpm..... Others use different locations for system files. I don't understand not finding it in YaST. Is is 'provided' on the install dvd for 10.0 as well as every version I have installed since 8.0, iirc.
I did enjoyed it, even after giving me lots of errors and final:
**** Installation failed. Aborting package creation. Cleaning up...OK
Note that *all* of the required supplementary packages must exist. And checkinstall must be ran as 'root'. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* Sergey Mkrtchyan
[01-15-07 15:36]: [...] Yes, I'm running 10.0, but YaST brought it's "No Results" for checkinstall. Anyway, I've already downloaded and installed it from Pbone.
I hope a "SUSE or openSUSE" rpm..... Others use different locations for system files.
Yes it was for SuSE 10.x system... I just didn't find that from Packman.
I don't understand not finding it in YaST. Is is 'provided' on the install dvd for 10.0 as well as every version I have installed since 8.0, iirc.
But it was not on my DVD, I've checked it. Even more, there were nothing for gsl package...
Note that *all* of the required supplementary packages must exist. And checkinstall must be ran as 'root'.
I spend all morning figuring that out and, first of all, yes, there were "make uninstall" option available, so I was able to remove it successfully. Then I started all from the beginning, but logged in as root(though I believe it would work in my user too, with su). I kept all the output in the text files and was able to see afterwards(thanks to Randall) that there were no errors , and also didn't run make install, but instead, created an RPM for it using checkinstall. So now it works, perfectly, I could finally get Gaussian distribution for random numbers! Thank you all very much, I guess that is the first time I install something properly ;) (as I think, of course, but at least it works!) Best, Sergey -- A----T Sergey Mkrtchyan, C---G Master Student, G-C Department Of Molecular Physics, T---A Faculty Of Physics, Yerevan State University A----T e-mail: mksergey[at]freenet[dot]am G---C web: http://users.freenet.am/~mksergey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Sergey Mkrtchyan
Patrick Shanahan wrote:
* Sergey Mkrtchyan
[01-15-07 15:36]: [...] Yes, I'm running 10.0, but YaST brought it's "No Results" for checkinstall. Anyway, I've already downloaded and installed it from Pbone.
I hope a "SUSE or openSUSE" rpm..... Others use different locations for system files.
Yes it was for SuSE 10.x system... I just didn't find that from Packman.
I don't understand not finding it in YaST. Is is 'provided' on the install dvd for 10.0 as well as every version I have installed since 8.0, iirc.
But it was not on my DVD, I've checked it. Even more, there were nothing for gsl package...
ftp.gwdg.de/pub/opensuse/distribution/SL-10.0-OSS/inst-source/suse/x86_64/checkinstall-1.6.0beta4-4.x86_64.rpm ftp.gwdg.de/pub/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/checkinstall-1.6.0beta4-4.i586.rpm my DVD SUSE 10.0 media:/hdc/suse/x86_64/checkinstall-1.6.0beta4-4.x86_64 media:/hdc/suse/i586/checkinstall-1.6.0beta4-4.i586 from ARCHIVES.gz ./DVD1/suse/x86_64/checkinstall-1.6.0beta4-4.x86_64.rpm ./DVD1/suse/i586/checkinstall-1.6.0beta4-4.i586.rpm -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Randall R Schulz
I don't know. Run "make install" again and capture the output. Then at least you'll know what it did and what actions might (I emphases _might_) reverse the installation.
also look for 'make uninstall', sometimes provided. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Sergey Mkrtchyan
I've installed GNU Scientific library (./configure, make, make install). But now when I try to compile a a simple C code which uses function from that library it gives an error of missing file
In file included from euler.c:4: /usr/local/include/gsl/gsl_sf_bessel.h:26:26: error: gsl/gsl_mode.h: No such file or directory
I've checked, I'm missing the file in that directory, which is included in gsl_sf_bessel.h, but I don't remember having any problems installing it.
The same thing goes just fine on friend's machine, which I do not have access to.
Should I re-install gsl library? If yes, how to do that, it was second or third time I installed something from sources. If not, what should I do?
using an rpm-based system and installing tar balls. You should seriously consider 'checkinstall'. Have you looked at the tar ball for the installation directories to see where gls_sf_bessel.h is placed? hint, check the config.log. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
using an rpm-based system and installing tar balls. You should seriously consider 'checkinstall'.
So I should avoid installing something from tars? Or if doing so, should get familiar with "checkinstall" first? ;) Is it an rpm builder? Should it be included in sources?
Have you looked at the tar ball for the installation directories to see where gls_sf_bessel.h is placed? hint, check the config.log.
I looked at the config.log, but it seems there is no information about where that file is located, but in their INSTALL it is written where all files are located, and I'm able to find that file there(but not two missing ones) Thank you very much, anyway. I will try to copy that files there from the other machine, maybe that might help. Sergey -- A----T Sergey Mkrtchyan, C---G Master Student, G-C Department Of Molecular Physics, T---A Faculty Of Physics, Yerevan State University A----T e-mail: mksergey[at]freenet[dot]am G---C web: http://users.freenet.am/~mksergey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sergey, On Monday 15 January 2007 10:46, Sergey Mkrtchyan wrote:
Patrick Shanahan wrote:
using an rpm-based system and installing tar balls. You should seriously consider 'checkinstall'.
So I should avoid installing something from tars? Or if doing so, should get familiar with "checkinstall" first? ;) Is it an rpm builder? Should it be included in sources?
Different people have different criteria, but if you want to maintain tight control over your system, "make install" is to be avoided. If you do use it (and as I mentioned, "checkinstall" does not work with all software), try to confine it to /usr/local. Letting it change files in stock system locations such as /lib or /usr /lib can turn out to be very problematic.
Have you looked at the tar ball for the installation directories to see where gls_sf_bessel.h is placed? hint, check the config.log.
I looked at the config.log, but it seems there is no information about where that file is located, but in their INSTALL it is written where all files are located, and I'm able to find that file there(but not two missing ones)
If you run "configure --help" it will tell you the default install locations.
...
Sergey
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-01-15 10:03, Sergey Mkrtchyan wrote:
<snip>
In file included from euler.c:4: /usr/local/include/gsl/gsl_sf_bessel.h:26:26: error: gsl/gsl_mode.h: No such file or directory
I've checked, I'm missing the file in that directory, which is included in gsl_sf_bessel.h, but I don't remember having any problems installing it.
I just installed package gsl from the suse installation repository (9.3, but I assume the package is still included in 10.x versions), and gsl_mode.h is present. Note that the package is installed into /usr, rather than /usr/local. -- The best way to accelerate a computer running Windows is at 9.81 m/s² -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Darryl Gregorash
I just installed package gsl from the suse installation repository (9.3, but I assume the package is still included in 10.x versions), and gsl_mode.h is present. Note that the package is installed into /usr, rather than /usr/local.
also for 10.1: gsl-1.7-14@i586 gsl-1.7-14@x86_64 undoubtedly available for 10.0. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Darryl Gregorash
-
Patrick Shanahan
-
Randall R Schulz
-
Sergey Mkrtchyan