Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problems with setenv


    I'm trying to install the Java Medira Framework on my FC5 system, but I'm having some problems. Here are the steps I need to follow:
    Code:
       1. Check the hardware and software requirements.
       2. Run the Installation program to extract JMF to a directory, such as /home/someuser/. A JMF-2.1.1e subdirectory will be created.
       3. Set your CLASSPATH path to reference the JMF directory. For example,
    
              setenv JMFHOME /home/someuser/JMF-2.1.1e
              setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH} 
    
       4. Set your LD_LIBRARY_PATH (shared libraries path) to point to the JMF libraries. For example:
    
              setenv LD_LIBRARY_PATH $JMFHOME/lib:${LD_LIBRARY_PATH}
    Whenever I try and execute to 'setenv' commands, I get:
    Code:
    [tristan@tristan Desktop]$ setenv JMFHOME /home/tristan/JMF-2.1.1e
    bash: setenv: command not found
    I've searched the drive for that command, but it's nowhere. What am I supposed to do?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    setenv is for csh.

    Use:
    export VAR=value
    for bash.

  3. #3
    Quote Originally Posted by anomie View Post
    setenv is for csh.

    Use:
    export VAR=value
    for bash.
    So how exactly would I do it?

    Code:
    export JMFHOME = /home/someuser/JMF-2.1.1e
    export CLASSPATH  = $JMFHOME/lib/jmf.jar:.:${CLASSPATH}
    export LD_LIBRARY_PATH = $JMFHOME/lib:${LD_LIBRARY_PATH}

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Almost.

    Code:
    export JMFHOME="/home/someuser/JMF-2.1.1e"
    export CLASSPATH="$JMFHOME/lib/jmf.jar:.:${CLASSPATH}"
    export LD_LIBRARY_PATH="$JMFHOME/lib:${LD_LIBRARY_PATH}"

  6. #5
    I have Suse and got the same problem. I found in a different forum that only csh have setenv and not bash. So doing $/bin/csh and then setenv was perfect!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •