Help with setenv. Command does not exist.

This is a discussion on Help with setenv. Command does not exist. within the Tech Board forums, part of the Community Boards category; Here is my lab assignment CVS When it comes to this: Create a CVS directory Set the CVSROOT environment variable ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650
    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
    2,551
    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.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  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, 11:24 AM
  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, 02: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21