Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Environment:

  • linux novice :)
  • tmux 1.1 was installed using apt-get
  • tmux 1.6 was downloaded, configured, built, and installed from source
  • tmux 1.1 was removed using apt-get

Problem:

  • running tmux from path tries to run it from /usr/bin instead of /usr/local/bin

deets:

    wget http://iweb.dl.sourceforge.net/project/tmux/tmux/tmux-1.6/tmux-1.6.tar.gz
    tar xvf tmux-1.6.tar.gz
    cd tmux-1.6/
    sudo apt-get install libevent-dev
    sudo apt-get install libncurses5-dev
    ./configure
    make
    make install
    ./tmux #version 1.6 worked perfectly
    cd ~
    tmux #ran old version as expected
    sudo apt-get remove tmux

results when I try to run it from ~:

    ~$tmux
    -bash: /usr/bin/tmux: No such file or directory
    ~$which tmux
    /usr/local/bin/tmux
    ~$echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
share|improve this question
    
What do you get with type -a tmux -- there might be an alias. –  glenn jackman Apr 4 '12 at 18:35
add comment

1 Answer 1

up vote 5 down vote accepted

Try hash -r to flush the bash cache.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.