Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4264  / 2 Years ago, fri, june 10, 2022, 3:32:14

I'm having trouble installing it. I have followed the steps on the link below but when I try to run g95 on terminal it says it doesn't exist.



how to install g95 in ubuntu 12.04



this is what it looks like on terminal:



marvin@marvin-MacBookPro:~$ tar -zxvf g95-x86-linux.tgzg95-install/
g95-install/INSTALL
g95-install/G95Manual.pdf
g95-install/bin/
g95-install/bin/i686-pc-linux-gnu-g95
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/f951
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/cc1
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/crtbegin.o
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/crtbeginS.o
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/crtbeginT.o
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/crtend.o
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/crtendS.o
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libgcc.a
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libgcc_eh.a
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libgcc_s.so
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libgcc_s.so.1
g95-install/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/libf95.a

marvin@marvin-MacBookPro:~$ sudo ln -s ~/g95-install/bin/i686-pc-linux-gnu-g95 /bin/g95
[sudo] password for marvin:
ln: failed to create symbolic link `/bin/g95': File exists
marvin@marvin-MacBookPro:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
marvin@marvin-MacBookPro:~$ g95 --version
bash: /bin/g95: No such file or directory

More From » 12.04

 Answers
0

I found the problem. I was trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed. This was why the output was "No such file or directory" each time i tried to run it. To fix this, I installed 32 bit libraries with this command



sudo apt-get install ia32-libs


after that I followed the steps of installing g95 from the beginning and worked perfectly fine



to determine problem:
No such file or directory? But the file exists!



Running 32bit apps in 64 bit linux: http://www.maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10


[#31144] Friday, June 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
intssive

Total Points: 493
Total Questions: 119
Total Answers: 101

Location: Liberia
Member since Mon, Feb 1, 2021
3 Years ago
intssive questions
Tue, Mar 21, 23, 08:19, 1 Year ago
Wed, Aug 31, 22, 04:04, 2 Years ago
Sat, Sep 25, 21, 15:09, 3 Years ago
Fri, Dec 31, 21, 09:13, 2 Years ago
;