undefined symbol: __gmp_get_memory_functions-Collection of common programming errors
I get this gitlab install error.
Does anyone know why?
log:
[git@ictiy-01 gitlab]$ sudo -u git -H bundle install --deployment --without development test postgres aws
Fetching source index from https://rubygems.org/
Using rake (10.1.0)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.2)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2)
Using actionpack-action_caching (1.1.0)
Using actionpack-page_caching (1.0.2)
Using activemodel (4.0.2)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2)
Using bundler (1.5.1)
Using thor (0.18.1)
Using railties (4.0.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2)
Using acts-as-taggable-on (2.4.1)
Using asciidoctor (0.1.4)
Using descendants_tracker (0.0.3)
Using ice_nine (0.10.0)
Using axiom-types (0.0.5)
Using bcrypt-ruby (3.1.2)
Using sass (3.2.12)
Using bootstrap-sass (2.3.2.2)
Using json (1.8.1)
Using carrierwave (0.9.0)
Using timers (1.1.0)
Using celluloid (0.15.2)
Using charlock_holmes (0.6.9.4)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using coffee-rails (4.0.1)
Using chunky_png (1.2.9)
Using fssm (0.2.10)
Using compass (0.12.2)
Using compass-rails (1.1.1)
Using sass-rails (4.0.1)
Using chosen-rails (1.0.1)
Using coercible (1.0.0)
Using colored (1.2)
Using connection_pool (1.2.0)
Using d3_rails (3.1.10)
Using orm_adapter (0.5.0)
Using warden (1.2.3)
Using devise (3.0.4)
Using devise-async (0.8.0)
Using diff-lcs (1.2.5)
Using dotenv (0.9.0)
Using enumerize (0.7.0)
Using equalizer (0.0.8)
Using escape_utils (0.2.4)
Using eventmachine (1.0.3)
Using multipart-post (1.2.0)
Using faraday (0.8.8)
Using faraday_middleware (0.9.0)
Using font-awesome-rails (3.2.1.3)
Using foreman (0.63.0)
Using gemoji (1.3.1)
Using github-markdown (0.5.5)
Using github-markup (0.7.5)
Using posix-spawn (0.3.6)
Using gitlab-grit (2.6.3)
Using gitlab-flowdock-git-hook (0.4.2.2)
Using yajl-ruby (1.1.0)
Using gitlab-pygments.rb (0.5.4)
Using nokogiri (1.5.10)
Using sanitize (2.0.6)
Using stringex (1.5.1)
Using gitlab-gollum-lib (1.0.2)
Using gitlab-grack (2.0.0.pre)
Using gitlab-linguist (2.9.6)
Using gitlab_git (4.0.0.pre)
Using gitlab_meta (6.0)
Using net-ldap (0.3.1)
Using hashie (2.0.5)
Using omniauth (1.1.4)
Using pyu-ruby-sasl (0.0.3.3)
Using rubyntlm (0.1.1)
Using gitlab_omniauth-ldap (1.0.3)
Using gon (5.0.0)
Using multi_xml (0.5.5)
Using rack-accept (0.4.5)
Using rack-mount (0.8.3)
Using virtus (1.0.1)
Using grape (0.6.1)
Using grape-entity (0.3.0)
Using haml (4.0.4)
Using haml-rails (0.5.1)
Using httparty (0.12.0)
Using hipchat (0.9.0)
Using http_parser.rb (0.5.3)
Using httpauth (0.2.0)
Using jquery-atwho-rails (0.3.3)
Using jquery-rails (2.1.3)
Using turbolinks (2.0.0)
Using jquery-turbolinks (2.0.1)
Using jquery-ui-rails (2.0.2)
Using jwt (0.1.8)
Using kaminari (0.14.1)
Using kgio (2.8.1)
/usr/local/lib/ruby/2.0.0/rubygems/ext/builder.rb:54: warning: Insecure world writable dir /usr/local/java/bin in PATH, mode 040777
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
creating Makefile
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:87: warning: Insecure world writable dir /usr/local/java/bin in PATH, mode 040777
Compiling v8 for ia32
Using python 2.7.6
Using compiler: /usr/bin/g++
/usr/local/gcc/libexec/gcc/i686-pc-linux-gnu/4.6.1/cc1plus: symbol lookup error: /usr/local/mpfr/lib/libmpfr.so.1: undefined symbol: __gmp_get_memory_functions
gmake[1]: *** [/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/assembler.o] Error 1
gmake: *** [ia32.release] Error 2
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `each'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `verify_installation!'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:in `install!'
from extconf.rb:7:in `'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=ia32 \
-S.ia32 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
gmake[1]: Entering directory `/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out'
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/cached-powers.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/conversions.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/diy-fp.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/dtoa.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/fast-dtoa.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/fixed-dtoa.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/once.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparse-data.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparser.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/preparser-api.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/scanner.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/strtod.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/token.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/unicode.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser_lib/src/utils.o
AR(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/tools/gyp/libpreparser_lib.a
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/preparser/preparser/preparser-process.o
LINK(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/preparser
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/accessors.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/allocation.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/api.o
CXX(target) /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out/ia32.release/obj.target/v8_base/src/assembler.o
gmake[1]: Leaving directory `/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/vendor/v8/out'
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/libv8-3.16.14.3/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
[git@ictiy-01 gitlab]$