Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Fortran w Gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Thu Jan 06, 2005 3:24 pm    Post subject: [SOLVED] Fortran w Gentoo Reply with quote

Witam,
Mam taki maly problemik, potrzebny mi jest fortran (g77), no i go nie ma ;) Jestem poczatkujacy jezeli chodzi o Gentoo. Probowalem 'emerge g77/f77/fortran' - nic z tego. Instalowalem z LiveCD (stage3 i portage zgrane z CD) nie zmienialem USE (napisali cos w manualu, ze przy portage'ach z CD nie nalezy zmieniac). Da sie jakos tego 'g77' zainstalowac ?
[SOLVED]
A wiec problem byl taki, ze Gentoo bylo stawiane ze stage3 - w tym wypadku danie flagi f77 lub fortran nic nie daje :( Trzeba po instalacji dodac flagi i zrobic emerge gcc, lub instalowac ze stage1 dodajac odpowiednie flagi USE. Dodam jeszcze, ze byl problem ze zrobieniem emerge gcc - szerzej omowiony na forum AMD64 (na takim sprzecie to bylo robione). Teraz mozna juz emergowac po instalacji bez problemu, ale najlepiej jechac ze stage1 ;)


Last edited by Piotr_T on Tue Mar 15, 2005 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Thu Jan 06, 2005 4:05 pm    Post subject: Reply with quote

Code:
troll@troll ~ $ grep "fortran\|g77\|f77" /usr/portage/profiles/use.local.desc
dev-lang/R:f77 - Use f77 to compile FORTRAN sources.
dev-util/xmingw-gcc:f77 - Build support for the f77 language
sys-cluster/lam-mpi:f77 - Adds support for f77
sys-devel/gcc:fortran - Build support for the fortran language
wiec po mojemu:
Code:
USE="fortran" emerge gcc
powinno wystarczyc

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Thu Jan 06, 2005 4:24 pm    Post subject: Reply with quote

To ta flaga nie jest domyslnie wlaczana?
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Thu Jan 06, 2005 4:24 pm    Post subject: Reply with quote

A tego co mi sie zdaje fortran jest w gcc, wiec pewnie trzeba go skompilowac z USE="fortran f77" i po zawodach :)
_________________
Linux registered user: #205241
KDE registered user: #1919
http://obeny.obeny.net
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Thu Jan 06, 2005 4:33 pm    Post subject: Reply with quote

rafkup ma racje - jest w use.defaults..... cholera - ciekawe czemu??

Code:
troll@troll ~ $ epm -ql gcc | grep 77
/usr/i686-pc-linux-gnu/gcc-bin/3.4.3/g77
/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man/man1/g77.1.gz
/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info/g77.info.gz
/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/f771

Powinienes miec juz z obsluga fortrana.

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Thu Jan 06, 2005 4:44 pm    Post subject: Reply with quote

no ale wlasnie nie ma, tez ogladalem sobie ten plik z USE defaultowymi, tam jest AFAIR f77, a cos czytalem ze powinno byc 'fortran' sprawdze czy to USE i emerge gcc zadziala, tylko najpierw niech sie kde skonczy kompilowac, juz od poludnia leci...
Dzieki za odpowiedzi :)
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Thu Jan 06, 2005 5:20 pm    Post subject: Reply with quote

wpisz "emerge -pv gcc".
Mi o dziwo wywalilo cos takiego:

[ebuild R ] sys-devel/gcc-3.3.4-r1 +X -bootstrap* -build -debug +fortran -gcj -hardened -multilib +nls -objc +pic -static (-uclibc) 0 kB

Mniewam wiec ze rekompilacja GCC jest zbedna.
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Thu Jan 06, 2005 5:56 pm    Post subject: Reply with quote

W ktorym miejscu napisalem niejasno?!?

Rekompilacja gcc nie powinna byc potrzebna - wystarczy podac pelna sciezke do g77 (ktory nie jest w PATHu) i mozna kompilowac... nawet podalem sciezke do tego pliku (moze sie roznic przy roznicy wersji gcc jedynie)

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Fri Jan 07, 2005 4:05 pm    Post subject: Reply with quote

