|
From: jaafar on 25 Jun 2008 16:57 Hi All I am wondering if any one can help me on how to instrall g95 for Linux! These are the steps I followed: 1. I created folder: WRF then subfolder:g95 2. I downloaded the i686-pc-linux-gnu-g95 from http://www.ftp.g95.org/ and pasted in wrf\g95 3. I used the following commends: [Mahmoudi(a)mahmoudi-ecd ~]$ cd wrf [Mahmoudi(a)mahmoudi-ecd wrf]$ cd g95 [Mahmoudi(a)mahmoudi-ecd g95]$ tar xvfz g95-x86-linux.tgz g95-install/ g95-install/INSTALL g95-install/G95Manual.pdf g95-install/bin/ g95-install/bin/i686-suse-linux-gnu-g95 g95-install/lib/ g95-install/lib/gcc-lib/ g95-install/lib/gcc-lib/i686-suse-linux-gnu/ g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/ g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/libgcc_eh.a g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/libf95.a g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/libgcc_s.so.1 g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/f951 g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/crtbeginT.o g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/crtbeginS.o g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/libgcc.a g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/crtendS.o g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/crtend.o g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/libgcc_s.so g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/crtbegin.o g95-install/lib/gcc-lib/i686-suse-linux-gnu/4.0.3/cc1 [Mahmoudi(a)mahmoudi-ecd g95]$ ln -s /wrf/g95/g95-install/bin/i686-pc- linux-gnu-g95 /bin/g95 ln: `/bin/g95': File exists [Mahmoudi(a)mahmoudi-ecd g95]$ g95 bash: g95: command not found [Mahmoudi(a)mahmoudi-ecd g95]$ However, as you can see when I type g95, it says command not found. I am wondering why? Is my installation okay! For you information I am using Red Hat Linux with 64bits I do need your help in installation g95 in my system. I look forward to hearing from you Regards Jaafar
From: Giorgio Pastore on 25 Jun 2008 17:32 jaafar wrote: .... > 3. I used the following commends: > [Mahmoudi(a)mahmoudi-ecd ~]$ cd wrf > [Mahmoudi(a)mahmoudi-ecd wrf]$ cd g95 .... > [Mahmoudi(a)mahmoudi-ecd g95]$ ln -s /wrf/g95/g95-install/bin/i686-pc- > linux-gnu-g95 > /bin/g95 ln: `/bin/g95': File exists in this last step something is missing! you should create a symbolic link somwhere else. A simple (and usual) possibility would be to create a link named g95 in some directory already present in your PATH variable. Usually, it might be /usr/local/bin. Try: ln -s /wrf/g95/g95-install/bin/i686-pc-linux-gnu-g95 /usr/local/bin If you are using bash as shell, that should be enough. Try to use g95 to compile a file of yours. Giorgio
From: jaafar on 26 Jun 2008 02:15 On Jun 26, 12:32 am, Giorgio Pastore <past...(a)units.it> wrote: > jaafar wrote: > > ... > > > 3. I used the following commends: > > [Mahmoudi(a)mahmoudi-ecd ~]$ cd wrf > > [Mahmoudi(a)mahmoudi-ecd wrf]$ cd g95 > ... > > [Mahmoudi(a)mahmoudi-ecd g95]$ ln -s /wrf/g95/g95-install/bin/i686-pc- > > linux-gnu-g95 > > /bin/g95 ln: `/bin/g95': File exists > > in this last step something is missing! you should create a symbolic > link somwhere else. A simple (and usual) possibility would be to create > a link named g95 in some directory already present in your PATH > variable. Usually, it might be /usr/local/bin. > > Try: > ln -s /wrf/g95/g95-install/bin/i686-pc-linux-gnu-g95 /usr/local/bin > > If you are using bash as shell, that should be enough. Try to use g95 > to compile a file of yours. > > Giorgio Hi Giorgio I have tried your suggestion, but it seems not working: [Mahmoudi(a)mahmoudi-ecd g95]$ ln -s /wrf/g95/g95-install/bin/i686-pc- linux-gnu-g95 /usr/local/bin ln: creating symbolic link `/usr/local/bin/i686-pc-linux-gnu-g95' to `/ wrf/g95/g95-install/bin/i686-pc-linux-gnu-g95': Permission denied [Mahmoudi(a)mahmoudi-ecd g95]$ su Password: [root(a)mahmoudi-ecd g95]# ln -s /wrf/g95/g95-install/bin/i686-pc-linux- gnu-g95 /usr/local/bin [root(a)mahmoudi-ecd g95]# g95 bash: g95: command not found I look forward to hearing you guys Regards JAfar
From: Alois Steindl on 26 Jun 2008 03:13 Hello, that is not a fortran question, but concerns the basic usage of unixoid systems. I would strongly suggest that you get a good introduction to Linux/Redhat/Unix and work through it right now. Otherwise you will run into problems very frequently. Some explanation for your problem: When the shell starts, it searches through the directories listed in the PATH variable and remembers the executable files in these directories. If you add new programs to these directories, the shell doesn't know about that (although it just helped you to put it there), so you could call "hash -r" in bash or "rehash" in the tcsh. You could also simply start a new shell window, then the shell should know about the new program. If you plan to do more programming, you should at least learn about the shell yiu are using and about make. Good luck Alois
From: jaafar on 26 Jun 2008 04:08
On Jun 26, 10:13 am, Alois Steindl <Alois.Stei...(a)tuwien.ac.at> wrote: > Hello, > that is not a fortran question, but concerns the basic usage of > unixoid systems. > I would strongly suggest that you get a good introduction to > Linux/Redhat/Unix and work through it right now. Otherwise you will > run into problems very frequently. > Some explanation for your problem: When the shell starts, it searches > through the directories listed in the PATH variable and remembers the > executable files in these directories. If you add new programs to > these directories, the shell doesn't know about that (although it just > helped you to put it there), so you could call "hash -r" in bash or > "rehash" in the tcsh. You could also simply start a new shell window, > then the shell should know about the new program. > If you plan to do more programming, you should at least learn about > the shell yiu are using and about make. > Good luck > Alois Do you suggest any good web site start with as a good introduction to Linux/Redhat/Unix Regards Jaafar |