Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a newbie in the world of Linux (obviously!!!!). I would love to get some help regarding the following matter. I am trying to install a software called SPARTA+. While installing I sourced the .cshrc file and I faced the following error when .
/.cshrc: line 5: syntax error: unexpected end of file
This is how the .cshrc file looks like
if (-e $SPARTAP_Dir/sparta+Init.com) then
source $SPARTAP_Dir/sparta+Init.com
endif
It will be great if someone can tell me what's wrong with this .cshrc file or what does the error mean.
Thank you
The instructions are for macOS (and apparently "linux9"... RHEL9?) and assume that either csh or tcsh are installed.
You should post the whole contents of ~/.cshrc, along with the distribution you are using and what you enter to produce the error, if you expect to receive any meaningful assistance.
if (-e $SPARTAP_Dir/sparta+Init.com) then
^ ^ ^
| | |
1. test requires space between the argument and the enclosing brackets.
2. if - then requires that then be on the next line or that there be a ; between the test and then.
Thus it should be
if ( -e $SPARTAP_Dir/sparta+Init.com ); then
Regardless of what else is wrong the form of that line must be fixed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.