LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2005, 08:59 PM   #1
terrence
LQ Newbie
 
Registered: Aug 2005
Location: carribean
Distribution: fedora core 4
Posts: 26

Rep: Reputation: 15
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
 
Old 10-01-2005, 10:22 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
/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

Last edited by paulsm4; 10-01-2005 at 10:23 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Kernel config options (/dev, /dev/pts) jrdioko Slackware 5 08-22-2005 01:25 AM
write errors to log file, instead of /dev/null c_r2005 Linux - General 2 07-30-2005 08:34 AM
how to mount a readonly file system? redsector Linux - Newbie 4 05-16-2005 01:48 AM
What is /dev/pts, /dev/shm? mrpc_cambodia Red Hat 1 10-18-2004 03:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration