Comments (7)
Never tried ruby-install, I'm using rbenv. I don't even get to the part where I can install gems, as the error happens when installing Ruby.
from ruby-unf_ext.
isinf
and isnan
are present in https://github.com/docker-library/ruby/blob/2d6449f03976ededa14be5cac1e9e070b74e4de4/2.3/alpine/Dockerfile
I have no issue installing unf_ext 0.0.7.2
out of alpine:3.4
/opt/smoke # ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-musl]
/opt/smoke # bundle show unf_ext
/usr/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.2
from ruby-unf_ext.
same pb here with alpine 3.5
from ruby-unf_ext.
I'm having the same issue with Alpine 3.6.
from ruby-unf_ext.
I was able to workaround the issue adding the environment variables ac_cv_func_isnan=yes ac_cv_func_isinf=yes
as explained here: gliderlabs/docker-alpine#261 (comment)
from ruby-unf_ext.
Did any of you by any chance install Ruby with ruby-install? I'm seeing this on alpine:3.6
but on the eventmachine
gem, using Ruby 2.2.9.
from ruby-unf_ext.
Managed to build a good version of Ruby 2.2.9 on Alpine 3.6 with the following Dockerfile:
FROM alpine:3.7
ENV TZ "Etc/UTC"
RUN echo "Etc/UTC" > /etc/timezone
RUN apk upgrade --update && \
apk add --no-cache \
bash \
ca-certificates \
curl \
less \
libstdc++ \
libressl-dev \
tzdata \
zlib-dev && \
rm -rf /var/cache/apk/*
# skip installing gem documentation
RUN mkdir -p /usr/local/etc \
&& { \
echo 'install: --no-document'; \
echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc
ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.9
ENV RUBY_DOWNLOAD_SHA256 2f47c77054fc40ccfde22501425256d32c4fa0ccaf9554f0d699ed436beca1a6
ENV RUBYGEMS_VERSION 2.6.6
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN set -ex \
&& apk add --no-cache --virtual .ruby-builddeps \
autoconf \
bison \
bzip2 \
bzip2-dev \
ca-certificates \
coreutils \
curl \
gcc \
gdbm-dev \
glib-dev \
libc-dev \
libffi-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
ncurses-dev \
procps \
# https://bugs.ruby-lang.org/issues/11869 and https://github.com/docker-library/ruby/issues/75
readline-dev \
ruby \
yaml-dev \
zlib-dev \
&& curl -fSL -o ruby.tar.gz "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/src \
&& tar -xzf ruby.tar.gz -C /usr/src \
&& mv "/usr/src/ruby-$RUBY_VERSION" /usr/src/ruby \
&& rm ruby.tar.gz \
&& cd /usr/src/ruby \
&& { echo '#define ENABLE_PATH_CHECK 0'; echo; cat file.c; } > file.c.new && mv file.c.new file.c \
&& autoconf \
# the configure script does not detect isnan/isinf as macros
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
./configure --disable-install-doc \
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
&& make install \
&& runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \
)" \
&& apk add --virtual .ruby-rundeps $runDeps \
bzip2 \
ca-certificates \
curl \
libffi-dev \
libressl-dev \
yaml-dev \
procps \
zlib-dev \
&& apk del .ruby-builddeps \
&& gem update --system $RUBYGEMS_VERSION \
&& rm -r /usr/src/ruby
ENV BUNDLER_VERSION 1.16.1
RUN gem install bundler --version "$BUNDLER_VERSION"
# install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $BUNDLE_BIN:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
from ruby-unf_ext.
Related Issues (20)
- Build Errors HOT 6
- Ruby 2.6 x86-mingw32 support HOT 5
- Release current master please HOT 1
- Build fails if using Xcode 11 toolchain HOT 4
- Latest version doesn't contain a binary for Windows HOT 5
- Do a 1.0.0 release?
- Is version 0.0.7.7 a legitimate release? HOT 2
- Push tag v0.0.7.7 HOT 3
- Failing to compile on macOS/Ruby 2.7.1 but not sure why HOT 7
- Building fails with Mac 14, Xcode 11.2, ruby 2.3.7 HOT 1
- Installation fails in Docker and Ruby 3 preview HOT 1
- update to support ruby 3.0 HOT 5
- Failing to build on ARM64 Linux (Apple M1 running Debian in a VM) HOT 4
- Please add support for Ruby 3.1 HOT 5
- Can't install 0.0.8.1-x64-mingw32 in ruby 3.1 HOT 7
- Can't install 0.0.8.2 on Windows HOT 2
- 0.0.8.2 binary builds seemed to be tagged as "beta"? HOT 3
- Compilation Error with non-trivial designated initializers when installing unf_ext (0.0.9) on Ruby 2.3.1 on Linux HOT 16
- @igorpeshansky I have tested the patch and wanted to bring to your attention a potential compatibility concern with Ruby versions lower than 2.7.0, despite the gemspec specifying a requirement of ">= 2.2". The error encountered during compilation in Ruby version 2.3.1 is as follows:
- Build failure after upgrading Gem dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-unf_ext.