[
Code:
USE="fortran" emerge gcc
powinno wystarczy
zrobilem tak, wyskoczyl jakis error ze mam jakis blad w gcc 3.4.3 - czy jakas wskazowka bedzie to, ze jest to wersja 64bit Gentoo, na Athlonie64 ?
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Fri Jan 07, 2005 4:06 pm    Post subject: Reply with quote

napisalem Ci

emerge -pv gcc i zobacz czy masz + przed ta flaga jesli tak nie musisz kompilowac GCC. Masz go z obsluga Forthrana.
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Fri Jan 07, 2005 4:08 pm    Post subject: Reply with quote

jest +fortran - jest to tez podswietlne na czerwono, no ale fortrana nie ma :(
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Fri Jan 07, 2005 4:15 pm    Post subject: Reply with quote

msisz mu zaufac, bo jest Forthran.
Inna sparwa jak sie go uzywa.
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Fri Jan 07, 2005 4:17 pm    Post subject: Reply with quote

oswiec mnie prosze bo sam rady nie dam...
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Fri Jan 07, 2005 4:18 pm    Post subject: Reply with quote

nie wiem, nie uzywam tego i niejest mi to potrzebne fakt faktem ze jest forthran.

Moze najzwyczajniej gcc [plik-zrodlowy] ?
albo man gcc, ew. gcc --help :?:.
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Fri Jan 07, 2005 4:22 pm    Post subject: Reply with quote

chyba jednak nie jest zainstalowany, zrobilem tak:
gcc test.f
a system odpowiedzial tak:
gcc: test.f: Fortran compiler not installed on this system

jakies pomysly ?
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Fri Jan 07, 2005 4:38 pm    Post subject: Reply with quote

bash-2.05b# emerge -pv gforth

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild N ] dev-lang/gforth-0.6.2 -emacs 1,880 kB
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Fri Jan 07, 2005 6:12 pm    Post subject: Reply with quote

wskazowka.............. ta sama co wyzej..............
Code:
troll@troll ~ $ epm -ql gcc | grep g77
/usr/i686-pc-linux-gnu/gcc-bin/3.4.3/g77
/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man/man1/g77.1.gz
/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info/g77.info.gz

Code:
troll@troll ~ $ /usr/i686-pc-linux-gnu/gcc-bin/3.4.3/g77             
g77: no input files

Code:
troll@troll ~ $ /usr/i686-pc-linux-gnu/gcc-bin/3.4.3/g77 fortran.h
g77: fortran.h: Nie ma takiego pliku ani katalogu


Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
quat
Guru
Guru


Joined: 18 Sep 2004
Posts: 316

PostPosted: Fri Jan 07, 2005 6:59 pm    Post subject: Reply with quote

ja za to polecam kompilator intelowski fortrana (a nie forthran ;)). Jest znacznie szybszy niz gcc.
Code:
emerge ifc

_________________
a mind is like a parachute, it's better when it's open
Back to top
View user's profile Send private message
Piotr_T
n00b
n00b


Joined: 13 Dec 2004
Posts: 18
Location: Warszawa

PostPosted: Mon Jan 10, 2005 9:50 am    Post subject: Reply with quote

U mnie jest tak:
po wydaniu emerge -pv gforth

These are the packages that I would merge, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "gforth" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/gforth-0.6.2 (masked by: ~amd64 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 "Software Availability" in the Gentoo Handbook.

widac cos chyba za bardzo nie tak z tym fortranem na AMD64 ? Przy probie zrobienia 'emerge ifc' tez mi wyskakuja jakies masked (tym razem ze 3).
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Mon Jan 10, 2005 1:57 pm    Post subject: Reply with quote

Dla x86 tez sporo pakietow jest zamaskowanych a dzialaja.

wpisz ACCEPT_KEYWORDS="~amd64" emerge -pv gforth

i jak bedzie ok to:
ACCEPT_KEYWORDS="~amd64" emerge gforth
Back to top
View user's profile Send private message
Pepek
Guru
Guru


Joined: 25 Apr 2004
Posts: 313
Location: Tarnowskie Góry - Poland - Europe

PostPosted: Mon Jan 10, 2005 11:34 pm    Post subject: Reply with quote

Piotr_T wrote:
U mnie jest tak:
po wydaniu emerge -pv gforth

These are the packages that I would merge, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "gforth" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/gforth-0.6.2 (masked by: ~amd64 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 "Software Availability" in the Gentoo Handbook.

widac cos chyba za bardzo nie tak z tym fortranem na AMD64 ? Przy probie zrobienia 'emerge ifc' tez mi wyskakuja jakies masked (tym razem ze 3).

Mam takie małe pytanko. Czy próbowałeś tego gcc użyć w taki sposób jak nakierował Cię troll ?

Pozdrówki. 8)
_________________
For Polish users :
$ man mas
Nie ma strony manuala dla mas
For Other users :
Sorry for my english, I know it's bad, but I think it's at least understandable ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum