3
votes

When I run foreman start i get the following error:

pallav@pallav-System-Product-Name:~/Workspace/Aadvisor$ foreman start
10:04:32 web.1  | started with pid 11022 10:04:32 web.1  |
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in
`block in materialize': Could not find eventmachine-0.12.10 in any of
the sources (Bundler::GemNotFound) 10:04:32 web.1  |  from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
`map!' 10:04:32 web.1  |  from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
`materialize' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in
`specs' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in
`specs_for' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in
`requested_specs' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in
`requested_specs' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in
`setup' 10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
10:04:32 web.1  |   from
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in
`<top (required)>' 10:04:32 web.1  |  from
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
10:04:32 web.1  |   from
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
10:04:32 web.1  | exited with code 1 10:04:32 system | sending SIGTERM
to all processes SIGTERM received
pallav@pallav-System-Product-Name:~/Workspace/Aadvisor$

i also did

sudo bundle install

again error: "An error occurred while installing eventmachine (0.12.10), and Bundler cannot continue. Make sure that gem install eventmachine -v '0.12.10' succeeds before bundling. "

now when i do

sudo gem install eventmachine -v '0.12.10'

i again get error which says:

"ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension."

Please tell me what i'm missing.

6
Please also check : linkgem_make.outPallavSharma
Error logs linkPallavSharma

6 Answers

7
votes

In order to install eventmachine 1.0.3 on Ubuntu 14.04 you first need to run:

sudo apt-get install build-essential

then bundle install or gem install eventmachine

should be enough.

Note: If you have rbenv, remember to run rbenv rehash after a bundle install.

2
votes

Try installing openssl and libstdc++.
If you are using rvm and have installed ruby in single user mode, you should omit sudo.

Can you paste the complete log of the error? Would be easier to answer your question with that.

UPDATE Please refer to this answer https://stackoverflow.com/a/17386686/846970 in another stackoverflow thread and let me know if it works.

1
votes

You need to run bundle install you don't have one of the gems required in your Gemfile installed on your machine.

0
votes

Try to update your system RubyGems.

  1. rvm get stable
  2. rvm rubygems latest

I hope that works for you.

0
votes

For other people who cannot solve with the described above methods:

sudo -u gitlab -H bundle config build.eventmachine --with-cflags=\"-O2 -pipe -march=native -w\"
sudo -u gitlab -H bundle config build.thin --with-cflags=\"-O2 -pipe -march=native -w\"

As described by user enrico here.

0
votes

try gem install eventmachine -- --with-openssl-dir=/usr/local/opt/[email protected]