I am installing gitlab. when I installed Gems. I got the following errros:
when I executed : "bundle install -j4" and "sudo -u git -H bundle install --deployment --without development test postgres aws kerberos"
the error is :
An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.
Then I executed "sudo gem install nokogiri -v '1.6.6.2'", it succeeded as follows:
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.6.2
Parsing documentation for nokogiri-1.6.6.2
Done installing documentation for nokogiri after 2 seconds
1 gem installed
but then , when I executed the command again: "bundle install -j4" and "sudo -u git -H bundle install --deployment --without development test postgres aws kerberos" , there are still errors as follows:
An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.
But when I executed "gem list", I found nokogiri is in the list as below:
*** LOCAL GEMS ***
bigdecimal (1.2.4)
bundler (1.10.6)
io-console (0.4.3)
json (1.8.1)
mini_portile (0.6.2)
minitest (4.7.5)
nokogiri (1.6.6.2)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
test-unit (2.1.6.0)
When I had tried to install the dependences of nokogiri, I found I can not install them. I tried other ways, but none of them worked. I exectued other commmand "bundle config build.nokogiri --use-system-libraries" and " gem install nokogiri -- --use-system-libraries --with-xml2-config=/path/to/xml2-config]" and then "gem install nokogiri -- --use-system-libraries --with-xslt-config=/path/to/xslt-config]" and " bundle config build.nokogiri --use-system-libraries" and "bundle install".
My OS is ubuntu 14.04 LTS 64 bit.