[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gfortran Permission denied



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/07/08 17:42, michael wrote:
> I've just installed, without error, gfortran on my AMD64
> 
> mkb@amd64:~/work/Fortran$ dpkg -l|grep gfortran
> ii  gfortran                          4.1.1-15
> The GNU Fortran 95 compiler
> ii  gfortran-4.1                      4.1.1-21
> The GNU Fortran 95 compiler
> ii  libgfortran1                      4.1.1-21
> Runtime library for GNU Fortran applications
> ii  libgfortran1-dev                  4.1.1-21
> GNU Fortran library development
> mkb@amd64:~/work/Fortran$ uname -a
> Linux amd64 2.6.18-6-amd64 #1 SMP Thu Apr 24 03:57:46 UTC 2008 x86_64
> GNU/Linux
> 
> and it seems to compile a simple code okay:
> 
> mkb@amd64:~/work/Fortran$ cat simple.f90 ; gfortran -o simple.out
> simple.f90
> program michael
> implicit none
> write(*,*) 'hi'
> write(*,*) index('hi','!')
> end program michael
> 
> but it won't run!
> 
> mkb@amd64:~/work/Fortran$ ./simple.out
> -bash: ./simple.out: Permission denied
> mkb@amd64:~/work/Fortran$ ls -lt ./simple.out
> -rwxr-xr-x 1 mkb mkb 10039 May  7 23:41 ./simple.out*
> 
> 
> but it's totally unclear to me what the problem is....
> 
> All ideas welcomed, M

Works for me on x86-32 Sid.  Maybe the /Permission denied/ is on a
library instead of the main routine?

$ gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure linux gnu
Thread model: posix
gcc version 4.3.1 20080401 (prerelease) (Debian 4.3.0-3)

$ cat simple.f90
program michael
implicit none
write(*,*) 'hi'
write(*,*) index('hi','!')
end program michael

$ gfortran -o simple simple.f90

$ ./simple
 hi
           0

$ dir simple*
- -rwxr-xr-x 1 me me 7768 2008-05-07 17:55 simple*
- -rw-r--r-- 1 me me   93 2008-05-07 17:52 simple.f90

$ ldd simple
        linux-gate.so.1 =>  (0xb7ef6000)
        libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0xb7e35000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7e10000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e02000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7cb4000)
        /lib/ld-linux.so.2 (0xb7ef7000)


- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIjQqS9HxQb37XmcRAo1QAJ4rCI/Sy1FTdGsQFhnnwKYoxgiEegCghVSY
mMg5dbWPrrPCTLdrO4lnEc4=
=Ki2S
-----END PGP SIGNATURE-----


Reply to: