c9 / install

Cloud9 SSH installer
179 stars 151 forks source link

Installation fails in CentOS 7 #21

Open MattMcFarland opened 9 years ago

MattMcFarland commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 8 years ago

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