Open iamstoick opened 9 years ago
Manage to solve the above error by installing:
$ sudo apt-get install mysql-client libmysqlclient-dev
After I rerun the installation I encountered another problem.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby -r ./siteconf20151109-16291-19z0pb8.rb 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/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20151109-16291-1vnazkvpg-0.18.3/gems/pg-0.18.3 for inspection.
Results logged to /tmp/bundler20151109-16291-1vnazkvpg-0.18.3/extensions/x86_64-linux/2.2.0-static/pg-0.18.3/gem_make.out
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:89:in `run'
/usr/local/lib/ruby/2.2.0/rubygems/ext/ext_conf_builder.rb:36:in `block in build'
/usr/local/lib/ruby/2.2.0/tempfile.rb:319:in `open'
/usr/local/lib/ruby/2.2.0/rubygems/ext/ext_conf_builder.rb:19:in `build'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:160:in `chdir'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:160:in `block in build_extension'
/usr/local/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:159:in `build_extension'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:195:in `each'
/usr/local/lib/ruby/2.2.0/rubygems/ext/builder.rb:195:in `build_extensions'
/usr/local/lib/ruby/2.2.0/rubygems/installer.rb:702:in `build_extensions'
/usr/local/lib/ruby/2.2.0/rubygems/installer.rb:250:in `install'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/source/rubygems.rb:141:in `block in install'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/rubygems_integration.rb:147:in `preserve_paths'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/source/rubygems.rb:134:in `install'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/installer.rb:112:in `install_gem_from_spec'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/installer.rb:266:in `block in install_sequentially'
/usr/local/lib/ruby/2.2.0/forwardable.rb:183:in `each'
/usr/local/lib/ruby/2.2.0/forwardable.rb:183:in `each'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/installer.rb:265:in `install_sequentially'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/installer.rb:93:in `run'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/installer.rb:18:in `install'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/cli/install.rb:107:in `run'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/cli.rb:162:in `install'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/cli.rb:10:in `start'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/bin/bundle:20:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/bin/bundle:18:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
An error occurred while installing pg (0.18.3), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.3'` succeeds before bundling.
Solved:
$ sudo apt-get install libpostgresql-ocaml-dev
Another issue.
$ bundle exec rake fulcrum:setup db:setup
rake aborted!
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
/home/gerald/fulcrum/config/application.rb:7:in `<top (required)>'
/home/gerald/fulcrum/Rakefile:5:in `require'
/home/gerald/fulcrum/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
Take a look at issue #115 I think there is the solution for you.
Having error in the installation in mysql part.
$ bundle install
...
Ubuntu 14.04 64 bit.