Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install #27

Closed
figgis opened this issue Sep 15, 2011 · 14 comments
Closed

Fail to install #27

figgis opened this issue Sep 15, 2011 · 14 comments

Comments

@figgis
Copy link

figgis commented Sep 15, 2011

Hi again,

Thinks are not working out for me...

 ~/src/tmuxinator
$ git pull
Already up-to-date.

$ gem install tmuxinator
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /var/lib/gems/1.8 directory.

$ sudo gem install tmuxinator
[sudo] password for XXXXXXX: 

  __________________________________________________________
 \ ..........................................................

  Thank you for installing tmuxinator
  Please be sure to to drop a line in your ~/.bashrc file, similar 
  to RVM if you've used that before:

  [[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator

  also ensure that you've set these variables in your ENV:

  $EDITOR, $SHELL

  you can run `tmuxinator doctor` to make sure everything is set.
  happy tmuxing with tmuxinator!

  ..........................................................
 \ __________________________________________________________


Successfully installed tmuxinator-0.4.0
1 gem installed
Installing ri documentation for tmuxinator-0.4.0...
Installing RDoc documentation for tmuxinator-0.4.0...

$ grep tmux ~/.bashrc
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator

$ echo $TERM
xterm-256color
$ echo $SHELL
/bin/bash
$ echo $EDITOR
vim

Now try to run it:

$ tmuxinator
tmuxinator: command not found

$ sudo find . -type f -name tmuxinator
./var/lib/gems/1.8/bin/tmuxinator
./var/lib/gems/1.8/gems/tmuxinator-0.4.0/bin/tmuxinator

$ cd .tmuxinator
-bash: cd: .tmuxinator: No such file or directory

What just happened?

I'm a python guy, don't know enough to debug ruby...

Am I being stupid or is tmuxinator broken?

@aziz
Copy link
Member

aziz commented Sep 15, 2011

you need to create a directory called .tmuxinator in your home, this was part of the code but some how lost due to merging a couple of pull requests. the new patch in coming as soon

@figgis
Copy link
Author

figgis commented Sep 15, 2011

ok, thanx. created that, then I tried gem install (failed) and sudo gem install still get unknown command. Should I really need to add ./var/lib/gems... to my $PATH?

BTW .tmuxinator is completely empty

@tommcc
Copy link

tommcc commented Feb 6, 2012

I'm having this issue as well. This seems like a great project, but I can't tell which fork to choose if this one isn't even being updated to fix an install bug?

@yesmeck
Copy link

yesmeck commented Jul 21, 2012

It seems you must run the command in a tmux session.

@aokolish
Copy link

is this still relevant?

@franciscoj
Copy link
Contributor

Hi,

I couldn't reproduce this, I guess the error was fixed with the release of 0.5.0. Please, reopen if the error persist.

@stabenfeldt
Copy link

It fails at my place too.

~  gem install tmuxinator
Fetching: tmuxinator-0.6.3.gem (100%)
[cut..]

➜  ~  which tmuxinator.bash
tmuxinator.bash not found

➜  ~  source `which tmuxinator.zsh`
source: no such file or directory: tmuxinator.zsh

➜  ~  gem list tmuxinator

*** LOCAL GEMS ***

tmuxinator (0.6.3)
➜  ~  tmuxinator doctor
Checking if tmux is installed ==> Yes
Checking if $EDITOR is set ==> Yes
Checking if $SHELL is set ==> Yes

@ghost
Copy link

ghost commented Aug 6, 2013

This is the wrong issue to report this in. Seems like you can't source the completion files?

Please raise a new issue for the problem you're having.

@ghost
Copy link

ghost commented Aug 6, 2013

@stabenfeldt, I've updated the readme with the correct instructions regarding completion.

@stabenfeldt
Copy link

@Soliah, Thanks! I got everything rolling now! 👍

@gerrywastaken
Copy link

If running rbenv you will need to run rbenv rehash

@luizs81
Copy link

luizs81 commented Dec 17, 2015

no update about this issue so far? I'm using OSX El Capitan

➜  ~  gem install tmuxinator

    __________________________________________________________
    ..........................................................

    Thank you for installing tmuxinator.

    Make sure that you've set these variables in your ENV:

      $EDITOR, $SHELL

    You can run `tmuxinator doctor` to make sure everything is set.
    Happy tmuxing with tmuxinator!

    ..........................................................
    __________________________________________________________

Successfully installed tmuxinator-0.7.1
Parsing documentation for tmuxinator-0.7.1
Done installing documentation for tmuxinator after 0 seconds
1 gem installed
➜  ~  tmuxinator
zsh: command not found: tmuxinator
➜  ~  rbenv rehash
➜  ~  tmuxinator
zsh: command not found: tmuxinator

@ethagnawl
Copy link
Member

Hey, @luiz-s81. A few things:

  • have you tried using Bash or Fish to see if this is a Zsh issue?
  • what's the output of cd ~ && gem list | grep tmuxinator?
  • you should probably open a new issue for your specific problem (Tmuxinator version, OS X version, shell, etc.)

@Chinggis6
Copy link

Chinggis6 commented Feb 20, 2017

I'm using Arch Linux.
It happened until I re-installed tmuxinator with sudo -E gem install tmuxinator.
The -E part keeps your users environment intact.
Else it would install it for the user root.
Also PATH should be set in config.fish (in my case, as I use fish for shell) to include Ruby binaries.

set -x PATH $PATH $HOME/.gem/ruby/2.4.0/bin

I hope it will help you (too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests