Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed #45

Open
zjline opened this issue Mar 2, 2018 · 6 comments
Open

build failed #45

zjline opened this issue Mar 2, 2018 · 6 comments

Comments

@zjline
Copy link

zjline commented Mar 2, 2018

When I run “docker-compose up -d --build --remove-orphans”,there was an error:

_Step 14 : RUN bundle install
 ---> Running in 0767e932eea3
########
there are maney code I didn't copy
#######

Gem::InstallError: rdoc requires Ruby version >= 2.2.2.
An error occurred while installing rdoc (6.0.1), and Bundler cannot continue.
Make sure that `gem install rdoc -v '6.0.1'` succeeds before bundling

In Gemfile:
  sdoc was resolved to 1.0.0, which depends on
    rdoc
ERROR: Service 'fluxday-app' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 5_

So who can help me ?thanks

@yumenoshizuku
Copy link

Add
gem 'rdoc', '5.1.0'
in Gemfile
before

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

@kurtferreira
Copy link

Alternatively, update the Dockerfile to use Ruby 2.2 instead of 2.1:

RUN apt-get install -y nodejs \ ruby2.2 \ ruby2.2-dev \ build-essential \ curl \ zlib1g-dev \ libssl-dev \ libreadline-dev \ libyaml-dev \ libxml2-dev \ libxslt-dev \ libpq-dev \ git python-virtualenv \ libmysqlclient-dev \ libmagickwand-dev \ gnuplot \ imagemagick-doc \ imagemagick \ wkhtmltopdf

@louisyssel
Copy link

Kurt, can you suggest which Ruby 2.2 should be used? 2.2.1, 2.2.2 or which one?

@kurtferreira
Copy link

@louisyssel Simply changing it to 2.2 seemed to do the trick but I had a cascade of other issues such as the DB and seeding etc. and as a result and eventually gave up. Pity, because Fluxday is a nifty tool but to get the environment set up and installed from Docker (which should be a really easy feat) was just too cumbersome and I lack the time to issue a PR for my changes. If do you manage to get the build process sorted, please do drop me a message, I'd greatly appreciate it.

@louisyssel
Copy link

louisyssel commented Jul 27, 2018 via email

@haison123
Copy link

Help me pls!!!!
after run docker-compose up -d --build --remove-orphans , there was an error:

E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'fluxday-app' failed to build: The command '/bin/sh -c apt-get upgrade -y' returned a non-zero code: 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants