Skip to content

Instantly share code, notes, and snippets.

@davidkelley
Created June 24, 2014 21:45
Show Gist options
  • Save davidkelley/45d410e9f0ec472cbae8 to your computer and use it in GitHub Desktop.
Save davidkelley/45d410e9f0ec472cbae8 to your computer and use it in GitHub Desktop.
Rubinius on Ubuntu Trusty (14.04)
FROM ubuntu:trusty
# Install Ruby
RUN apt-get -y update
RUN apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
RUN apt-get -y install wget
RUN wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
RUN tar -xvzf ruby-2.1.2.tar.gz
RUN cd ruby-2.1.2 && ./configure --prefix=/usr/local
RUN cd ruby-2.1.2 && make
RUN cd ruby-2.1.2 && make install
# Install Bundler
RUN gem install bundler
# Install application system dependencies
RUN apt-get update
RUN apt-get install -y libgtkmm-2.4 libsasl2-dev
RUN apt-get install -y mysql-client mysql-common curl libmysqlclient-dev
RUN apt-get install -y libnotify-dev imagemagick
RUN apt-get install -y libglib2.0-bin
RUN apt-get install -y git-core curl
RUN apt-get install -y git gcc g++ automake flex bison ruby1.9.1-dev llvm-dev
RUN apt-get install -y libgdbm-dev libreadline-dev libncurses5-dev
# Install Rubinius
RUN wget http://releases.rubini.us/rubinius-2.2.9.tar.bz2
RUN tar -xvjf rubinius-2.2.9.tar.bz2
RUN cd rubinius-2.2.9 && bundle
RUN cd rubinius-2.2.9 && ./configure --prefix=/opt/rubies/rubinius-2.2.9
RUN cd rubinius-2.2.9 && rake
@davidkelley
Copy link
Author

Failing with the following error:

Step 22 : RUN cd rubinius-2.2.9 && ./configure --prefix=/opt/rubies/rubinius-2.2.9
 ---> Running in 266f85c88440
Checking gcc: found
Checking g++: found
Checking bison: found

Detected old configuration settings, forcing a clean build
Configuring LLVM...
  Checking for existing LLVM library tree: not found.
  Checking for 'llvm-config': found! (version 3.4 - api: 304)

Checking sizeof(short): 2 bytes
Checking sizeof(int): 4 bytes
Checking sizeof(void*): 8 bytes
Checking sizeof(size_t): 8 bytes
Checking sizeof(long): 8 bytes
Checking sizeof(long long): 8 bytes
Checking sizeof(float): 4 bytes
Checking sizeof(double): 8 bytes
Checking sizeof(off_t): 8 bytes
Checking sizeof(time_t): 8 bytes
Checking for libc version: ldd: missing file arguments
Try `ldd --help' for more information.
libc not found. Use the --libc configure option.

Running 'configure' failed. Please check configure.log for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment