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

eventmonitor 1.0.3 compile problems #7

Open
zerolagtime opened this issue Jun 3, 2016 · 0 comments
Open

eventmonitor 1.0.3 compile problems #7

zerolagtime opened this issue Jun 3, 2016 · 0 comments

Comments

@zerolagtime
Copy link

I'm trying to build a Dockerfile to contribute to the application. I'm down to the point where this command comes up: git clone https://github.com/GSA/pdf-filler.git && cd pdf-filler && /bin/bash -l -c "bundle install". Everything is pretty quiet until one of the dependent ruby gems called eventmonitor needs to be built. I've tried installing a newer version of eventmonitor, but somebody has v1.0.3 hard coded. Version 1.2.0.1 compiles just fine.
Even if I ask for v1.0.3 to be installed by hand, it fails with errors like these
em.cpp:574:37: error: 'rb_thread_select' was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);
^
em.cpp: In member function 'int SelectData_t::_Select()':
em.cpp:827:67: error: 'rb_thread_select' was not declared in this scope
return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);

em.cpp: In member function 'void EventMachine_t::_RunSelectOnce()':
em.cpp:946:40: error: 'rb_thread_select' was not declared in this scope
EmSelect (0, NULL, NULL, NULL, &tv);

Here is the Dockerfile so far:
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install -y curl pdftk git
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 09B6B1796C275462A1703113804BB82D39DC0E3
RUN curl -L https://get.rvm.io | bash -s stable --ruby
#RUN /bin/bash -l -c "gem install eventmachine -v '1.2.0.1'"
RUN /bin/bash -l -c "gem install eventmachine -v '1.0.3'"
RUN /bin/bash -l -c "gem install bundler"
RUN git clone git://github.com/eventmachine/eventmachine.git && cd eventmachine && /bin/bash -l -c "bundle install" && /bin/bash -l -c "bundle exec rake compile"
RUN git clone https://github.com/GSA/pdf-filler.git && cd pdf-filler && /bin/bash -l -c "bundle install"
EXPOSE 4567
CMD["ruby", "pdf-filler/app.rb"]

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

1 participant