I am having problems installing fortran g95 compiler. I followed the exact instructions listed on the website The G95 Project
(click on manual tab for further details), but I am still getting this error when I try using the driver:
shamo@linux-wrws:~> g95
bash: g95: command not found
The program installed properly, and I was able to verify the installation in /usr/share/g95-install. All the libraries were installed, and I was able to run the actual “executable” when I cd’ed to its directory)
Next I created a symbolic link to the driver so that I could run from anywhere using g95 command:
Hi, I’m a new user of Linux.
I’ve tried to install g95 fortran in computer, but I had the same problem which is described in the first post of this thread.
I read the last post in order to solve the problem, but I have still the same problem.
I’ve modified the subfolders and files names which have i686-pc-linux-gnu-g95 to i686-unknown-linux-gnu-g95 and I get the same result: g95: command not found
Could someone tell me what am I doing wrong?
>
> Hi, I’m a new user of Linux.
> I’ve tried to install g95 fortran in computer, but I had the same
> problem which is described in the first post of this thread.
> I read the last post in order to solve the problem, but I have still
> the same problem.
> I’ve modified the subfolders and files names which have
> i686-pc-linux-gnu-g95 to i686-unknown-linux-gnu-g95 and I get the same
> result: g95: command not found
> Could someone tell me what am I doing wrong?
>
> Thanks
>
>
Is there really a reason for you to use esp. G95. The simplest solution is
to use gfortran which is part of the gnu compiler collection and is
available in the standard repos. It is fully F95 and partially F2003/2008
compatible?
–
openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram
I’ve installed gfortran,following your advice.
I didn’t have an exact reason to use g95, the point was that I didn’t know that gfortran is part of GNU compiler.
I’ve compiled some of my scripts with gfortran and I didn’t have any problem.
Hi… Is there any way to implement CRT functions in G95? I need to clear the screen and position the text cursor. I know these are often available in C/C++ and I think G95 has a C/C++ layer in there, but I don’t know any details.
Am 12.11.2011 21:56, schrieb bpl1960:
>
> Hi… Is there any way to implement CRT functions in G95? I need to
> clear the screen and position the text cursor. I know these are often
> available in C/C++ and I think G95 has a C/C++ layer in there, but I
> don’t know any details.
>
>
Welcome, I see this is your first post.
Instead of answering to this old thread I would recommend you open a new
one with some background information.
Is there any special reason why you use G95 which is more or less an
abandoned project superseded by gfortran which comes as default fortran
compiler with openSUSE (though it is not installed by default, there are
not that many fortran programmers around)?
gfortran has of course the fortran 2003 iso_c bindings which makes it
easy to interface with any c library.
For g95 I cannot answer the question, I have not used it for years.
–
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.11.2011 22:28, schrieb Carlos E. R.:
> And in the programming repo, better than here.
>
Thanks, I forgot to add that.
–
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
Just to answer the original question with a code snippet which should
work on any compiler which implements at least F90 and working with an
ansi escape codes compliant terminal this should do it
program clear_screen
print *, achar(27)//'2J'
print *, 'Sreen cleared'
end program clear_screen
For advanced curses related things like building a text based interface
there is a module which claims to work with g95 and gfortran http://genepi.qimr.edu.au/staff/davidD/
(look for the interface for curses).
Hope that helps and next time please look at an appropriate place for
your question.
–
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