Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: problems with fortran 77 compiler in suse

  1. #1

    Default problems with fortran 77 compiler in suse

    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

  2. #2
    Join Date
    Jun 2009
    Location
    Pennsylvania, USA
    Posts
    233

    Default Re: problems with fortran 77 compiler in suse

    javads wrote:

    >
    > 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.



  3. #3
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,450

    Default Re: problems with fortran 77 compiler in suse

    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.

  4. #4

    Default Re: problems with fortran 77 compiler in suse

    hello
    i have installed gcc-fortran and the list below:
    gcc
    gcc-c++
    gcc-fortran
    gcc-info
    gcc45
    gcc45-c++
    gcc45-fortran
    gcc45-info

  5. #5

    Default Re: problems with fortran 77 compiler in suse

    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.
    "

  6. #6

    Default Re: problems with fortran 77 compiler in suse

    and of course another error message:
    "
    [PK_TMP_DIR|dir:///var/tmp/TmpDir.5QAe9G] Repository already exists.
    "
    thanks for all replies and helps

  7. #7

    Default Re: problems with fortran 77 compiler in suse

    Zypper allow you to install packages by specifying the library you need. Example:

    Code:
    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).
    Looks like that is what you need.

    Pete

  8. #8

    Default Re: problems with fortran 77 compiler in suse

    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:

    "
    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):
    "
    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.

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: problems with fortran 77 compiler in suse

    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
    Code:
    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

  10. #10

    Default Re: problems with fortran 77 compiler in suse

    Did you install libg2c33 ? That will solve the missing libg2c.so.0

    As for open-motif, running:

    Code:
    zypper install openmotif-libs-32bit-2.3.2-5.1.x86_64.rpm
    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:

    Code:
    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.

    Pete

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •