LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gfortran in SLED 11 ?? (https://www.linuxquestions.org/questions/linux-newbie-8/gfortran-in-sled-11-a-768079/)

Kilam orez 11-09-2009 11:37 PM

gfortran in SLED 11 ??
 
hi dear all

when i search for gfortran through "YAST2", i couldn't find the gfortran in gcc in SLED 11 which is installed on X84_64 intel machine.

i found a file "gfortran-4.3.info.gz" in" /usr/share/info/" in which it is written that :

"1.2 GNU Fortran and GCC"

"GNU Fortran is a part of GCC, the "GNU Compiler Collection". GCC
consists of a collection of front ends for various languages, which
translate the source code into a language-independent form called
"GENERIC". This is then processed by a common middle end which
provides optimization, and then passed to one of a collection of back
ends which generate code for different computer architectures and
operating systems."

can anybody tell me why gfortran is not there?


thanks

jheengut 11-10-2009 12:53 AM

what is the package containing gfortran-4.3.info.gz?

Kilam orez 11-10-2009 05:39 AM

Quote:

Originally Posted by jheengut (Post 3751213)
what is the package containing gfortran-4.3.info.gz?

actually gcc is already provided with SLED DVD, but i think it doesn't contain gfortran.

knudfl 11-10-2009 02:21 PM

The package name is ' gcc-fortran '.
Which you will find in Yast2 with the keyword " fortran "

LQ ...
http://www.linuxquestions.org/questi...5/?highlight#4
→ → post # 4.

Kilam orez 11-21-2009 12:41 AM

Quote:

Originally Posted by knudfl (Post 3751968)
The package name is ' gcc-fortran '.
Which you will find in Yast2 with the keyword " fortran "

LQ ...
http://www.linuxquestions.org/questi...5/?highlight#4
→ → post # 4.

hi everybody,

i checked the gcc-fortran as:->


# zypper se gcc

Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+---------------------------+-----------------------------------------------+-----------
| cross-spu-gcc-debuginfo | Debug information for package cross-spu-gcc | package
| cross-spu-gcc-debugsource | Debug sources for package cross-spu-gcc | package
i | gcc | The system GNU C Compiler | package
| gcc | The system GNU C Compiler | srcpackage
| gcc-32bit | The system GNU C Compiler | package
i | gcc-c++ | The system GNU C++ Compiler | package
| gcc-gij | The system GNU Java bytecode interpreter | package
| gcc-gij-32bit | The system GNU Java bytecode interpreter | package
| gcc-info | The system GNU Compiler documentation | package
| gcc-java | The system GNU Java Compiler | package
| gcc33 | The GNU C Compiler Version 3.3(evaluation) | srcpackage
| gcc33-debuginfo | Debug information for package gcc33 | package
| gcc33-debugsource | Debug sources for package gcc33 | package
i | gcc43 | The GNU C Compiler and Support Files | package
| gcc43 | The GNU C Compiler and Support Files | srcpackage
| gcc43-32bit | The GNU C Compiler 32bit support | package
i | gcc43-c++ | The GNU C++ Compiler | package
| gcc43-debuginfo | Debug information for package gcc43 | package
| gcc43-debugsource | Debug sources for package gcc43 | package
| gcc43-gij | Java Bytecode Interpreter for gcc | package
| gcc43-gij-32bit | Java Bytecode Interpreter for gcc | package
| gcc43-info | Documentation for the GNU compiler collection | package
| gcc43-java | The GNU Java Compiler | package
i | libgcc43 | C compiler runtime library | package
i | libgcc43-32bit | C compiler runtime library | package

# zypper se gcc-fortran
Loading repository data...
Reading installed packages...
No packages found.


# zypper se fortran

Loading repository data...
Reading installed packages...
No packages found.

so if i download it from google then how to resolve the dependencies?


With Due Regards

Kilam

makyo 11-21-2009 03:49 PM

Hi.

The zypper utility understands wild-card-like meta-characters:
Code:

#!/usr/bin/env bash

# @(#) s1      Demonstrate search for Fortran versions, SuSE.

echo
set +o nounset
LC_ALL=C ; LANG=C ; export LC_ALL LANG
echo "Environment: LC_ALL = $LC_ALL, LANG = $LANG"
echo "(Versions displayed with local utility \"version\")"
version >/dev/null 2>&1 && version "=o" $(_eat $0 $1) zypper gfortran
set -o nounset

echo
echo " Results:"
zypper search '*fortran*'

exit 0

producing:
Code:

% ./s1

Environment: LC_ALL = C, LANG = C
(Versions displayed with local utility "version")
OS, ker|rel, machine: Linux, 2.6.27.37-0.1-pae, i686
Distribution        : Welcome to openSUSE 11.1 - Kernel
GNU bash 3.2.39
zypper 1.0.13
gfortran GNU Fortran (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]

 Results:
Loading repository data...
Reading installed packages...

S | Name          | Summary                                      | Type 
--+---------------+-----------------------------------------------+--------
i | gcc-fortran  | The system GNU Fortran Compiler              | package
  | gcc33-fortran | The GNU Fortran 77 Compiler and Support Files | package
  | gcc41-fortran | The GNU Fortran Compiler and Support Files    | package
i | gcc43-fortran | The GNU Fortran Compiler and Support Files    | package
  | libgfortran41 | The GNU Fortran Compiler Runtime Library      | package
i | libgfortran43 | The GNU Fortran Compiler Runtime Library      | package

Best wishes ... cheers, makyo

knudfl 11-22-2009 02:35 PM

1 Attachment(s)
Sorry, I forgot this : Just like Suse 10 oss and 10 SLED,
there can be much difference in the package selection between
Suse 11 SLED and 11 oss.

I did not subscribe at install, thus the oss ( open suse ...)
repo was set up automatically.

Suggest : Add the oss repo temporaraly to /etc/zypp/repos.d/
or download the package
http://download.opensuse.org/distrib...7-6.1.i586.rpm
> gcc43-fortran-4.3.1_20080507-6.1.i586.rpm

sonu kumar 11-23-2009 04:30 AM

Suggest : Add the oss repo temporaraly to /etc/zypp/repos.d/


Dear knudfl,


i want to add oss repo so that i can use it further.

please tell me how to add repo to above said location.



regards,

sonu

knudfl 11-23-2009 01:57 PM

2 Attachment(s)
Download the attached file openSUSE-11.0-Oss.repo.txt
to /home/'username'/
Rename it to openSUSE-11.0-Oss.repo

.. And ..

1) cd /etc/zypp/repos.d/
2) su
3) cp /home/'username'/openSUSE-11.0-Oss.repo .
.. where the dot ( . ) means the current directory.
.....
__________________
Don't forget to click the Thumbs Up on any post that helped you
so the submitter will be "officially" thanked.

Kilam orez 11-24-2009 02:59 AM

Quote:

Originally Posted by knudfl (Post 3767120)
Download the attached file openSUSE-11.0-Oss.repo.txt
to /home/'username'/
Rename it to openSUSE-11.0-Oss.repo

.. And ..

1) cd /etc/zypp/repos.d/
2) su
3) cp /home/'username'/openSUSE-11.0-Oss.repo .
.. where the dot ( . ) means the current directory.
.....
__________________
Don't forget to click the Thumbs Up on any post that helped you
so the submitter will be "officially" thanked.

thanku knudfl


i did as what you said.

its working.

regards
kilam


All times are GMT -5. The time now is 12:53 AM.