Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Fortran G95. Comment ça marche ?

17 réponses
Avatar
jc
Bonjour,

Quelqu'un saurait-il comment installer et utiliser le Fortran G95 que
l'on trouve à cette adresse (en cliquant sur "Download prebuilt
binaries"):

<http://g95.sourceforge.net/>

Merci
--
JC

10 réponses

1 2
Avatar
jc
Jean-Charles wrote:

Bonjour,

Quelqu'un saurait-il comment installer et utiliser le Fortran G95 que
l'on trouve à cette adresse (en cliquant sur "Download prebuilt
binaries"):

<http://g95.sourceforge.net/>

Merci


Bon, apparemment personne ne connaît le meilleur des langages évolués.
On doit préférer peiner en C++ (le langage le plus c..).

--
JC

Avatar
olivier.marti
Jean-Charles wrote:

Bonjour,

Quelqu'un saurait-il comment installer et utiliser le Fortran G95 que
l'on trouve à cette adresse (en cliquant sur "Download prebuilt
binaries"):

<http://g95.sourceforge.net/>

Merci


Pour ma part j'utilise la version qui est disponible par Fink. Ca marche
tout seul.

J'ai déja installé le tar de sourceforge, mais c'est loin. Je suppose
qui faut lancer la commande configure, puis make. Il n'y a pas de README
?

Olivier

Avatar
pere.noel
Olivier Marti wrote:


J'ai déja installé le tar de sourceforge, mais c'est loin. Je suppose
qui faut lancer la commande configure, puis make. Il n'y a pas de README
?


je viens d'essayer, par curiosité, il y a, dans le tarball, é documents
textuels :
G95Manual.pdf
INSTALL

dans INSTALL (21 lignes se terminant par "Have Fun") les lignes
essentielles sont :

2) For your convenience, you can create another symbolic link from a
directory in your $PATH (e.g. ~/bin) to the executable

