Thread: Help with setenv. Command does not exist.

  1. #1
    Registered User
    Join Date
    Mar 2012
    Location
    Miami, Florida, United States
    Posts
    22

    Help with setenv. Command does not exist.

    Here is my lab assignment

    CVS

    When it comes to this:


    • Create a CVS directory
    • Set the CVSROOT environment variable
    • Initialize the repository


    I tried setenv, got this: -bash: setenv: command not found

    Instead I tried this: CVSROOT=/Users/myusername/C++/prog09/CVS/ (I know this is not a C++ class, I thought it was when I first signed up for it.

    That seemed to work. then I tried CVS init and got this:

    cvs init: No CVSROOT specified! Please use the `-d' option
    cvs [init aborted]: or set the CVSROOT environment variable.

    Then I tried man init to see what the -d option meant and got this: No manual entry for init

    Now I'm a little confused, but I realized, does setenv really not exist? and tried man setenv and it gave me an entire page on setenv. Now what is happening? how do I do this?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    In bash, it's
    export CVSROOT=/Users/myusername/C++/prog09/CVS/
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    This really belongs in the Linux Programming forum or Tech Board, as there's no C content here.

    Setting environment variables: BASH shell

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Slow posting: repeated already posted info.

    Read CVSROOT
    2nd Link: http://www.eos.ubc.ca/research/moc2/...l/setting.html

    Try using "export CVSROOT=" instead.

    NOTE: I am windows user and this post is off topic for C Programming.
    Should be in Linux or tech forum.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    Mar 2012
    Location
    Miami, Florida, United States
    Posts
    22
    Alright, thanks, I will delete this is I can. I switched into csh, not I just have to finish the rest of the assignment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The name ___ does not exist...
    By Xfer in forum C# Programming
    Replies: 4
    Last Post: 01-08-2011, 12:24 PM
  2. setenv() and getenv() explained
    By TaiL in forum C Programming
    Replies: 1
    Last Post: 04-01-2010, 10:13 AM
  3. Does this exist?
    By Kennedy in forum Tech Board
    Replies: 2
    Last Post: 11-23-2006, 03:04 AM
  4. namespace does not exist
    By scott27349 in forum C++ Programming
    Replies: 5
    Last Post: 04-18-2003, 08:48 PM
  5. does uint4 exist?
    By rosgreco in forum C++ Programming
    Replies: 1
    Last Post: 06-11-2002, 11:44 AM