LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   csh problem !! (https://www.linuxquestions.org/questions/linux-newbie-8/csh-problem-115746/)

StephP 11-13-2003 06:06 PM

csh problem !!
 
Hi I'm a newbie with Linux, I've installed the Mandrake 9.1 because I have to work with an image processing software name Khoros.

I downloaded the necessary files to install khoros (a script file name kpkgadd and some kgpfile)

I have to apply this script on the kgp file like this :

%./kpkgadd Kernel.kgp

in order to install Khoros.

But when I launch the script I received this error message :

Error :
The csh command is not in the executable Path
Please add the appropriate directory to your path and rerun script.

I'm sure it's a minor problem due to the fact that my path don't include csh but I can't resolve it.

Please help me I must work with Khoros this week for my exams.

Thanks

jkobrien 11-14-2003 05:19 AM

Your question is a little confusing because of the kgp stuff. What is the first line of your script? I don't know anything about kgp but scripts usually start by telling the shell where to find the interpreter. e.g. #!/bin/csh

csh is normally in /bin and it's very strange if that isn't already in your path. What does "echo $PATH" give you? If it really isn't there, setting it depends on which shell you are using.

In csh add the following line to .cshrc
setenv PATH = "$PATH:/bin"

For tcsh do the above and also add the following line to .tcshrc
source ~/.cshrc

In bash, edit .profile by adding
PATH=$PATH:/bin
export PATH

I don't know how to set it for ksh, but google should be able to tell you.

John


All times are GMT -5. The time now is 08:52 AM.