Hi,
Objective:
Its to set up a system wide environment variable permanently, I want to set CVSROOT to /usr/local/CVS. Also, I want to get it set immediately i.e i dont want to reboot my machine..
Distribution?
Fedora Core 1
Problem:
I am unable to do so
What has been tried?
I put following in the last line of /etc/profile file (as a root):
CVSROOT="/usr/local/CVS"
and then I tried to get it set immediately by running following:
[root@localhost piyushkansal]# . /etc/profile
After this when I echo'ed the same, it worked:
[root@localhost piyushkansal]# echo $CVSROOT
/usr/local/CVS
But when i tried to do get code (from local login, not root) from CVS it gave me an error. You can see the following sequence of commands i fired from my local login but it didnt work:
[
piyushkansal@localhost HelloWorld]$ cvs co -d 2 KernelDevelopment
cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.
[piyushkansal@localhost HelloWorld]$ echo $CVSROOT
[piyushkansal@localhost HelloWorld]$ . /etc/profile
[piyushkansal@localhost HelloWorld]$ echo $CVSROOT
/usr/local/CVS
[piyushkansal@localhost HelloWorld]$ cvs co -d 2 KernelDevelopment
cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.
[piyushkansal@localhost HelloWorld]$
I even tried to reboot my system and it didnt work even after that. I also tried to set CVSROOT to /usr/local/CVS
/ but it didnt work too...
Please suggest me if I am missing something....