[opensuse] where is libg2c.so in SuSE 10.3 ?
I have just downloaded a package for spectral analysis . I followed the instructions. But when I launch it I get: mauede@linux-ubuo:~/Breathing-Curves-Dir> ./Spectra & [2] 19675 [1] Exit 127 ./Spectra ./Spectra: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory The release notes associated to such a package report such an error as known on Linux platforms (see http://www.atmos.ucla.edu/tcd/ssa/faq.html#8) and suggest: Users of Linux static version may get error messages about s library: Spectra_st_linux.exe: error while loading shared libraries: libg2c.so.0: cannot load shared object file: No such file or directory? If it is so, make sure you have gcc compiler installed But I do have gcc installed: mauede@linux-ubuo:~/Breathing-Curves-Dir> gcc gcc: no input files Where is the required library on SuSE 10.3 ? I searched for it with Yast but could not find it. Thank you in advance for your help. Merry Christmass, Maura Edelweiss M. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 23 December 2007 20:22:12 Maura Edelweiss Monville wrote:
I have just downloaded a package for spectral analysis . I followed the instructions. But when I launch it I get:
mauede@linux-ubuo:~/Breathing-Curves-Dir> ./Spectra & [2] 19675 [1] Exit 127 ./Spectra ./Spectra: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory [...]
I googled libg2c and came up with the following exchange on the debian-mentors list: ========================================================== Mikael Hedin <mikael.hedin@gmx.net> writes:
I have a autoconf test that fails if i don't give -lg2c as extra link flags. Without g2c there are undefined references to e_wsfe, z_abs, c_sqrt, etc. Is not g2c an internal gcc thing?
That sounds like things generated by a FORTRAN compiler like g77. In the same way that C functions like printf(), abs(), and sqrt() aren't implemented directly in the compiler (you need to link with -lc [always added implicitly by *cc] and -lm), you need an external library to get the FORTRAN compatibility functions. Conventionally these are provided in libraries libF77.a and libI77.a, but g77 seems to provide a libg2c.a buried under /usr/lib/gcc-lib. If you don't have libg2c.a, it seems to be included in the g77 (or g77-2.95) package. -- David Maze dmaze@debian.org http://people.debian.org/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell ========================================================== So it seems that you need to have the gcc g77 fortran compiler modules installed for your application. Suse does not have the g77 package - the fortran compiler is gcc42-fortran (compiler and support files) which is not installed by default. Try installing it and have another go. If that doesn't work, try libgfortran42. Hope this helps. Regards, Rodney. -- =================================================== Rodney Baker VK5ZTV rodney.baker@optusnet.com.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 23 December 2007 23:15:41 Rodney Baker wrote:
On Sunday 23 December 2007 20:22:12 Maura Edelweiss Monville wrote:
I have just downloaded a package for spectral analysis . I followed the instructions. But when I launch it I get:
mauede@linux-ubuo:~/Breathing-Curves-Dir> ./Spectra & [2] 19675 [1] Exit 127 ./Spectra ./Spectra: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory [...]
I googled libg2c and came up with the following exchange on the debian-mentors list:
==========================================================
Mikael Hedin <mikael.hedin@gmx.net> writes:
I have a autoconf test that fails if i don't give -lg2c as extra link flags. Without g2c there are undefined references to e_wsfe, z_abs, c_sqrt, etc. Is not g2c an internal gcc thing?
That sounds like things generated by a FORTRAN compiler like g77. In the same way that C functions like printf(), abs(), and sqrt() aren't implemented directly in the compiler (you need to link with -lc [always added implicitly by *cc] and -lm), you need an external library to get the FORTRAN compatibility functions. Conventionally these are provided in libraries libF77.a and libI77.a, but g77 seems to provide a libg2c.a buried under /usr/lib/gcc-lib.
If you don't have libg2c.a, it seems to be included in the g77 (or g77-2.95) package.
-- David Maze dmaze@debian.org http://people.debian.org/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell ==========================================================
So it seems that you need to have the gcc g77 fortran compiler modules installed for your application. Suse does not have the g77 package - the fortran compiler is gcc42-fortran (compiler and support files) which is not installed by default.
Try installing it and have another go.
If that doesn't work, try libgfortran42.
Oops - should have read further. libg2c was part of gcc-g77 which was in gcc version 3. In gcc v4 (which is what is installed by openSuse) g77 was replaced by gfortran which does *not* include libg2c. libgfortran replaced libg2c and in installed as a dependency when you install gcc42-fortran. That being said, if your application has a dependency on libg2c, you will need to install a copy of gcc v3 and gcc-g77 (with its associated libraries). I'm pretty sure that v3 and v4 can coexist as long as they are in different paths, but I'll defer to others on the list with more experience to advise on that. Regards, -- =================================================== Rodney Baker VK5ZTV rodney.baker@optusnet.com.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 23 December 2007, Maura Edelweiss Monville wrote:
But I do have gcc installed: mauede@linux-ubuo:~/Breathing-Curves-Dir> gcc gcc: no input files
Where is the required library on SuSE 10.3 ? I searched for it with Yast but could not find it.
I was able to run the program you mention using a libg2c.so.0.0.0 binary from an older gcc version. You may find it in this address: http://rapidshare.com/files/78552337/libg2c.so.0.0.0.html . After you download it, save it in /usr/local/lib, for instance, run 'ldconfig' as root and start spectra_st. I cannot guarantee that it will work 100% perfectly; I have tested it on my system and was able to launch spectra_st. The proper solution seems to be to inform the developers of the program that it no longer runs in current linux distributions. I would also like to suggest that you check the R statistical package (package R-base in the http://repos.opensuse.org/science/openSUSE_10.3/ repository), which includes a number of functions about time series, probably not as specialized as SSA-MTM though. Merry Christmas. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I am developing my project with R. Therefore the first thing I did is to look in the R repository for a package implementing SSA. Such a package does exist (clim-pact) But for some reason it won't install on Linux platforms. At the bottom I am copying he message from another R user who tried to install clim-pact on Linux/ubuntu. AMong the other issues I do not know what "netcdf" is (he mentions this code as necessary for clim-pact). I will contact the authour of the package that should run outside R ... if the library problem has a solution. I will follow your suggestion. Thank you very much. Merry Christmass. Maura *********************************************************** System: Linux kernel 2.6.22-14 Ubuntu 7.10 gutsy ESS 5.3.0 on Emacs 22.1.1 R version 2.6.0 --------------- Maura I've also been trying to install clim.pact. You need to get netcdf working on your linux system. Then install the R package ncdf. However, I've found that install.packages("clim.pact") still fails on ubuntu because the package cannot find a header file (netcdf.h) which is not where the package expects it to be. I was not able to resolve this even using R CMD INSTALL with a configuration option set to locate this file. I think that I will contact the developer about this (see the following note). ----------------------- Hello Rasmus Are you aware of this problem with installing clim.pact on R? Can you offer us any advice? I would really like to use your package. Here is my initial query to the R-help: System: Linux kernel 2.6.22-14 Ubuntu 7.10 gutsy ESS 5.3.0 on Emacs 22.1.1 R version 2.6.0 Colleagues I would like to use the user contributed package "clim.pact". I'm having trouble with the dependency of "clim.pact" on "ncdf". Like others I am finding that R CMD INSTALL does not find the netcdf.h file, even when the directory (/usr/local/include) holding the netcdf.h file is passed to R CMD. Unless I misunderstood one of the postings there was an error related to this problem on the OSX build of the ncdf package <http://osdir.com/ml/lang.r.mac/2006-09/msg00012.html>. I've install the obvious netcdf packages and dependencies on ubuntu and the ncdump works fine. Has anyone solved this problem on linux? Sam -- Sam McClatchie (Fisheries oceanographer, SWFSC, NOAA) --- auxsvr@gmail.com wrote:
On Sunday 23 December 2007, Maura Edelweiss Monville wrote:
But I do have gcc installed: mauede@linux-ubuo:~/Breathing-Curves-Dir> gcc gcc: no input files
Where is the required library on SuSE 10.3 ? I searched for it with Yast but could not find it.
I was able to run the program you mention using a libg2c.so.0.0.0 binary from an older gcc version. You may find it in this address:
http://rapidshare.com/files/78552337/libg2c.so.0.0.0.html
. After you download it, save it in /usr/local/lib, for instance, run 'ldconfig' as root and start spectra_st.
I cannot guarantee that it will work 100% perfectly; I have tested it on my system and was able to launch spectra_st. The proper solution seems to be to inform the developers of the program that it no longer runs in current linux distributions. I would also like to suggest that you check the R statistical package (package R-base in the http://repos.opensuse.org/science/openSUSE_10.3/ repository), which includes a number of functions about time series, probably not as specialized as SSA-MTM though.
Merry Christmas. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Maura Edelweiss M. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 23 December 2007, Maura Edelweiss Monville wrote:
I am developing my project with R. Therefore the first thing I did is to look in the R repository for a package implementing SSA. Such a package does exist (clim-pact) But for some reason it won't install on Linux platforms. At the bottom I am copying he message from another R user who tried to install clim-pact on Linux/ubuntu. AMong the other issues I do not know what "netcdf" is (he mentions this code as necessary for clim-pact).
I installed netcdf in R for a project six months ago, I also tried the package you mention 5 minutes ago (I found it named 'cim.pact'); it compiles and loads fine on my system. You'll need the netcdf and netcdf-devel RPM packages installed from the software manager(YAST), then install the clim.pact R package (install.packages("clim.pact") from the R prompt as root, R should handle the dependencies automatically). If you meet any difficulties, feel free to ask for further instructions.
I will contact the authour of the package that should run outside R ... if the library problem has a solution.
Depending on the size of your dataset, the number of calculations your project requires and the libraries you configured R to operate with (ATLAS, BLAS, LAPACK or none of them), the SSA-MTM program might prove faster than R. Even then I would prefer R, as it's extremely flexible. You may, of course, try the file I posted previously, as a quick and dirty solution. Merry Christmas. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I could not find netcdf in SUSE 10.3 intsllation DVD. But a Linux repository contains a lot of netcdf files. http://rpmfind.net/linux/RPM/Applications_Engineering.html I do not know which ones are appropriate for my SuSE 10.3 64-bit architecture. Any suggestion is welcome. Merry Christmass, Maura --- auxsvr@gmail.com wrote:
On Sunday 23 December 2007, Maura Edelweiss Monville wrote:
I am developing my project with R. Therefore the first thing I did is to look in the R repository for a package implementing SSA. Such a package does exist (clim-pact) But for some reason it won't install on Linux platforms. At the bottom I am copying he message from another R user who tried to install clim-pact on Linux/ubuntu. AMong the other issues I do not know what "netcdf" is (he mentions this code as necessary for clim-pact).
I installed netcdf in R for a project six months ago, I also tried the package you mention 5 minutes ago (I found it named 'cim.pact'); it compiles and loads fine on my system. You'll need the netcdf and netcdf-devel RPM packages installed from the software manager(YAST), then install the clim.pact R package (install.packages("clim.pact") from the R prompt as root, R should handle the dependencies automatically). If you meet any difficulties, feel free to ask for further instructions.
I will contact the authour of the package that should run outside R ... if the library problem has a solution.
Depending on the size of your dataset, the number of calculations your project requires and the libraries you configured R to operate with (ATLAS, BLAS, LAPACK or none of them), the SSA-MTM program might prove faster than R. Even then I would prefer R, as it's extremely flexible. You may, of course, try the file I posted previously, as a quick and dirty solution.
Merry Christmas. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Maura Edelweiss M. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 24 December 2007, Maura Edelweiss Monville wrote:
I could not find netcdf in SUSE 10.3 intsllation DVD. But a Linux repository contains a lot of netcdf files.
The RPM packages are libnetcdf-4, libnetcdf-devel and netcdf, all of which may be found in the main opensuse 10.3 repository (try this: http://software.opensuse.org/search?p=1&q=netcdf&baseproject=openSUSE%3A10.3 for one-click installation).
I do not know which ones are appropriate for my SuSE 10.3 64-bit architecture.
One-click installation should handle this for you, otherwise select the x86_64 packages. Merry Christmas. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
auxsvr@gmail.com
-
Maura Edelweiss Monville
-
Rodney Baker