Thanks for sharing! Feel free to add them to https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide too
On Wed, Apr 16, 2014 at 6:24 PM, Ben Burns <[email protected]> wrote: > I had a few problems getting GitLab installed and configured so I thought > I'd share the errors I was having and how I fixed them. > > Using a clean Debian image with no previous software installed. > > Following the guide at http://doc.gitlab.com/ce/install/installation.html > > ----- > > problem: Ruby won't compile, readline error, 'Function' undeclared > > readline.c: In function ‘Init_readline’: > readline.c:1977:26: error: ‘Function’ undeclared (first use in this > function) > rl_pre_input_hook = (Function *)readline_pre_input_hook; > ^ > readline.c:1977:26: note: each undeclared identifier is reported only once > for each function it appears in > readline.c:1977:36: error: expected expression before ‘)’ token > rl_pre_input_hook = (Function *)readline_pre_input_hook; > ^ > readline.c: At top level: > readline.c:634:1: warning: ‘readline_pre_input_hook’ defined but not used > [-Wunused-function] > readline_pre_input_hook(void) > ^ > > solution: > edit ext/readline/readline.c in the Ruby source > change the line > rl_pre_input_hook = (Function *)readline_pre_input_hook; > to > rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook; > > > ----- > > problem: Nginx won't start, "duplicate default server" > > > # /etc/init.d/nginx restart > [FAIL] Restarting nginx: nginx failed! > root@z:/home/git/gitlab# cat /var/log/nginx/error.log > 2014/04/16 10:38:56 [emerg] 13333#0: a duplicate default server for > 0.0.0.0:80 in /etc/nginx/sites-enabled/gitlab:23 > > > solution: > # rm /etc/nginx/sites-available/default > # /etc/init.d/nginx restart > [ ok ] Restarting nginx: nginx. > > ----- > > Version info: > > Windows 7 professional 64, VirtualBox 4.3.6 r91406 running Debian > > # uname -a > Linux z 3.13-1-486 #1 Debian 3.13.7-1 (2014-03-25) i686 GNU/Linux > > # gcc --version > gcc (Debian 4.8.2-16) 4.8.2 > > # cat /home/git/gitlab/VERSION > 6.7.5 > > # ruby --version > ruby 2.1.1p76 (2014-02-24 revision 45161) [i686-linux] > > # git --version > git version 1.9.1 > > # nginx -v > nginx version: nginx/1.4.7 > > # psql --version > psql (PostgreSQL) 9.3.4 > > -- > You received this message because you are subscribed to the Google Groups > "GitLab" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
