true dummie calling


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers true dummie calling
# 1  
Old 01-29-2007
true dummie calling

hi
i think this will make me seem dummier than most, actually i don't even understand most of the posts in the dummie section...
i have a project and i need to learn fortran programming, im working on a windows xp pc and so i have installed cygwin. and the cygwin site basically says learn unix so here I am.
I managed to unzip the g95 fortran compiler tarball from www.g95.org but beyond that I can't follow the manual...
The manual includes simple examples such as

g95 -c hello.f90
"Compiles hello.f90 to an object file named hello.o."

but when i type
g95 -c hello.f90

i just get
g95: hello.f90: No such file or directory
g95: no input files

and I tried changing directories without any results, of course i don't know exactly which directories would be most helpful.

Not strictly related to the forum topic but closely related to the reason why I posted this thread which is hopefully otherwise correctly categorized:
Any good online fortran (g95) tutorials to recommend for someone who's never programmed anything other than HTML and MatLAb and not even much of either of those?

Thanks a lot, it's looking like a tall mountain to climb from down here.
Cheers
T
# 2  
Old 01-29-2007
It sounds like a path problem to me, unfortunately I can't tell you how to fix that using cygwin. If you just want to compile fortran code then maybe MinGW ( www.mingw.org ) is the way to go.

Quote:
Originally Posted by www.mingw.org
MinGW ("Minimalistic GNU for Windows") refers to a set of runtime headers, used in building a compiler system based on the GNU GCC and binutils projects. It compiles and links code to be run on Win32 platforms... providing C, C++ and Fortran compilers plus other related tools.
# 3  
Old 01-29-2007
The error message shows that the compiler has been successfully found, just that it can't find the source code (hello.f90). You need to use an editor like vi to create a fortran source file named hello.f90 and try the compiler again.

As to learning Unix, I'm partial to "Essential System Administration". Others will point you to the "Unix System Administrator Handbook". From what you've said, I think the second one would be a better choice. I've read them both and in my opinion ESA is more for someone who's done administration before and has a good frame of reference.

You don't need to do everything in the book since you're not administering a server, however either will be a good reference in how things Unix work.

I'll have to leave fortran references to someone else though. It's been 20 or so years since I touched fortran Smilie

Carl
# 4  
Old 01-29-2007
thanks!

Thank you for your speedy replies,
I'll try the vi and look at the "Unix System Administrator Handbook."

Unfortunately I found the MinGW installation process too confusing and daunting, being able to install cygwin directly from a single executable file was a great relief and although I don't know I think minGW is a linux emulator whereas cygwin emulates unix or they both do something in between, either way it's all in the unix tradition, I'm guessing the ease with which I'll acquire basic admin/command prompt skills won't be much affected.

At any rate, I'll see what I can do with what you've already told me.

Cheers
# 5  
Old 01-29-2007
Quote:
Originally Posted by holyhive
Unfortunately I found the MinGW installation process too confusing and daunting
Most do. If you really want to learn UNIX, I'd reccomend getting a seperate machine for it. It'll run better without having to be emulated inside Windows anyhow.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I'm a dummie!

Hi I was installing 10.04. At 38 minutes remaining it froze and stayed that way for about 2 hours. I shut it down and now It's "frozen" for lack of a better term. ubuntu screen comes up, goes to black screen with blinking cursor. Anyone? Thanks! ---------- Post updated at 08:03 PM ----------... (1 Reply)
Discussion started by: martinnod
1 Replies

2. UNIX for Dummies Questions & Answers

Linux Dummie Here!

I know absolutely NOTHING about Unix but want to learn. How should I go about learning it? (1 Reply)
Discussion started by: Gosade
1 Replies

3. UNIX for Dummies Questions & Answers

is it true or not

I have heard for a long time that in maybe 2039 Unix will no longer be useable due the length of the date value. Anyone know anything about this? (4 Replies)
Discussion started by: dhlopomo
4 Replies

4. Shell Programming and Scripting

dummie ksh

Please help me with a newbie ksh question: I want a script in ksh (under Solaris 8 - SPARC) who runs a "ls -lR" command in some directory and it looks after all the files with the same date as the current one and/or created in the last 24 hours (or N hours). The script should do: - if no... (3 Replies)
Discussion started by: heartwork
3 Replies

5. Linux

dummie questions

im a copletely newbie... i havent installed linux yet, but i wanna quit windows cuz i dont get it anymore... anything is better than this :mad: ... anyway...: does linux runs all file extensions thats windows does? i mean, .doc, .exe, .bat, .psp, etc? i reallly dunno how it works... normal... (3 Replies)
Discussion started by: guare_skt
3 Replies

6. UNIX for Dummies Questions & Answers

Dummie question on ping (loopback)

what's the point of having loopback when you can just ping your local ip address? for example if my ip is 1.1.1.1, why can't i just do ping 5 1.1.1.1 instead of ping 5 127.0.1.1? it seems to me the only point in having it is for the sake of convenience? (2 Replies)
Discussion started by: jinduy
2 Replies

7. UNIX for Dummies Questions & Answers

Dummie: How do I get variables mid program

I'm writing a simple program in unix and was wondering how mid switch I can run a program and get someone to enter variables for it i.e.: #!/bin/csh -f echo "If you wish to do v press v" echo "If you wish to compile press c" echo "If you wish to add an entry press a" echo "If you wish to... (1 Reply)
Discussion started by: RichardB
1 Replies

8. UNIX for Dummies Questions & Answers

Dummie Please Help With Unix And Win Xp

Please help : I have a question i am just starting to study UNIX and i need some advice,as my teacher isn,t the helpful type. I have just formatted my pc and partitioned it with win98 and winxp, do i need to create a partion for UNIX ??? OR is UNIX run in whatever partion i want it ???? Will... (6 Replies)
Discussion started by: DAFFYY30
6 Replies

9. UNIX for Dummies Questions & Answers

Dummie Question, Can anyone take a screen shot of a UNIX system?

Since i have never seen one of these systems, i am just curious of how it looks. Btw if unix is not a GUI then is it possible to take a screenshots (4 Replies)
Discussion started by: Punk18
4 Replies

10. UNIX for Dummies Questions & Answers

Please help this Dummie

I am trying to integrate a Digital Unix Alpha server in a LAN that contains several NT severs. Could someone give me some advise on how to integrate Alpha server, so I can contact the Alpha from any NT and visa versa. Thanks! (1 Reply)
Discussion started by: Rmeyvogel
1 Replies
Login or Register to Ask a Question