- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I installed fortran compiler 11.1 for MacOS. ifort is working. I compiled a hello world f90 codes and got a.out executible file. Then in bash terminal I try to run it but get this information
-bash: a.out: command not found
Please help me out on this. Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got the reason.
By defaul, bash does not include ./ automatically. So if I put ./a.out, the file will run.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page