delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/25/07:11:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BD7F2B5.C0CEC4E3@syntrex.com>
Date: Thu, 25 Oct 2001 13:08:37 +0200
From: Pavel Tsekov <ptsekov AT syntrex DOT com>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Robert Livesey <robert DOT livesey AT st-hughs DOT oxford DOT ac DOT uk>
CC: cygwin AT cygwin DOT com
Subject: Re: Fortran executables
References: <E15wiJL-0006sY-00 AT wing6 DOT herald DOT ox DOT ac DOT uk>

:) You dont have your current directory "." set into your PATH
variable - try running the executable like this "./your_executable"
or add current dir in your PATH like this "export PATH=$PATH:."

Robert Livesey wrote:
> 
> The problem I'm having is that after I've compiled a fortran program using the command:
> g77 -o myprog myprog.f
> 
> The executable it creates does not run from the directory I'm sitting in.  The message "Command not found" appears.  However if I move myprog to the default /bin directory it does work.  I was wondering how I can make my programs work anywhere and not just in the bin folder ?  If this is not possible is there a way of creating my own folder like the /bin directory ?
> 
> As you can probably tell I'm new to fortran and also unix so any help would be greatly appreciated.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019