mattias-ohlsson / gitlab-installer

Installer for GitLab
GNU General Public License v3.0
225 stars 112 forks source link

bundle install issue #13

Closed mpycio closed 11 years ago

mpycio commented 11 years ago

Didn't work for me on CentOS release 6.3 (Final)

https://github.com/ctran/annotate_models.git (at master) is not checked out. Please run bundle install (Bundler::GitError)

had to re run: bundle install --deployment to install bundle into an application directory

misteritguru commented 11 years ago

I think I just hit this problem as well

Could not find pg-0.14.1 in any of the sources Run bundle install to install missing gems. Could not find pg-0.14.1 in any of the sources Run bundle install to install missing gems.

I've just run the script - and I'm sitting on a 6.3 box - Did you find a fix for this?

mattias-ohlsson commented 11 years ago

pg problem

Could not find pg-0.14.1 in any of the sources
Run `bundle install` to install missing gems.
# gem install pg

Installing pg (0.14.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
 --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby
    --with-pg
    --without-pg
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/lib
    --with-pg-config
    --without-pg-config
    --with-pg_config
    --without-pg_config

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/pg-0.14.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/pg-0.14.1/ext/gem_make.out
An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.1'` succeeds before bundling.

How to install pg

# yum provides */pg_config
postgresql-devel-8.4.11-1.el6_2.x86_64 : PostgreSQL development header files and libraries
Repo        : base
Matched from:
Filename    : /usr/bin/pg_config

# yum install postgresql-devel  -y
# ls /usr/bin/pg_config
/usr/bin/pg_config

# gem install pg -v '0.14.1'
Building native extensions.  This could take a while...
Successfully installed pg-0.14.1

I will add postgresql-devel to the installation script.

mattias-ohlsson commented 11 years ago

https://github.com/mattias-ohlsson/gitlab-installer/commit/f18e5025c0e64bec2eba1006eeb9a5b2723cb9c5