Hello
i am a newbie using an academic software which need a FORTRAN77 compiler to be executed (as mentioned in it’s manual). i have heard that Gfortran is a valid f77 compiler so i installed Gfortran from opensuse 11.4 package but when i used (make -f makefile) command for compiling the programs i faced with the following errors which i think it is because of the lack of library:
and when i ran another file which related to the makefile file another library error appeared:
"
error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
"
i searched a lot but i could not find the FORTRAN77 compiler for linux (opensuse 11.4 of course), i don’t know how to find FORTRAN77 compiler for opensuse 11.4
anyone know how can i find F77 compiler or how can i deal with these errors?
thanks for all replies and helps
>
> Hello
> i am a newbie using an academic software which need a FORTRAN77
> compiler to be executed (as mentioned in it’s manual). i have heard that
> Gfortran is a valid f77 compiler so i installed Gfortran from opensuse
> 11.4 package but when i used (make -f makefile) command for compiling
> the programs i faced with the following errors which i think it is
> because of the lack of library:
>
> "
> x/motif/lib/Xm -L/usr/X11R6/lib -lnsl -lXmu -lXm -lXp -lX11 -lXt -lm
> /usr/lib/gcc/i586-suse-linux/4.5/…/…/…/…/i586-suse-linux/bin/ld:
> cannot find -lXm
> /usr/lib/gcc/i586-suse-linux/4.5/…/…/…/…/i586-suse-linux/bin/ld:
> cannot find -lXm
> "
>
> and when i ran another file which related to the makefile file another
> library error appeared:
>
> "
> error while loading shared libraries: libg2c.so.0: cannot open shared
> object file: No such file or directory
> "
>
> i searched a lot but i could not find the FORTRAN77 compiler for linux
> (opensuse 11.4 of course), i don’t know how to find FORTRAN77 compiler
> for opensuse 11.4
> anyone know how can i find F77 compiler or how can i deal with these
> errors?
> thanks for all replies and helps
>
>
It looks like you need some of the -devel packages installed. On my system,
this library is in openmotif-libs, but there might be others you’ll have to
install. Use YaST to search the file list for those you need.
GFortran should do anything you need as a Fortran processor.
gcc is the fortran 77 compiler for Linux; have a look in YaST>Software manager for the packages which are installed. gcc-fortran is not installed by default; so you may need to install it if you have not done already.
hello
i downloaded the openmofit for opensuse 11.4 but it doesn’t install and the error is: ‘’‘Could not find the rpm-Package in Pool’’’
i used the “zypper in package.rpm” but a new error message is yielded:
"
System management is locked by the application with pid 9491 (/usr/lib/YaST2/bin/y2base).
Close this application before trying again.
"
Zypper allow you to install packages by specifying the library you need. Example:
linux-fcqg:~ # zypper install libg2c.so.0
Loading repository data...
Reading installed packages...
'libg2c.so.0' not found in package names. Trying capabilities.
Resolving package dependencies...
The following NEW package is going to be installed:
libg2c33-32bit
1 new package to install.
Overall download size: 47.0 KiB. After the operation, additional 107.0 KiB will be used.
Continue? [y/n/?]n
linux-fcqg:~ # zypper info libg2c33
Loading repository data...
Reading installed packages...
Information for package libg2c33:
Repository: openSUSE-11.4 OSS
Name: libg2c33
Version: 3.3.3-27.4
Arch: x86_64
Vendor: openSUSE
Installed: No
Status: not installed
Installed Size: 125.0 KiB
Summary: The GNU Fortran Compiler Runtime Library
Description:
The runtime library needed to run programs compiled with the Fortran compiler
of the GNU Compiler Collection (GCC).
hello friends
i downloaded “openmotif-libs-32bit-2.3.2-5.1.x86_64.rpm” and by using “zypper install openmotif-libs-32bit-2.3.2-5.1.x86_64.rpm” the result is:
Abort, retry, ignore? [a/r/i/?] (a):
"
or when i clicked on the “zypper install openmotif-libs-32bit-2.3.2-5.1.x86_64.rpm” there will be the following error:
"
[PK_TMP_DIR|dir:///var/tmp/TmpDir.wV03eO] Repository already exists
"
and for “zypper info openmotif-libs-32bit” messages are:
"
Retrieving repository ‘PK_TMP_DIR’ metadata [done]
Retrieving repository ‘openSUSE-11.4-Non-Oss’ metadata ]
File ‘/repodata/repomd.xml’ not found on medium ‘http://download.opensuse.org/distribution/11.4/repo/non-oss/’
Abort, retry, ignore? [a/r/i/?] (a):
Retrieving repository ‘openSUSE-11.4-Oss’ metadata [error]
Repository ‘openSUSE-11.4-Oss’ is invalid.
Can’t provide /repodata/repomd.xml
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository ‘openSUSE-11.4-Oss’ because of the above error.
Loading repository data…
Reading installed packages…
package ‘openmotif-libs-32bit’ not found.
"
please help and you in advance.
Am 11.12.2011 14:26, schrieb javads:
> [PK_TMP_DIR|dir:///var/tmp/TmpDir.wV03eO] Repository already exists
As a first step remove that temporary repository it is a left over from
something which went wrong earlier
sudo zypper rr PK_TMP_DIR
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Means you are installing a local, stand-alone copy of this rpm using zypper which will then resolve any dependencies using on-line repos if needed.
Zypper allows you to install a package you have already downloaded, or install it from repositories. You are telling zypper to install the file you have downloaded, but you don’t really need to do this - just install it directly from the repo (after fixing the temp dir issue as Martin pointed out).
Just simply:
zypper install openmotif-libs
Please run zypper rr PK_TMP_DIR as Martin suggested, and then give the output of just that, and ignore the RPM you downloaded.
Am 11.12.2011 14:26, schrieb javads:
> Retrieving repository ‘openSUSE-11.4-Non-Oss’ metadata |]
> File ‘/repodata/repomd.xml’ not found on medium
> ‘http://download.opensuse.org/distribution/11.4/repo/non-oss/’
It seems to be that you have problems with your internet connection or
with your mirror server for the packages since zypper is unable to
retrieve metadata information for the standard repositories.
Are you behind a proxy or is there anything special to your internet
connection?
Since you downloaded the openmotif rpm you can also try to instal it
without zypper using the rpm command.
if this tells you that some dependencies are not satisfied report back.
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Please do first what LewsTherinTelemon told you it is by far the easiest
solution. The rpm command I gave is just an emergency brake if
everything else does not work!
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
hello friends
first i do “sudo zypper rr PK_TMP_DIR” and it was removed, then i typed the code “zypper install openmotif-libs” the result was:
"
Retrieving repository ‘openSUSE-11.4-Non-Oss’ metadata |]
File ‘/repodata/repomd.xml’ not found on medium ‘http://download.opensuse.org/distribution/11.4/repo/non-oss/’
Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository ‘openSUSE-11.4-Oss’ metadata [error]
Repository ‘openSUSE-11.4-Oss’ is invalid.
Can’t provide /repodata/repomd.xml
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository ‘openSUSE-11.4-Oss’ because of the above error.
Loading repository data…
Reading installed packages…
‘openmotif-libs’ is already installed.
No update candidate for ‘openmotif-libs-2.3.2-5.1.i586’. The highest available version is already installed.
Resolving package dependencies…
Nothing to do.
"
or when i wanted to install the rpm file which i downloaded the below message was in the details:
"
Could not find the rpm-Package in Pool
"
thank you for your help up to now.
hello friends
first i do “sudo zypper rr PK_TMP_DIR” and it was removed, then i typed the code “zypper install openmotif-libs” the result was:
"
Retrieving repository ‘openSUSE-11.4-Non-Oss’ metadata |]
File ‘/repodata/repomd.xml’ not found on medium ‘http://download.opensuse.org/distribution/11.4/repo/non-oss/’
Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository ‘openSUSE-11.4-Oss’ metadata [error]
Repository ‘openSUSE-11.4-Oss’ is invalid.
Can’t provide /repodata/repomd.xml
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository ‘openSUSE-11.4-Oss’ because of the above error.
Loading repository data…
Reading installed packages…
‘openmotif-libs’ is already installed.
No update candidate for ‘openmotif-libs-2.3.2-5.1.i586’. The highest available version is already installed.
Resolving package dependencies…
Nothing to do.
"
or when i wanted to install directly the rpm file which i downloaded the below message was in the details:
"
Could not find the rpm-Package in Pool
"
thank you for your help up to now.
hello
i connect by university connection and before we connect to the internet we just enter username and password which is specified for each student.
thanks
Am 12.12.2011 11:56, schrieb javads:
> "
> or when i wanted to install directly the rpm file which i downloaded
> the below message was in the details:
> "
> Could not find the rpm-Package in Pool
> "
> thank you for your help up to now.
>
>
What command did you exactly type and in which directory are you when
you type it? Is it really the same directory where your downloaded rpm
file is located?
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Am 12.12.2011 11:56, schrieb javads:
> "
> or when i wanted to install directly the rpm file which i downloaded
> the below message was in the details:
> "
> Could not find the rpm-Package in Pool
> "
> thank you for your help up to now.
>
>
What command did you exactly type and in which directory are you when
you type it? Is it really the same directory where your downloaded rpm
file is located?
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Am 12.12.2011 11:56, schrieb javads:
> "
> or when i wanted to install directly the rpm file which i downloaded
> the below message was in the details:
> "
> Could not find the rpm-Package in Pool
> "
> thank you for your help up to now.
>
>
What command did you exactly type and in which directory are you when
you type it? Is it really the same directory where your downloaded rpm
file is located?
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
On 2011-12-12 11:56, javads wrote:
>
> hello
> i connect by university connection and before we connect to the
> internet we just enter username and password which is specified for each
> student.
So, you need to define proxy for yast config.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
hello friends
fortunately i installed openmotif by the code “sudo rpm -i openmotif-libs-2.3.2-5.1.i586.rpm” as martin said and of course i didn’t attentioned to “i586” for opensuse 11.4.
but the message:
"
x/motif/lib/Xm -L/usr/X11R6/lib -lnsl -lXmu -lXm -lXp -lX11 -lXt -lm
/usr/lib/gcc/i586-suse-linux/4.5/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lXm
/usr/lib/gcc/i586-suse-linux/4.5/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lXm
"
is still appeared. i think that the library path is defined is not correct and i don’t know where is the openmotif installation path? and should i introduce it by changing the program source or cut the openmotif library to the path?
and i go the path “/usr/lib/gcc/i586-suse-linux/4.5/” but i could not find the rest of path “/…/…/…/…/i586-suse-linux/bin/ld”.
please help me again and thank you.