ln -s $PWD/g95-install/bin/*g95* ~/bin/g95

You should now be able to run g95 and create executables.



donc ouvrir le terminal; aller dans le répertoire du tarball décompacté,
taper cette ligne et c'est OK, à une seule condition :
- il existe un rép "~/bin" sur votre bécanne, si n'existe pas taper
avant toute chose dans votre terminal :
mkdir ~/bin


assurer vous que ce rép est dans votre PATH par :

echo $PATH


chez ça c'est installé en bien moins de temps que j'ai mis à répondre à
ce post...

résultat :

~/bin%> ln -s $PWD/g95-install/bin/*g95* ~/bin/g95
~/bin%> g95 --version
G95 (GCC 4.0.3 (g95 0.90!) Jul 27 2006)
Copyright (C) 2002-2005 Free Software Foundation, Inc.

G95 comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of G95
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
~/bin%> g95 --help
Usage: g95 [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
(Use '-v --help' to display command line options of sub-processes)
-dumpspecs Display all of the built in spec strings
-dumpversion Display the version of the compiler
-dumpmachine Display the compiler's target processor
-print-search-dirs Display the directories in the compiler's
search path
-print-libgcc-file-name Display the name of the compiler's companion
library
-print-file-name=<lib> Display the full path to library <lib>
-print-prog-name=<prog> Display the full path to compiler component
<prog>
-print-multi-directory Display the root directory for versions of
libgcc
-print-multi-lib Display the mapping between command line
options and
multiple library search directories
-print-multi-os-directory Display the relative path to OS libraries
-Wa,<options> Pass comma-separated <options> on to the
assembler
-Wp,<options> Pass comma-separated <options> on to the
preprocessor
-Wl,<options> Pass comma-separated <options> on to the
linker
-Xassembler <arg> Pass <arg> on to the assembler
-Xpreprocessor <arg> Pass <arg> on to the preprocessor
-Xlinker <arg> Pass <arg> on to the linker
-combine Pass multiple source files to compiler at
once
-save-temps Do not delete intermediate files
-pipe Use pipes rather than intermediate files
-time Time the execution of each subprocess
-specs=<file> Override built-in specs with the contents of
<file>
-std=<standard> Assume that the input sources are for
<standard>
-B <directory> Add <directory> to the compiler's search
paths
-b <machine> Run gcc for target <machine>, if installed
-V <version> Run gcc version number <version>, if
installed
-v Display the programs invoked by the compiler
-### Like -v but options quoted and commands not
executed
-E Preprocess only; do not compile, assemble or
link
-S Compile only; do not assemble or link
-c Compile and assemble, but do not link
-o <file> Place the output into <file>
-x <language> Specify the language of the following input
files
Permissible languages include: c c++
assembler none
'none' means revert to the default behavior
of
guessing the language based on the file's
extension

Options starting with -g, -f, -m, -O, -W, or --param are automatically
passed on to the various sub-processes invoked by g95. In order to
pass
other options on to these processes the -W<letter> options must be
used.

For bug reporting instructions, please see:
http://www.g95.org or mail
~/bin%>

--
une bévue

Avatar
jc
Une bévue wrote:

Olivier Marti wrote:


J'ai déja installé le tar de sourceforge, mais c'est loin. Je suppose
qui faut lancer la commande configure, puis make. Il n'y a pas de README
?


je viens d'essayer, par curiosité, il y a, dans le tarball, é documents
textuels :
G95Manual.pdf
INSTALL

dans INSTALL (21 lignes se terminant par "Have Fun") les lignes
essentielles sont :

2) For your convenience, you can create another symbolic link from a
directory in your $PATH (e.g. ~/bin) to the executable

ln -s $PWD/g95-install/bin/*g95* ~/bin/g95

You should now be able to run g95 and create executables.



donc ouvrir le terminal; aller dans le répertoire du tarball décompacté,
taper cette ligne et c'est OK, à une seule condition :
- il existe un rép "~/bin" sur votre bécanne, si n'existe pas taper
avant toute chose dans votre terminal :
mkdir ~/bin


assurer vous que ce rép est dans votre PATH par :

echo $PATH


chez ça c'est installé en bien moins de temps que j'ai mis à répondre à
ce post...


Merci, mais peut-on se passer du terminal. Je n'ai pas installé les
fichiers le concernant (jai oublié les noms) me disant que je pourrai
toujours les mettre après mais maintenant que j'ai fait des mises à
jour, je ne sais pas si je peux encore. De plus, je n'ai plus touché à
un dos quelconque depuis le prodos de l'apple IIe et je m'en porte très
bien. Pourquoi regresserai-je vers une antiquité ? J'espérais que le G95
soit une application lançable par un double-clic comme d'habitude.

--
JC


Avatar
pere.noel
Jean-Charles wrote:

Pourquoi regresserai-je vers une antiquité ? J'espérais que le G95
soit une application lançable par un double-clic comme d'habitude.


c'est un compilo hein, je ne connais pas g95 (j'en suis resté à Fortran
77...) d'après ce que j'ai vu ça se pratique au Terminal.

je pense que tu ne pourras pas t"en passer...
--
une bévue

Avatar
jc
Une bévue wrote:

Olivier Marti wrote:


J'ai déja installé le tar de sourceforge, mais c'est loin. Je suppose
qui faut lancer la commande configure, puis make. Il n'y a pas de README
?


je viens d'essayer, par curiosité, il y a, dans le tarball, é documents
textuels :
G95Manual.pdf
INSTALL

dans INSTALL (21 lignes se terminant par "Have Fun") les lignes
essentielles sont :

2) For your convenience, you can create another symbolic link from a
directory in your $PATH (e.g. ~/bin) to the executable

ln -s $PWD/g95-install/bin/*g95* ~/bin/g95

You should now be able to run g95 and create executables.



donc ouvrir le terminal; aller dans le répertoire du tarball décompacté,
taper cette ligne et c'est OK, à une seule condition :
- il existe un rép "~/bin" sur votre bécanne, si n'existe pas taper
avant toute chose dans votre terminal :
mkdir ~/bin


assurer vous que ce rép est dans votre PATH par :

echo $PATH


chez ça c'est installé en bien moins de temps que j'ai mis à répondre à
ce post...

résultat :

~/bin%> ln -s $PWD/g95-install/bin/*g95* ~/bin/g95
~/bin%> g95 --version
G95 (GCC 4.0.3 (g95 0.90!) Jul 27 2006)
Copyright (C) 2002-2005 Free Software Foundation, Inc.

G95 comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of G95
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
~/bin%> g95 --help
Usage: g95 [options] file...
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
--target-help Display target specific command line options
(Use '-v --help' to display command line options of sub-processes)
-dumpspecs Display all of the built in spec strings
-dumpversion Display the version of the compiler
-dumpmachine Display the compiler's target processor
-print-search-dirs Display the directories in the compiler's
search path
-print-libgcc-file-name Display the name of the compiler's companion
library
-print-file-name=<lib> Display the full path to library <lib>
-print-prog-name=<prog> Display the full path to compiler component
<prog>
-print-multi-directory Display the root directory for versions of
libgcc
-print-multi-lib Display the mapping between command line
options and
multiple library search directories
-print-multi-os-directory Display the relative path to OS libraries
-Wa,<options> Pass comma-separated <options> on to the
assembler
-Wp,<options> Pass comma-separated <options> on to the
preprocessor
-Wl,<options> Pass comma-separated <options> on to the
linker
-Xassembler <arg> Pass <arg> on to the assembler
-Xpreprocessor <arg> Pass <arg> on to the preprocessor
-Xlinker <arg> Pass <arg> on to the linker
-combine Pass multiple source files to compiler at
once
-save-temps Do not delete intermediate files
-pipe Use pipes rather than intermediate files
-time Time the execution of each subprocess
-specs=<file> Override built-in specs with the contents of
<file>
-std=<standard> Assume that the input sources are for
<standard>
-B <directory> Add <directory> to the compiler's search
paths
-b <machine> Run gcc for target <machine>, if installed
-V <version> Run gcc version number <version>, if
installed
-v Display the programs invoked by the compiler
-### Like -v but options quoted and commands not
executed
-E Preprocess only; do not compile, assemble or
link
-S Compile only; do not assemble or link
-c Compile and assemble, but do not link
-o <file> Place the output into <file>
-x <language> Specify the language of the following input
files
Permissible languages include: c c++
assembler none
'none' means revert to the default behavior
of
guessing the language based on the file's
extension

Options starting with -g, -f, -m, -O, -W, or --param are automatically
passed on to the various sub-processes invoked by g95. In order to
pass
other options on to these processes the -W<letter> options must be
used.

For bug reporting instructions, please see:
http://www.g95.org or mail
~/bin%>


Bon. J'ai fait comme indiqué et il ne se passe rien. Pourtant j'ai bien
installé le sous-système BSD pour utiliser l'antiquité (le terminal).
La seule chose que j'ai remarquée, c'est un alias dans mon dossier bin.
Mais foin de *95*. Nib de nib. Je sais pas où il est l'exécutable. Et je
m'en tire avec un mal de tête carabiné.
A l'aide !

--
JC


Avatar
pere.noel
Jean-Charles wrote:


La seule chose que j'ai remarquée, c'est un alias dans mon dossier bin.
Mais foin de *95*. Nib de nib. Je sais pas où il est l'exécutable. Et je
m'en tire avec un mal de tête carabiné.
A l'aide !


fais voir :

ls -al ~/bin/g95*


tu **DOIS** obtenir comme chez moi :

ls -al ~/bin/g95*
lrwxr-xr-x 1 yvon yvon 59 Jul 28 09:59 /Users/yvon/bin/g95 ->

/Users/yvon/bin/g95-install/bin/powerpc-apple-darwin6.8-g95

/Users/yvon/bin/g95-install:
total 288
drwxr-xr-x 6 yvon yvon 204 Jul 27 18:51 .
drwxr-xr-x 74 yvon yvon 2516 Jul 29 13:33 ..
-rw-r--r-- 1 yvon yvon 139974 Jul 27 18:51 G95Manual.pdf
-rw-r--r-- 1 yvon yvon 521 Jul 27 18:51 INSTALL
drwxr-xr-x 3 yvon yvon 102 Jul 27 18:51 bin
drwxr-xr-x 3 yvon yvon 102 Jul 27 18:51 lib

bien sûr à l'"Yvon" près.

ensuite tu **DOIS** avoir dans ton PATH, le chemin vers ce répertoire
~/bin :

echo $PATH


ce qui donne, chez moi :
/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/bin:/usr/bin:/sbin:
/usr/sbin:/usr/X11R6/bin:/Users/yvon/bin:/Developer/qt/bin:
_________________________^^^^^^^^^^^^^^^^__________________
/usr/local/pgsql/bin:/Users/yvon/bin/groovy/bin:/Developer/Tools:
/usr/local/apr/bin/

donc dans ton PATH tu dois avoir l'équivalent de mon "/Users/yvon/bin"

bien sûr c'est "standard" de mettre son propre bin là, mais tu peux le
mettre où tu veux.


donc, je résume :

tu décompactes l'archive, tu la glisse au Finder dans ton rep ~/bin
tu ouvres le Terminal puis tu fais :

cd ~/bin (ça te place dans le bon répertoire)*
ln -s $PWD/g95-install/bin/*g95* ~/bin/g95 (création du symlink)
g95 --version (vérification que tout est OK)
g95 --help (pour connaître les options et commandes
pas de man pour g95 apparemment)


that's all folks ;-)

* si le rép "" n'existe pas taper au terminal :
mkdir -p ~/bin (ça n'écrase rien si ce rép existe déjà)
--

une bévue

Avatar
jc
Une bévue wrote:

Jean-Charles wrote:


La seule chose que j'ai remarquée, c'est un alias dans mon dossier bin.
Mais foin de *95*. Nib de nib. Je sais pas où il est l'exécutable. Et je
m'en tire avec un mal de tête carabiné.
A l'aide !


fais voir :

ls -al ~/bin/g95*


tu **DOIS** obtenir comme chez moi :

ls -al ~/bin/g95*
lrwxr-xr-x 1 yvon yvon 59 Jul 28 09:59 /Users/yvon/bin/g95 ->

/Users/yvon/bin/g95-install/bin/powerpc-apple-darwin6.8-g95

/Users/yvon/bin/g95-install:
total 288
drwxr-xr-x 6 yvon yvon 204 Jul 27 18:51 .
drwxr-xr-x 74 yvon yvon 2516 Jul 29 13:33 ..
là j'ai 5 et là 170 (est-ce normal ?)

-rw-r--r-- 1 yvon yvon 139974 Jul 27 18:51 G95Manual.pdf
-rw-r--r-- 1 yvon yvon 521 Jul 27 18:51 INSTALL
drwxr-xr-x 3 yvon yvon 102 Jul 27 18:51 bin
drwxr-xr-x 3 yvon yvon 102 Jul 27 18:51 lib

bien sûr à l'"Yvon" près.

ensuite tu **DOIS** avoir dans ton PATH, le chemin vers ce répertoire
~/bin :

echo $PATH


ce qui donne, chez moi :
/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/bin:/usr/bin:/sbin:
/usr/sbin:/usr/X11R6/bin:/Users/yvon/bin:/Developer/qt/bin:
_________________________^^^^^^^^^^^^^^^^__________________
/usr/local/pgsql/bin:/Users/yvon/bin/groovy/bin:/Developer/Tools:
/usr/local/apr/bin/

donc dans ton PATH tu dois avoir l'équivalent de mon "/Users/yvon/bin"

bien sûr c'est "standard" de mettre son propre bin là, mais tu peux le
mettre où tu veux.


donc, je résume :

tu décompactes l'archive, tu la glisse au Finder dans ton rep ~/bin
tu ouvres le Terminal puis tu fais :

cd ~/bin (ça te place dans le bon répertoire)*
ln -s $PWD/g95-install/bin/*g95* ~/bin/g95 (création du symlink)
g95 --version (vérification que tout est OK)



Jusque là ça allait (j'ai vérifié dans le finder que l'alias était créé)
mais là j'ai :
-bash: g95: command not found
g95 --help (pour connaître les options et commandes



pareil :
-bash: g95: command not found
pas de man pour g95 apparemment)

that's all folks ;-)

* si le rép "" n'existe pas taper au terminal :
mkdir -p ~/bin (ça n'écrase rien si ce rép existe déjà)




Avatar
pere.noel
Jean-Charles wrote:

drwxr-xr-x 74 yvon yvon 2516 Jul 29 13:33 ..
là j'ai 5 et là 170 (est-ce normal ?)



oui pas de pb, ça dépend de ce qu'il y a au dessus.

-rw-r--r-- 1 yvon yvon 139974 Jul 27 18:51 G95Manual.pdf



[SNIP]


cd ~/bin (ça te place dans le bon répertoire)*
ln -s $PWD/g95-install/bin/*g95* ~/bin/g95 (création du symlink)
g95 --version (vérification que tout est OK)



Jusque là ça allait (j'ai vérifié dans le finder que l'alias était créé)


attention ce n'est pas un alias mais un symlink (Unix)

mais là j'ai :
-bash: g95: command not found



OK, tu ne parles pas de ton PATH, si tutapes à la console :

echo $PATH


qu'est-ce que tu obtiens ?

--
une bévue



Avatar
jc
Une bévue wrote:

Jean-Charles wrote:

drwxr-xr-x 74 yvon yvon 2516 Jul 29 13:33 ..
là j'ai 5 et là 170 (est-ce normal ?)



oui pas de pb, ça dépend de ce qu'il y a au dessus.

-rw-r--r-- 1 yvon yvon 139974 Jul 27 18:51 G95Manual.pdf



[SNIP]


cd ~/bin (ça te place dans le bon répertoire)*
ln -s $PWD/g95-install/bin/*g95* ~/bin/g95 (création du symlink)
g95 --version (vérification que tout est OK)



Jusque là ça allait (j'ai vérifié dans le finder que l'alias était créé)


attention ce n'est pas un alias mais un symlink (Unix)

mais là j'ai :
-bash: g95: command not found



OK, tu ne parles pas de ton PATH, si tutapes à la console :

echo $PATH


qu'est-ce que tu obtiens ?


/bin:/sbin:/usr/bin:/usr/sbin

--
JC




1 2