Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Installation fails in CentOS 7 #21

Open
MattMcFarland opened this issue Nov 1, 2014 · 4 comments
Open

Installation fails in CentOS 7 #21

MattMcFarland opened this issue Nov 1, 2014 · 4 comments

Comments

@MattMcFarland
Copy link

Steps to reproduce:

  1. Fresh install a vm running centos 7
  2. enter this into command line:
curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash

expected: .c9 dir should be full and install should be complete.without switching to root or sudo

result: Error: intall fails because dependencies are not found for curses, livbevent, and sudo was needed to complete install

Fix: The Following command fixed the issue for me:

sudo yum install libevent-devel ncurses-devel glibc-static

This is because of tmux, more details found here: https://groups.google.com/forum/#!topic/iterm2-discuss/wfYur0iSXdQ

@siliconalchemy
Copy link

Same problem that's been around for a while for CentOS6 as well. The above didn't help for me as it insists on compiling it's own libevent and ncurses anyway, but it's not using the correct linking args for tmux. I changed the tmux configure line to this and it works for me now:

./configure CFLAGS="-I$C9_DIR/local/include -I$C9_DIR/local/include/ncurses" CPPFLAGS="-I$C9_DIR/local/include -I$C9_DIR/local/include/ncurses" LDFLAGS="-static-libgcc
-L$C9_DIR/local/lib" LIBEVENT_CFLAGS="-I$C9_DIR/local/include" LIBEVENT_LIBS="-static -L$C9_DIR/local/lib -levent" LIBS="-L$C9_DIR/local/lib -lncurses -L$C9_DIR/local/l
ib -ltinfo" --prefix="$C9_DIR/local"

@MattMcFarland
Copy link
Author

Thanks for sharing. So apparently you changed the install.sh file? Maybe you could send a pull request? I think this would help a lot of folks out.

@gbraad
Copy link

gbraad commented Aug 10, 2015

Actually, more worrying is that tmux currently gets installed in /usr/local/bin instead of the user .c9 folder. Although, the prefix is set...

make[1]: Entering directory `/home/gbraad/.c9/tmux-1.9'
 /bin/mkdir -p '/usr/local/bin'
  /bin/install -c tmux '/usr/local/bin'
/bin/install: cannot create regular file '/usr/local/bin/tmux': Permission denied
make[1]: *** [install-binPROGRAMS] Error 1
make[1]: Leaving directory `/home/gbraad/.c9/tmux-1.9'
make: *** [install-am] Error 2

Note: doesn't occur when tmux is installed from RPM

@jpike88
Copy link

jpike88 commented Oct 6, 2015

This is still open?! Have all the C9 developers gone on vacation or something?

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

No branches or pull requests

4 participants