image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old November 27th, 2005, 01:25 AM
EJF EJF is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
EJF is on a distinguished road
How do I change my .tcshrc file?

I am starting to use a Fortran compiler (from Absoft) on my Mac, which runs on Tiger. I got a message that says "return code (11)". From Googling around, I gather that that means that I have to increase my "stack size" and that I can do this by going to my .tcshrc file and changing my .tcshrc file to include "limit stacksize unlimited" (http://www.absoft.com/Support/FAQ/macosx92faq.html). Unfortunately, I can't find my .tcshrc file. Can anyone help me out with this?

Thanks.

Eric
Reply With Quote
  #2  
Old November 27th, 2005, 02:14 AM
sourcehound's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
sourcehound is on a distinguished road
Start tcsh, create .tcshrc

Quote:
Originally Posted by EJF
I am starting to use a Fortran compiler (from Absoft) on my Mac, which runs on Tiger. I got a message that says "return code (11)". From Googling around, I gather that that means that I have to increase my "stack size" and that I can do this by going to my .tcshrc file and changing my .tcshrc file to include "limit stacksize unlimited" (http://www.absoft.com/Support/FAQ/macosx92faq.html). Unfortunately, I can't find my .tcshrc file. Can anyone help me out with this?

Thanks.

Eric
Tiger uses bash as the default shell, not tcsh. If you want to use tcsh, simply type "tcsh" at the command prompt. Then, while in your home directory, simply issue "touch .tcshrc" and then "echo 'limit stacksize unlimited' > .tcshrc

Quit Terminal, type tcsh at the prompt, and it should read the .tcsh file for you.
__________________
Sourcehound, author of HelpMate: http://www.macworkshops.com/machelpmate
ACSA, ACTC, MCP, A+, APP
Mac OS X IT Trainer & Consultant
http://www.macworkshops.com
MacTech Magazine Columnist
http://www.mactech.com
Reply With Quote
  #3  
Old November 27th, 2005, 02:34 AM
EJF EJF is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
EJF is on a distinguished road
Quote:
Originally Posted by sourcehound
Tiger uses bash as the default shell, not tcsh. If you want to use tcsh, simply type "tcsh" at the command prompt. Then, while in your home directory, simply issue "touch .tcshrc" and then "echo 'limit stacksize unlimited' > .tcshrc

Quit Terminal, type tcsh at the prompt, and it should read the .tcsh file for you.
Thanks for the reply.

I know almost nothing about any of this stuff and suspect that I may have asked the wrong question. Would it be more logical for me to try to increase my stack size by changing something in bash rather than in tcsh? My understanding of these issues is close to zero, e.g. I have only a very shaky understanding of what a shell is, and I don't know what stack size is. My background in programming consists solely of having written a lot of Perl scripts. I want to fix this current problem in the way that would be most likely to be compatible with what this Fortran compiler assumes I have done.

Thanks again for the help.

Eric
Reply With Quote
  #4  
Old November 27th, 2005, 02:54 AM
sourcehound's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
sourcehound is on a distinguished road
For Bash, use .bash_profile

Try creating the .bash_profile file and editing that instead of .tcshrc, that ***should*** work for you.

man bash for more info....

Quote:
Originally Posted by EJF
Thanks for the reply.

I know almost nothing about any of this stuff and suspect that I may have asked the wrong question. Would it be more logical for me to try to increase my stack size by changing something in bash rather than in tcsh? My understanding of these issues is close to zero, e.g. I have only a very shaky understanding of what a shell is, and I don't know what stack size is. My background in programming consists solely of having written a lot of Perl scripts. I want to fix this current problem in the way that would be most likely to be compatible with what this Fortran compiler assumes I have done.

Thanks again for the help.

Eric
__________________
Sourcehound, author of HelpMate: http://www.macworkshops.com/machelpmate
ACSA, ACTC, MCP, A+, APP
Mac OS X IT Trainer & Consultant
http://www.macworkshops.com
MacTech Magazine Columnist
http://www.mactech.com
Reply With Quote
  #5  
Old November 27th, 2005, 03:27 AM
EJF EJF is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
EJF is on a distinguished road
Quote:
Originally Posted by sourcehound
Try creating the .bash_profile file and editing that instead of .tcshrc, that ***should*** work for you.

man bash for more info....
I looked at man bash, but it's assuming more knowledge than I have.

Is there a file on my computer called ".bash_profile" that I can open up and change? If so, is it something that I can get to by double-clicking on a series of folders or is it something I have to access only by using the terminal? I know how to read things using the terminal and I know how to run Perl scripts from the terminal, but that's about it - I don't know how to alter files from the terminal, so I'd rather be able to just double click files and alter them directly.

Thanks.

Eric
Reply With Quote
  #6  
Old November 27th, 2005, 05:20 PM
sourcehound's Avatar
Registered User
 
Join Date: Aug 2005
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
sourcehound is on a distinguished road
Get used to the terminal

Quote:
Originally Posted by EJF
I looked at man bash, but it's assuming more knowledge than I have.

Is there a file on my computer called ".bash_profile" that I can open up and change? If so, is it something that I can get to by double-clicking on a series of folders or is it something I have to access only by using the terminal? I know how to read things using the terminal and I know how to run Perl scripts from the terminal, but that's about it - I don't know how to alter files from the terminal, so I'd rather be able to just double click files and alter them directly.

Thanks.

Eric
If you want to edit invisible system files like the .bash_profile file (you have to create it, just follow the same instructions I gave before:

1. Open Terminal
2. do "touch .bash_profile"
3. echo 'the string you got from that site'
4. log out and back in

If you're working with compilers on OS X, you have to make your peace with the Terminal. The only other recourse would be to use a programmer's text editor like BBedit or TextWranger, but working with the Terminal is real simple and very rewarding. You will need that skill.
__________________
Sourcehound, author of HelpMate: http://www.macworkshops.com/machelpmate
ACSA, ACTC, MCP, A+, APP
Mac OS X IT Trainer & Consultant
http://www.macworkshops.com
MacTech Magazine Columnist
http://www.mactech.com
Reply With Quote
  #7  
Old November 27th, 2005, 06:02 PM
EJF EJF is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
EJF is on a distinguished road
Quote:
Originally Posted by sourcehound
If you want to edit invisible system files like the .bash_profile file (you have to create it, just follow the same instructions I gave before:

1. Open Terminal
2. do "touch .bash_profile"
3. echo 'the string you got from that site'
4. log out and back in

If you're working with compilers on OS X, you have to make your peace with the Terminal. The only other recourse would be to use a programmer's text editor like BBedit or TextWranger, but working with the Terminal is real simple and very rewarding. You will need that skill.
Thanks, Sourcehound!

It seems to have worked. I opened the terminal, logged on as the "super user" (figuring that that would be required to give me the privelige to change things like that), typed "touch .bash_profile", typed "echo 'limit stacksize unlimited'", exited the super user mode, typed "ls -la", saw .bash_profile listed (I'm pretty sure it wasn't there before), typed "head -200 .bash_profile" (wanting to look at the first 200 lines) and saw "limit stacksize unlimited". So I guess I have an invisible file called ".bash_profile" that contains only this single line.

Unfortunately, it didn't fix my problem. I went back to the Fortran compiler and tried to run the program, but it still gave me the same error message. Still, it's a step forward. I went out and picked up a copy of "UNIX for Dummies" to try to learn some of the basics. I see that they have a discussion of what shells are, though they don't list either "touch" or "echo" in the index. I'll read through part of this to see if it clears up some of the basics for me.

Thanks again for the help.

Eric
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:22 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.