LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1 (https://www.linuxquestions.org/questions/programming-9/forrtl-severe-47-write-to-readonly-file-unit-5-file-dev-pts-1-a-368883/)

terrence 10-01-2005 08:59 PM

forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1
 
hello all,
i am trying to program using intel's fortran compiler 9.0 for linux. I was able to compile successfully my program and it produced a file a.out. When I tried to run a.out the below error occurs. I have no idea what that below is talking about. Online has given a description of what it is but doesn't tell of finding a solution to the problem. Pleae let me know what you guys think. Thanks so much.


forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1
Image PC Routine Line Source
a.out 08090434 Unknown Unknown Unknown
a.out 0808EE94 Unknown Unknown Unknown
a.out 0806D40D Unknown Unknown Unknown
a.out 0804EF7C Unknown Unknown Unknown
a.out 0804F453 Unknown Unknown Unknown
a.out 0806252E Unknown Unknown Unknown
a.out 0804A506 Unknown Unknown Unknown
a.out 0804A49D Unknown Unknown Unknown
Unknown 0016CE23 Unknown

paulsm4 10-01-2005 10:22 PM

/dev/pts/1 is your "terminal window". It should generally have permissions like this (allowing you - and only you - to read from it and write to it):

Quote:

ls -l /dev/pts/1
crw------- 1 paulsm tty 136, 1 2005-10-01 20:14 /dev/pts/1
So it sounds like you're trying to do a FORTRAN "write(*,*)" to FORTRAN unit 5, and the system isn't letting you (e.g. you don't have write permission).

Please try this:

1. Be sure you're running "a.out" as the same user you're logged in as.

2. Run the command "ls -l /dev/pts" and verify a) that /dev/pts/1 actually exists, b) that it's owned by you, and c) that it has both "r" (read) and "w" (write) permissions.

'Hope that helps .. PSM


All times are GMT -5. The time now is 01:40 AM.